Browse Source

1.添加桌面冻结,1.0.14打包。

20241218TB223FC(测试jar包)
wangwanlei 7 months ago
parent
commit
2e24d6f34b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt

+ 2
- 0
app/src/main/java/com/xhly/manageapp/utils/StrategyUtils.kt View File

@@ -402,6 +402,7 @@ object StrategyUtils {
402 402
 
403 403
               //设置默认启动器
404 404
               if (ModelNameUtils.IS_LianxX505f()||ModelNameUtils.IS_LianxX6e6f()){
405
+                  ManageApplication.setPackageEnabled("com.tblenovo.launcher",true)
405 406
                   //505f的桌面名称
406 407
                   ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
407 408
                   try {
@@ -448,6 +449,7 @@ object StrategyUtils {
448 449
             ManageApplication.hideMenuSoftKey(true)
449 450
             ManageApplication.enableAccessibility()
450 451
             ManageApplication.setLockScreenMode()
452
+            ManageApplication.setPackageEnabled("com.tblenovo.launcher",false)
451 453
             ManageApplication.setCustomLauncher(
452 454
                 Const.CURRENTAPPPKG,
453 455
                 Const.CURRENTAPPPKG + ".ui.ManageActivity"

Loading…
Cancel
Save