Browse Source

Fix: launch mode of MainActivity should be singleTop

kr328 4 năm trước cách đây
mục cha
commit
c73beabf7e
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/src/main/AndroidManifest.xml

+ 2 - 1
app/src/main/AndroidManifest.xml

@@ -41,7 +41,8 @@
             android:name=".MainActivity"
             android:name=".MainActivity"
             android:configChanges="uiMode"
             android:configChanges="uiMode"
             android:exported="true"
             android:exported="true"
-            android:label="@string/launch_name">
+            android:label="@string/launch_name"
+            android:launchMode="singleTop">
             <intent-filter>
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
                 <action android:name="android.intent.action.MAIN" />