mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-19 21:39:18 +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>
|
||||||
<activity
|
<activity
|
||||||
android:name=".IntroActivity"
|
android:name=".IntroActivity"
|
||||||
android:theme="@style/Theme.Intro">
|
android:theme="@style/Theme.Intro"
|
||||||
|
android:launchMode="singleTop">
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".AuthActivity">
|
<activity
|
||||||
|
android:name=".AuthActivity"
|
||||||
|
android:launchMode="singleTop">
|
||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".PreferencesActivity">
|
<activity android:name=".PreferencesActivity">
|
||||||
</activity>
|
</activity>
|
||||||
|
|
|
@ -339,6 +339,11 @@ public class MainActivity extends AppCompatActivity implements KeyProfileAdapter
|
||||||
intent.removeExtra("Action");
|
intent.removeExtra("Action");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void startActivityForResult(Intent intent, int requestCode) {
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
|
||||||
|
super.startActivityForResult(intent, requestCode);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
|
Loading…
Add table
Reference in a new issue