Browse Source

fix updater, me dumb

legacy
Austin Huang 4 years ago
parent
commit
0ac4030b5f
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 2
      app/src/main/java/awais/instagrabber/utils/FlavorTown.java
  2. 1
      fastlane/metadata/android/en-US/changelogs/46.txt

2
app/src/main/java/awais/instagrabber/utils/FlavorTown.java

@ -29,6 +29,7 @@ public final class FlavorTown {
public static void updateCheck(@NonNull final Context context) { public static void updateCheck(@NonNull final Context context) {
Resources res = context.getResources(); Resources res = context.getResources();
new UpdateChecker(version -> { new UpdateChecker(version -> {
if (version != BuildConfig.VERSION_NAME && !BuildConfig.DEBUG) {
new AlertDialog.Builder(context) new AlertDialog.Builder(context)
.setTitle(res.getString(R.string.update_available, version)) .setTitle(res.getString(R.string.update_available, version))
.setMessage(R.string.update_notice) .setMessage(R.string.update_notice)
@ -50,6 +51,7 @@ public final class FlavorTown {
} }
}) })
.show(); .show();
}
}).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
} }

1
fastlane/metadata/android/en-US/changelogs/46.txt

@ -3,3 +3,4 @@
* You can now unsend messages * You can now unsend messages
* Adding favourite button on profile views * Adding favourite button on profile views
* Enforcing a limit of 100 posts per download * Enforcing a limit of 100 posts per download
* Fix updater
Loading…
Cancel
Save