Update subtext UI on Bug report handler settings

- Remove parentheses of the subtext on Bug report handler settings
- https://screenshot.googleplex.com/TOO4FuW7O8Y

BUG: 143017534
Test: Flash device and check the subtext
Change-Id: Ia3bee7e87a763fc776f846a03ce380e583308e1d
This commit is contained in:
Paul Chang
2019-12-18 09:26:30 +08:00
parent 11b1642c82
commit 45ca77862f
2 changed files with 10 additions and 7 deletions

View File

@@ -11378,11 +11378,14 @@
<!-- Developer Settings: Footer text for bug report handler picker [CHAR LIMIT=NONE] --> <!-- Developer Settings: Footer text for bug report handler picker [CHAR LIMIT=NONE] -->
<string name="bug_report_handler_picker_footer_text">Determines which app handles the Bug Report shortcut on your device.</string> <string name="bug_report_handler_picker_footer_text">Determines which app handles the Bug Report shortcut on your device.</string>
<!-- Label of personal profile app for current setting [CHAR LIMIT=NONE] --> <!-- Subtext of personal profile app for current setting [CHAR LIMIT=NONE] -->
<string name="personal_profile_app">(Personal)</string> <string name="personal_profile_app_subtext">Personal</string>
<!-- Label of work profile app for current setting [CHAR LIMIT=NONE] --> <!-- Subtext of work profile app for current setting [CHAR LIMIT=NONE] -->
<string name="work_profile_app">(Work)</string> <string name="work_profile_app_subtext">Work</string>
<!-- 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] --> <!-- Title of Shell app for current setting [CHAR LIMIT=NONE] -->
<string name="shell_app">Android System (Shell)</string> <string name="shell_app">Android System (Shell)</string>

View File

@@ -164,13 +164,13 @@ public class BugReportHandlerPicker extends DefaultAppPickerFragment {
private String getDescription(String handlerApp, int handlerUser) { private String getDescription(String handlerApp, int handlerUser) {
final Context context = getContext(); final Context context = getContext();
if (BugReportHandlerUtil.SHELL_APP_PACKAGE.equals(handlerApp)) { if (BugReportHandlerUtil.SHELL_APP_PACKAGE.equals(handlerApp)) {
return context.getString(R.string.system_default_app); return context.getString(R.string.system_default_app_subtext);
} }
final UserHandle managedProfile = Utils.getManagedProfile(mUserManager); final UserHandle managedProfile = Utils.getManagedProfile(mUserManager);
if (managedProfile != null && managedProfile.getIdentifier() == handlerUser) { if (managedProfile != null && managedProfile.getIdentifier() == handlerUser) {
return context.getString(R.string.work_profile_app); return context.getString(R.string.work_profile_app_subtext);
} }
return context.getString(R.string.personal_profile_app); return context.getString(R.string.personal_profile_app_subtext);
} }
private static class BugreportHandlerAppInfo extends DefaultAppInfo { private static class BugreportHandlerAppInfo extends DefaultAppInfo {