Merge "Update System default handler title on Bug report handler settings"

This commit is contained in:
Paul Chang
2019-12-18 07:57:26 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 5 deletions

View File

@@ -11405,9 +11405,6 @@
<!-- Subtext of system default app for current setting [CHAR LIMIT=NONE] -->
<string name="system_default_app_subtext">System default</string>
<!-- Title of Shell app for current setting [CHAR LIMIT=NONE] -->
<string name="shell_app">Android System (Shell)</string>
<!-- Developer settings: text for the bug report handler selection toast shown if an invalid bug report handler was chosen. [CHAR LIMIT=NONE] -->
<string name="select_invalid_bug_report_handler_toast_text">This choice is no longer valid. Try again.</string>

View File

@@ -197,7 +197,7 @@ public class BugReportHandlerPicker extends DefaultAppPickerFragment {
return null;
}
if (BugReportHandlerUtil.SHELL_APP_PACKAGE.equals(packageItemInfo.packageName)) {
return mContext.getString(R.string.shell_app);
return mContext.getString(com.android.internal.R.string.android_system_label);
}
return super.loadLabel();
}

View File

@@ -73,7 +73,7 @@ public class BugReportHandlerPreferenceController extends DeveloperOptionsPrefer
final String handlerApp = mBugReportHandlerUtil.getCurrentBugReportHandlerAppAndUser(
mContext).first;
if (BugReportHandlerUtil.SHELL_APP_PACKAGE.equals(handlerApp)) {
return mContext.getString(R.string.shell_app);
return mContext.getString(com.android.internal.R.string.android_system_label);
}
ApplicationInfo applicationInfo;
try {