version:3.9
fix:修复解锁后无限重置的bug update:更换图标,增加解锁后显示所有app
This commit is contained in:
@@ -5,10 +5,9 @@ import android.app.Application;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import com.aoleyun.os.BuildConfig;
|
||||
import com.aoleyun.os.manager.ConnectManager;
|
||||
import com.aoleyun.os.uiuiutils.ToastUtil;
|
||||
import com.aoleyun.os.uiuiutils.Utils;
|
||||
import com.aoleyun.os.network.HTTPInterface;
|
||||
import com.aoleyun.os.network.NetworkManager;
|
||||
import com.aoleyun.os.network.URLPath;
|
||||
import com.aoleyun.os.uiuiutils.JGYUtils;
|
||||
@@ -46,7 +45,7 @@ public class BaseApplication extends Application {
|
||||
return app;
|
||||
}
|
||||
|
||||
public static Context getContext(){
|
||||
public static Context getContext() {
|
||||
return context;
|
||||
}
|
||||
|
||||
@@ -62,30 +61,37 @@ public class BaseApplication extends Application {
|
||||
Aria.init(this);
|
||||
NetworkManager.init(this);
|
||||
ToastUtil.init(this);
|
||||
ConnectManager.init(this);
|
||||
|
||||
initJPush();
|
||||
initPush();
|
||||
}
|
||||
|
||||
private void initJPush() {
|
||||
private void initPush() {
|
||||
// JPushInterface.setDebugMode(BuildConfig.DEBUG); // 设置开启日志,发布时请关闭日志
|
||||
// JPushInterface.init(this);
|
||||
XGPushConfig.enableDebug(this,true);
|
||||
XGPushConfig.enableDebug(this, true);
|
||||
XGPushManager.registerPush(this, new XGIOperateCallback() {
|
||||
@Override
|
||||
public void onSuccess(Object data, int flag) {
|
||||
//token在设备卸载重装的时候有可能会变
|
||||
Log.d("TPush", "注册成功,设备token为:" + data);
|
||||
Log.e("TPush", "注册成功,设备token为:" + data);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFail(Object data, int errCode, String msg) {
|
||||
Log.d("TPush", "注册失败,错误码:" + errCode + ",错误信息:" + msg);
|
||||
Log.e("TPush", "注册失败,错误码:" + errCode + ",错误信息:" + msg);
|
||||
}
|
||||
});
|
||||
initAliasObservable();
|
||||
initTagObservable();
|
||||
setJpushAlias();
|
||||
setJpushTags();
|
||||
NetworkManager.getInstance().setPushTag(true, new NetworkManager.onCompleteCallback() {
|
||||
@Override
|
||||
public void onComplete() {
|
||||
|
||||
}
|
||||
});
|
||||
// initAliasObservable();
|
||||
// initTagObservable();
|
||||
// setJpushAlias();
|
||||
// setJpushTags();
|
||||
}
|
||||
|
||||
private void initAliasObservable() {
|
||||
|
||||
Reference in New Issue
Block a user