Skip to content

Commit

Permalink
[#656]部分手机跳转到手机系统的5G网络设置管理界面失败
Browse files Browse the repository at this point in the history
  • Loading branch information
jianbo-oppo committed Jan 31, 2024
1 parent 38999a4 commit 5e18df5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,14 @@ private static boolean handleHapSetting(Context context, Uri uri, String pkg) {
} else if (TextUtils.equals(PATH_PERMISSIONS, path)) {
return checkAndStartActivity(context, getPermissionActivityIntent(pkg));
} else if (TextUtils.equals(PATH_5G_MANAGER, path)) {
return checkAndStartActivity(context, get5gMgrIntent());
Intent intent = get5gMgrIntent();
boolean result = checkAndStartActivity(context, intent);
if (!result) {
intent = new Intent();
intent.setAction(android.provider.Settings.ACTION_DATA_ROAMING_SETTINGS);
result = checkAndStartActivity(context, intent);
}
return result;
}
}
return false;
Expand Down
14 changes: 14 additions & 0 deletions mockup/platform/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ allprojects {
}
google()
jcenter()
// Declare the Node.js download repository
ivy {
name = "Node.js"
setUrl("https://nodejs.org/dist/")
patternLayout {
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
}
metadataSources {
artifact()
}
content {
includeModule("org.nodejs", "node")
}
}
}
}

Expand Down

0 comments on commit 5e18df5

Please sign in to comment.