update:2020.06.15
fix:没有推送也能删除应用 add:没有锁定设备不初始化极光推送
This commit is contained in:
@@ -128,10 +128,10 @@ public class MyApplication extends MultiDexApplication {
|
||||
JPushInterface.setDebugMode(true);
|
||||
JPushInterface.requestPermission(this);
|
||||
// 初始化 JPush
|
||||
JPushInterface.init(this);
|
||||
|
||||
//JPushInterface.init(this);
|
||||
//解锁设备不需要初始化
|
||||
context = getApplicationContext();
|
||||
// Thread.setDefaultUncaughtExceptionHandler(this);
|
||||
//Thread.setDefaultUncaughtExceptionHandler(this);
|
||||
mDateFormat = new SimpleDateFormat("HH:mm");
|
||||
initOKHttp();
|
||||
|
||||
@@ -220,7 +220,6 @@ public class MyApplication extends MultiDexApplication {
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void onTagOperatorResult(JPushMessage jPushMessage) {
|
||||
if (jPushMessage == null) {
|
||||
return;
|
||||
@@ -547,14 +546,9 @@ public class MyApplication extends MultiDexApplication {
|
||||
localAppList.add(appInformation);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
synchronized public void getWhitePackageList() {
|
||||
@@ -583,8 +577,6 @@ public class MyApplication extends MultiDexApplication {
|
||||
super.onError(call, response, e);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void writeAppPackageList(String result) {
|
||||
|
||||
Reference in New Issue
Block a user