瀏覽代碼

优化SplashActivity启动模式(用于外部浏览器唤起)

Pq 4 月之前
父節點
當前提交
ab83cb0343
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      student/src/main/AndroidManifest.xml
  2. 3 0
      teacher/src/main/AndroidManifest.xml

+ 1 - 0
student/src/main/AndroidManifest.xml

@@ -38,6 +38,7 @@
         <activity
             android:name=".ui.splash.SplashActivity"
             android:exported="true"
+            android:launchMode="singleTop"
             android:configChanges="orientation|screenSize|keyboardHidden|fontScale|smallestScreenSize|screenLayout|uiMode"
             android:screenOrientation="portrait"
             android:theme="@style/SplashTheme">

+ 3 - 0
teacher/src/main/AndroidManifest.xml

@@ -48,10 +48,13 @@
 
         <activity
             android:name=".ui.mine.UnBindBankCardActivity"
+            android:configChanges="orientation|screenSize|keyboardHidden|fontScale|smallestScreenSize|screenLayout|uiMode"
             android:exported="false" />
         <activity
             android:name=".ui.splash.SplashActivity"
             android:exported="true"
+            android:configChanges="orientation|screenSize|keyboardHidden|fontScale|smallestScreenSize|screenLayout|uiMode"
+            android:launchMode="singleTop"
             android:screenOrientation="portrait"
             android:theme="@style/SplashTheme">
             <intent-filter>