Fix watchlist edition not working
This commit is contained in:
parent
a46ad91f79
commit
b46e9cbe3f
@ -11,6 +11,7 @@ import android.support.v4.view.GravityCompat;
|
|||||||
import android.support.v4.widget.DrawerLayout;
|
import android.support.v4.widget.DrawerLayout;
|
||||||
import android.support.v4.widget.SwipeRefreshLayout;
|
import android.support.v4.widget.SwipeRefreshLayout;
|
||||||
import android.support.v7.graphics.Palette;
|
import android.support.v7.graphics.Palette;
|
||||||
|
import android.support.v7.widget.CardView;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
@ -133,7 +134,7 @@ public class Watchlist extends Fragment {
|
|||||||
{
|
{
|
||||||
View watchlistElement = watchlistLayout.getChildAt(i);
|
View watchlistElement = watchlistLayout.getChildAt(i);
|
||||||
|
|
||||||
if(watchlistElement instanceof LinearLayout)
|
if(watchlistElement instanceof CurrencyCardview)
|
||||||
{
|
{
|
||||||
watchlistElement.setClickable(true);
|
watchlistElement.setClickable(true);
|
||||||
collapseW(watchlistElement.findViewById(R.id.deleteCardWatchlist));
|
collapseW(watchlistElement.findViewById(R.id.deleteCardWatchlist));
|
||||||
@ -148,7 +149,7 @@ public class Watchlist extends Fragment {
|
|||||||
{
|
{
|
||||||
View watchlistElement = watchlistLayout.getChildAt(i);
|
View watchlistElement = watchlistLayout.getChildAt(i);
|
||||||
|
|
||||||
if(watchlistElement instanceof LinearLayout)
|
if(watchlistElement instanceof CurrencyCardview)
|
||||||
{
|
{
|
||||||
watchlistElement.setClickable(false);
|
watchlistElement.setClickable(false);
|
||||||
expandW(watchlistElement.findViewById(R.id.deleteCardWatchlist));
|
expandW(watchlistElement.findViewById(R.id.deleteCardWatchlist));
|
||||||
|
Loading…
Reference in New Issue
Block a user