Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca914a36 authored by Paul Chang's avatar Paul Chang
Browse files

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

Bug: 148907948
Test: Flash device and check the sub text
Change-Id: I7aa17413bb28adf552ca3551c0a04d34ae69207f
parent 9e5c6130
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);