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

Loading…
Cancel
Save