Browse Source

1.解除管控后,禁止切换启动器。

20241218TB223FC(测试jar包)
wangwanlei 2 months ago
parent
commit
265e3268ed
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

@@ -421,6 +421,8 @@ object StrategyUtils {
421 421
                   //505f的桌面名称
422 422
                   ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
423 423
                   try {
424
+                      //解除管控后,禁止切换启动器
425
+                      ManageApplication.disallowSwitchLauncher_v3(true)
424 426
                       val launchIntent = Intent()
425 427
                       launchIntent.setComponent(
426 428
                           ComponentName(

Loading…
Cancel
Save