Browse Source

1.默认显示应用商店,不受列表控制

20241218TB223FC(测试jar包)
wangwanlei 10 months ago
parent
commit
34ef86acf0

+ 2
- 2
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

1008
 
1008
 
1009
             }
1009
             }
1010
             //如果包含应用商店也移除,因为会在自定义app中添加
1010
             //如果包含应用商店也移除,因为会在自定义app中添加
1011
- /*           appList.filter { it.packageName == Const.STOREAPPPKG }.forEach {
1011
+            appList.filter { it.packageName == Const.STOREAPPPKG }.forEach {
1012
                 removeList.add(it)
1012
                 removeList.add(it)
1013
-            }*/
1013
+            }
1014
             //移除应用列表隐藏的应用
1014
             //移除应用列表隐藏的应用
1015
             storeRemoveList.forEach {pkg->
1015
             storeRemoveList.forEach {pkg->
1016
                 appList.removeIf { it.packageName==pkg }
1016
                 appList.removeIf { it.packageName==pkg }

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

11
 class CustomAppUtils {
11
 class CustomAppUtils {
12
     public fun getCustomAppList(context: Context): ArrayList<AppInfo> {
12
     public fun getCustomAppList(context: Context): ArrayList<AppInfo> {
13
         val appList= arrayListOf<AppInfo>()
13
         val appList= arrayListOf<AppInfo>()
14
-    /*    appList.add(getCusomAppBean(
14
+        appList.add(getCusomAppBean(
15
             context.getString(R.string.appstore),
15
             context.getString(R.string.appstore),
16
             Const.STOREAPPPKG,
16
             Const.STOREAPPPKG,
17
             AppCompatResources.getDrawable(context,R.drawable.icon_store)!!
17
             AppCompatResources.getDrawable(context,R.drawable.icon_store)!!
18
-        ))*/
18
+        ))
19
         appList.add(getCusomAppBean(
19
         appList.add(getCusomAppBean(
20
             context.getString(R.string.speed),
20
             context.getString(R.string.speed),
21
             Const.CUSTOMSPEEDAPP,
21
             Const.CUSTOMSPEEDAPP,

Loading…
Cancel
Save