Browse Source

1.添加app单点登录时包名为空的判断

0423x6e6f
wangwanlei 1 week ago
parent
commit
229a222dff
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/src/main/java/com/xhly/manageapp/AppAdapter.kt

+ 1
- 1
app/src/main/java/com/xhly/manageapp/AppAdapter.kt View File

@@ -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&& autoAppBean.appPackage!! == appInfo.packageName){
161
+                                    if (autoAppBean!=null&&autoAppBean.appPackage!=null&&autoAppBean.authUrl!=null&&autoAppBean.appPackage == appInfo.packageName){
162 162
                                         val launchIntent = Intent()
163 163
                                         launchIntent.setComponent(
164 164
                                             ComponentName(

Loading…
Cancel
Save