Disable new behavior for Play store release for now

This commit is contained in:
M66B
2021-08-23 13:05:01 +02:00
parent af2e4b86fe
commit 66bf18bf8c
2 changed files with 3 additions and 2 deletions

View File

@@ -170,7 +170,8 @@ public class ActivityMain extends ActivityBase implements FragmentManager.OnBack
// https://developer.android.com/docs/quality-guidelines/core-app-quality
long now = new Date().getTime();
long last = prefs.getLong("last_launched", 0L);
if (now - last > RESTORE_STATE_INTERVAL)
if (!BuildConfig.PLAY_STORE_RELEASE &&
now - last > RESTORE_STATE_INTERVAL)
view.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
Intent saved = args.getParcelable("intent");