Skip to content

Commit 7e82b68

Browse files
committed
fix: use relinquishTaskIdentity in SplashActivity
1 parent 07c588a commit 7e82b68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,14 @@
8181
android:theme="@style/AppTheme.NoActionBar"
8282
tools:ignore="GoogleAppIndexingWarning">
8383

84+
<!-- relinquishTaskIdentity is required because the intent-filter has the
85+
DEFAULT category. If relinquishTaskIdentity is false then when the user resumes the
86+
app from the launcher they are taken back to the SplashActivity, and consequently the
87+
home fragment in MainActivity. -->
8488
<activity
8589
android:name=".SplashActivity"
8690
android:exported="true"
91+
android:relinquishTaskIdentity="true"
8792
android:theme="@style/Theme.App.Starting">
8893
<intent-filter>
8994
<action android:name="android.intent.action.MAIN" />

0 commit comments

Comments
 (0)