diff options
author | ByteHamster <info@bytehamster.com> | 2022-05-24 19:11:12 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2022-05-24 19:11:12 +0200 |
commit | 48963616a688d97191f14df389d0aeb957d6388e (patch) | |
tree | f298164091efe78f06d48e9d3ff2b4295a16e8cc /app | |
parent | 6e5004be22f20e3a51697909bf4d1e423252b83c (diff) | |
download | AntennaPod-48963616a688d97191f14df389d0aeb957d6388e.zip |
Don't recreate activity when a result is pending
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java index 62c6bbd79..1dd091566 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/MainActivity.java @@ -408,11 +408,6 @@ public class MainActivity extends CastEnabledActivity { super.onStart(); EventBus.getDefault().register(this); RatingDialog.init(this); - - if (lastTheme != UserPreferences.getNoTitleTheme()) { - finish(); - startActivity(new Intent(this, MainActivity.class)); - } } @Override @@ -421,6 +416,17 @@ public class MainActivity extends CastEnabledActivity { StorageUtils.checkStorageAvailability(this); handleNavIntent(); RatingDialog.check(); + + if (lastTheme != UserPreferences.getNoTitleTheme()) { + finish(); + startActivity(new Intent(this, MainActivity.class)); + } + } + + @Override + protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { + super.onActivityResult(requestCode, resultCode, data); + lastTheme = UserPreferences.getNoTitleTheme(); // Don't recreate activity when a result is pending } @Override |