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