version:1.7.4
fix: update:优化报错,优化打开设备信息
This commit is contained in:
@@ -16,8 +16,8 @@ android {
|
|||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
|
|
||||||
versionCode 64
|
versionCode 66
|
||||||
versionName "1.7.2"
|
versionName "1.7.4"
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ public class BaseApplication extends Application {
|
|||||||
RemoteManager.setListener(new RemoteManager.ConnectedListener() {
|
RemoteManager.setListener(new RemoteManager.ConnectedListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onConnected() {
|
public void onConnected() {
|
||||||
|
CrashReport.setDeviceId(BaseApplication.this, RemoteManager.getInstance().getSerial());
|
||||||
RemoteManager.getInstance().aliyunPushInit();
|
RemoteManager.getInstance().aliyunPushInit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -211,6 +211,8 @@ public class UserFragment extends BaseFragment implements UserContact.UserView {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
iv_avatar.setOnClickListener(view -> ApkUtils.openPackage(mContext, "com.uiui.zy", "com.uiui.zy.activity.main.MainActivity"));
|
iv_avatar.setOnClickListener(view -> ApkUtils.openPackage(mContext, "com.uiui.zy", "com.uiui.zy.activity.main.MainActivity"));
|
||||||
|
iv_applet_qrcode.setOnClickListener(view -> ApkUtils.openPackage(mContext, "com.uiui.zy", "com.uiui.zy.activity.main.MainActivity"));
|
||||||
|
iv_device_qrcode.setOnClickListener(view -> ApkUtils.openPackage(mContext, "com.uiui.zy", "com.uiui.zy.activity.main.MainActivity"));
|
||||||
registerOwnReceiver();
|
registerOwnReceiver();
|
||||||
String name = mMMKV.decodeString("USERINFO_NAME", "");
|
String name = mMMKV.decodeString("USERINFO_NAME", "");
|
||||||
if (TextUtils.isEmpty(name)) {
|
if (TextUtils.isEmpty(name)) {
|
||||||
|
|||||||
@@ -231,21 +231,21 @@ public class AppManager {
|
|||||||
return Collator.getInstance(Locale.CHINESE).compare(o1.loadLabel(pm).toString(), o2.loadLabel(pm).toString());
|
return Collator.getInstance(Locale.CHINESE).compare(o1.loadLabel(pm).toString(), o2.loadLabel(pm).toString());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
resolveInfos.sort(new Comparator<ResolveInfo>() {
|
// resolveInfos.sort(new Comparator<ResolveInfo>() {
|
||||||
@Override
|
// @Override
|
||||||
public int compare(ResolveInfo o1, ResolveInfo o2) {
|
// public int compare(ResolveInfo o1, ResolveInfo o2) {
|
||||||
try {
|
// try {
|
||||||
if ((pm.getApplicationInfo(o1.activityInfo.packageName, 0).flags & ApplicationInfo.FLAG_SYSTEM) <= (pm.getApplicationInfo(o2.activityInfo.packageName, 0).flags & ApplicationInfo.FLAG_SYSTEM)) {
|
// if ((pm.getApplicationInfo(o1.activityInfo.packageName, 0).flags & ApplicationInfo.FLAG_SYSTEM) <= (pm.getApplicationInfo(o2.activityInfo.packageName, 0).flags & ApplicationInfo.FLAG_SYSTEM)) {
|
||||||
return 1;
|
// return 1;
|
||||||
} else {
|
// } else {
|
||||||
return -1;
|
// return -1;
|
||||||
}
|
// }
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
// } catch (PackageManager.NameNotFoundException e) {
|
||||||
e.printStackTrace();
|
// e.printStackTrace();
|
||||||
return 0;
|
// return 0;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
ArrayList<DesktopIcon> desktopIcons = new ArrayList<>();
|
ArrayList<DesktopIcon> desktopIcons = new ArrayList<>();
|
||||||
for (ResolveInfo resolveInfo : resolveInfos) {
|
for (ResolveInfo resolveInfo : resolveInfos) {
|
||||||
desktopIcons.add(DesktopIcon.creatDesktopIcon(mContext, resolveInfo));
|
desktopIcons.add(DesktopIcon.creatDesktopIcon(mContext, resolveInfo));
|
||||||
|
|||||||
@@ -168,10 +168,10 @@ public class OpenApkUtils {
|
|||||||
this.add("com.oirsdfg89.flg");
|
this.add("com.oirsdfg89.flg");
|
||||||
this.add("com.study.flashplayer");
|
this.add("com.study.flashplayer");
|
||||||
this.add("com.tech.translate");
|
this.add("com.tech.translate");
|
||||||
this.add("com.uiui.zybrowser ");
|
this.add("com.uiui.zybrowser");
|
||||||
this.add("com.uiui.zysn ");
|
this.add("com.uiui.zysn ");
|
||||||
this.add("com.jxw.launcher");
|
this.add("com.jxw.launcher");
|
||||||
this.add("com.uiui.zyappstore ");
|
this.add("com.uiui.zyappstore");
|
||||||
this.add("com.uiui.zy");
|
this.add("com.uiui.zy");
|
||||||
this.add("com.uiui.zyos");
|
this.add("com.uiui.zyos");
|
||||||
this.add("com.teclast.zyos");
|
this.add("com.teclast.zyos");
|
||||||
|
|||||||
Reference in New Issue
Block a user