From a583ea712fd64f03b87ce50c9805d5d483d09a4e Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Fri, 9 Jun 2017 21:00:39 +0300 Subject: [PATCH] Issue #187 download button no longer shown if the app is not in play store --- .../yeriomin/yalpstore/fragment/details/ButtonDownload.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java index 3f74ad79b..6465eedd9 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/fragment/details/ButtonDownload.java @@ -30,6 +30,7 @@ public class ButtonDownload extends Button { @Override protected boolean shouldBeVisible() { return !Downloader.getApkPath(app.getPackageName(), app.getVersionCode()).exists() + && app.isInPlayStore() && (!isLatestVersion() || activity instanceof ManualDownloadActivity) ; }