Browse Source

1.添加输入法包名不卸载输入法。

0423x6e6f
wangwanlei 6 days ago
parent
commit
fb6d74e9c7

+ 2
- 2
app/src/main/java/com/xhly/manageapp/ManageApplication.kt View File

@@ -98,8 +98,8 @@ class ManageApplication : MultiDexApplication() {
98 98
 
99 99
         fun uninstallPackage(pkg: String) {
100 100
             if (ModelNameUtils.IS_LianxX505f() || ModelNameUtils.IS_LianxX6e6f()) {
101
-                if (pkg == Const.CURRENTAPPPKG || pkg == Const.STOREAPPPKG) {
102
-                    //不卸载管控和商店
101
+                if (pkg == Const.CURRENTAPPPKG || pkg == Const.STOREAPPPKG || pkg == Const.INPUTMETHODPKG) {
102
+                    //不卸载管控和商店以及输入法
103 103
                     return
104 104
                 }
105 105
                 csdkManager?.uninstallPackage(pkg, false)

+ 5
- 0
corelib/src/main/java/com/xhly/corelib/Const.kt View File

@@ -66,6 +66,11 @@ object Const {
66 66
      */
67 67
     const val STOREAPPPKG = "com.xhkjedu.xh_control_appstore"
68 68
 
69
+    /**
70
+     * 输入法包名
71
+     */
72
+
73
+    const val INPUTMETHODPKG = "com.xhkjedu.pinyin"
69 74
     /**
70 75
      * 更新策略包名
71 76
      */

Loading…
Cancel
Save