Merge "Don't label non-system default handling app with sub text if there is only one profile."

This commit is contained in:
Paul Chang
2020-02-06 05:12:36 +00:00
committed by Android (Google) Code Review

View File

@@ -176,6 +176,9 @@ public class BugReportHandlerPicker extends DefaultAppPickerFragment {
if (BugReportHandlerUtil.SHELL_APP_PACKAGE.equals(handlerApp)) {
return context.getString(R.string.system_default_app_subtext);
}
if (mUserManager.getUserProfiles().size() < 2) {
return "";
}
final UserInfo userInfo = mUserManager.getUserInfo(handlerUser);
if (userInfo != null && userInfo.isManagedProfile()) {
return context.getString(R.string.work_profile_app_subtext);