Kaynağa Gözat

1.添加包名判断,包名和拉起一致时才指定页面跳转。

0423x6e6f
wangwanlei 1 hafta önce
ebeveyn
işleme
327b018f1f

+ 1
- 1
app/src/main/java/com/xhly/manageapp/AppAdapter.kt Dosyayı Görüntüle

@@ -158,7 +158,7 @@ class AppAdapter(var context: Context, var data: ArrayList<AppInfo>) :
158 158
                                         Const.AUTOAPPKEY,
159 159
                                         AutoAppBean().javaClass
160 160
                                     ) as? AutoAppBean
161
-                                    if (autoAppBean!=null){
161
+                                    if (autoAppBean!=null&& autoAppBean.appPackage!! == appInfo.packageName){
162 162
                                         val launchIntent = Intent()
163 163
                                         launchIntent.setComponent(
164 164
                                             ComponentName(

Loading…
İptal
Kaydet