Browse Source

feat: 在 AndroidManifest 中移除 autoStoreLocales 属性并添加 meta-data

5151561 3 months ago
parent
commit
5decd9dcbc
1 changed files with 5 additions and 2 deletions
  1. 5 2
      app/src/main/AndroidManifest.xml

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

@@ -33,7 +33,6 @@
         android:enableOnBackInvokedCallback="true"
         android:hardwareAccelerated="true"
         android:supportsRtl="true"
-        android:autoStoreLocales="true"
         android:theme="@style/Base.AppTheme"
         tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute">
         <!-- 图标0 -->
@@ -520,7 +519,11 @@
             android:name="androidx.appcompat.app.AppLocalesMetadataHolderService"
             android:enabled="true"
             android:exported="false"
-            tools:ignore="ExportedService" />
+            tools:ignore="ExportedService">
+            <meta-data
+                android:name="autoStoreLocales"
+                android:value="true" />
+        </service>
 
         <receiver
             android:name=".receiver.MediaButtonReceiver"