Disable new behavior for Play store release for now

pull/204/head
M66B 3 years ago
parent af2e4b86fe
commit 66bf18bf8c

@ -217,7 +217,7 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
long now = new Date().getTime();
long last = prefs.getLong("last_composed", 0L);
if (!create &&
if (!create && !BuildConfig.PLAY_STORE_RELEASE &&
now - last < APPEND_ATTACHMENT_INTERVAL &&
args.size() == 1 && args.containsKey("attachments")) {
List<Fragment> fragments = fm.getFragments();

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

Loading…
Cancel
Save