Issue #187 download button no longer shown if the app is not in play store

This commit is contained in:
Sergey Eremin
2017-06-09 21:00:39 +03:00
parent e33e407e13
commit a583ea712f

View File

@@ -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)
;
}