Skip to content

Commit

Permalink
[#656]部分手机跳转到手机系统的5G网络设置管理界面失败 (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianbo-oppo authored Feb 1, 2024
1 parent 38999a4 commit e0c9a60
Showing 1 changed file with 8 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

0 comments on commit e0c9a60

Please sign in to comment.