瀏覽代碼

腕表应用设置为常驻内存模式

weizhengliang 10 月之前
父節點
當前提交
819375c14e
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/src/main/AndroidManifest.xml
  2. 1 0
      app/src/main/sharedUserId/AndroidManifest.xml

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

@@ -35,6 +35,7 @@
         android:label="@string/wdkl_app_name"
         android:supportsRtl="true"
         tools:replace="android:label"
+        android:persistent="true"
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:theme="@style/MyAppTheme">

+ 1 - 0
app/src/main/sharedUserId/AndroidManifest.xml

@@ -35,6 +35,7 @@
         android:requestLegacyExternalStorage="true"
         android:name="com.wdkl.app.ncs.application.Application"
         android:sharedUserId="android.uid.system"
+        android:persistent="true"
         android:extractNativeLibs="true"
         android:theme="@style/MyAppTheme">
         <meta-data