Skip to content

Commit

Permalink
Wishlist button on details page was appearing at a wrong time
Browse files Browse the repository at this point in the history
  • Loading branch information
yeriomin committed May 18, 2018
1 parent f94a706 commit d898574
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d898574

Please sign in to comment.