Pārlūkot izejas kodu

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

0423x6e6f
wangwanlei pirms 1 nedēļas
vecāks
revīzija
229a222dff
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      app/src/main/java/com/xhly/manageapp/AppAdapter.kt

+ 1
- 1
app/src/main/java/com/xhly/manageapp/AppAdapter.kt Parādīt failu

@@ -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(

Notiek ielāde…
Atcelt
Saglabāt