mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-18 13:02:06 +00:00
Fix an issue with duplicate activities on rotation
This commit is contained in:
parent
094924cd1c
commit
c3f16c2428
2 changed files with 10 additions and 2 deletions
|
@ -31,9 +31,12 @@
|
|||
</activity>
|
||||
<activity
|
||||
android:name=".IntroActivity"
|
||||
android:theme="@style/Theme.Intro">
|
||||
android:theme="@style/Theme.Intro"
|
||||
android:launchMode="singleTop">
|
||||
</activity>
|
||||
<activity android:name=".AuthActivity">
|
||||
<activity
|
||||
android:name=".AuthActivity"
|
||||
android:launchMode="singleTop">
|
||||
</activity>
|
||||
<activity android:name=".PreferencesActivity">
|
||||
</activity>
|
||||
|
|
|
@ -339,6 +339,11 @@ public class MainActivity extends AppCompatActivity implements KeyProfileAdapter
|
|||
intent.removeExtra("Action");
|
||||
}
|
||||
|
||||
public void startActivityForResult(Intent intent, int requestCode) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
|
||||
super.startActivityForResult(intent, requestCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
|
|
Loading…
Add table
Reference in a new issue