1.4.0509 增加mvvm,修改主页

This commit is contained in:
2024-05-10 09:21:20 +08:00
parent d62722452c
commit 58c36173fd
35 changed files with 1947 additions and 1554 deletions

View File

@@ -2022,10 +2022,36 @@ public class JGYUtils {
public void openOTA() {
Intent intent = new Intent(Intent.ACTION_MAIN);
/**知道要跳转应用的包命与目标Activity*/
/*知道要跳转应用的包命与目标Activity*/
ComponentName componentName = new ComponentName("com.adups.fota", "com.adups.fota.GoogleOtaClient");
intent.setComponent(componentName);
mContext.startActivity(intent);
try {
mContext.startActivity(intent);
} catch (Exception e) {
Log.e(TAG, "openOTA: " + e.getMessage());
Toaster.show("打开失败");
}
}
public void openRomOta() {
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
/*知道要跳转应用的包命与目标Activity*/
switch (JGYUtils.getInstance().checkAppPlatform()) {
case JGYUtils.C2Platform:
intent.setComponent(new ComponentName("com.jintaiyi.update", "com.jintaiyi.update.activity.NoVersionActivity"));
break;
case JGYUtils.YXPD1Platform:
default:
intent.setComponent(new ComponentName("com.adups.fota", "com.adups.fota.GoogleOtaClient"));
break;
}
try {
mContext.startActivity(intent);
} catch (Exception e) {
Log.e(TAG, "openOTA: " + e.getMessage());
Toaster.show("打开失败");
}
}
public void openLauncher() {
@@ -2416,6 +2442,7 @@ public class JGYUtils {
openLauncher3();
} else {
String className = getStartClassName(pkg);
Log.e(TAG, "setDefaultDesktop: " + className);
if (TextUtils.isEmpty(className)) {
openLauncher3();
} else {