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

@@ -164,13 +164,13 @@ public class BugReportHandlerPicker extends DefaultAppPickerFragment {
private String getDescription(String handlerApp, int handlerUser) {
final Context context = getContext();
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);
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 {