packages/apps/Taskbar
修订版 | 82baee7b15d7ffee41c749271d41ccb8f0b3f5f0 (tree) |
---|---|
时间 | 2018-10-29 15:46:12 |
作者 | Braden Farmer <farmerbb@gmai...> |
Commiter | Braden Farmer |
Go to GitHub releases when checking for updates if Play Store isn't available
@@ -592,9 +592,13 @@ public class U { | ||
592 | 592 | |
593 | 593 | public static void checkForUpdates(Context context) { |
594 | 594 | String url; |
595 | - if(isPlayStoreRelease(context)) | |
596 | - url = "https://play.google.com/store/apps/details?id=" + BuildConfig.APPLICATION_ID; | |
597 | - else | |
595 | + if(isPlayStoreRelease(context)) { | |
596 | + if(BuildConfig.APPLICATION_ID.equals(BuildConfig.BASE_APPLICATION_ID) | |
597 | + && !isPlayStoreInstalled(context)) | |
598 | + url = "https://github.com/farmerbb/Taskbar/releases"; | |
599 | + else | |
600 | + url = "https://play.google.com/store/apps/details?id=" + BuildConfig.APPLICATION_ID; | |
601 | + } else | |
598 | 602 | url = "https://f-droid.org/repository/browse/?fdid=" + BuildConfig.APPLICATION_ID; |
599 | 603 | |
600 | 604 | Intent intent = new Intent(Intent.ACTION_VIEW); |