From d8985744bde0baa34e5a8311fe8bbed35ec41a52 Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Fri, 18 May 2018 15:48:12 +0300 Subject: [PATCH] Wishlist button on details page was appearing at a wrong time --- .../github/yeriomin/yalpstore/fragment/details/Wishlist.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/Wishlist.java b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/Wishlist.java index 085dc8fd..fa0b6ab4 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/Wishlist.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/Wishlist.java @@ -42,11 +42,12 @@ public Wishlist(YalpStoreActivity activity, App app) { @Override public void draw() { + ImageView wishlistButton = activity.findViewById(R.id.wishlist); if (app.isInstalled()) { + wishlistButton.setVisibility(View.GONE); return; } new DetailsWishlistUpdateTask(activity, app.getPackageName()).execute(); - ImageView wishlistButton = activity.findViewById(R.id.wishlist); initWishlistButton(wishlistButton, activity, app.getPackageName()); wishlistButton.setOnLongClickListener(new View.OnLongClickListener() { @Override