From b46e9cbe3f5b9f3f7de5ea10b6a00661b488478c Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Wed, 23 May 2018 17:25:43 +0200 Subject: [PATCH] Fix watchlist edition not working --- .../moodl/Activities/HomeActivityFragments/Watchlist.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java b/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java index 4028081..8a109e1 100644 --- a/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java +++ b/app/src/main/java/com/nauk/moodl/Activities/HomeActivityFragments/Watchlist.java @@ -11,6 +11,7 @@ import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout; import android.support.v4.widget.SwipeRefreshLayout; import android.support.v7.graphics.Palette; +import android.support.v7.widget.CardView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -133,7 +134,7 @@ public class Watchlist extends Fragment { { View watchlistElement = watchlistLayout.getChildAt(i); - if(watchlistElement instanceof LinearLayout) + if(watchlistElement instanceof CurrencyCardview) { watchlistElement.setClickable(true); collapseW(watchlistElement.findViewById(R.id.deleteCardWatchlist)); @@ -148,7 +149,7 @@ public class Watchlist extends Fragment { { View watchlistElement = watchlistLayout.getChildAt(i); - if(watchlistElement instanceof LinearLayout) + if(watchlistElement instanceof CurrencyCardview) { watchlistElement.setClickable(false); expandW(watchlistElement.findViewById(R.id.deleteCardWatchlist));