Przeglądaj źródła

1.默认添加应用商店图标

20241218TB223FC(测试jar包)
wangwanlei 10 miesięcy temu
rodzic
commit
47c80139a2

+ 2
- 2
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt Wyświetl plik

@@ -984,9 +984,9 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
984 984
 
985 985
             }
986 986
             //如果包含应用商店也移除,因为会在自定义app中添加
987
-           /* appList.filter { it.packageName == Const.STOREAPPPKG }.forEach {
987
+            appList.filter { it.packageName == Const.STOREAPPPKG }.forEach {
988 988
                 removeList.add(it)
989
-            }*/
989
+            }
990 990
 
991 991
             //移除应用列表隐藏的应用
992 992
             storeRemoveList.forEach {pkg->

+ 2
- 2
app/src/main/java/com/xhly/manageapp/utils/CustomAppUtils.kt Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz