Merge "Fix stray ProfileSelectDialog when only one profile exists" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
0f687eafc5
@@ -299,6 +299,7 @@ class ZenModePrioritySendersPreferenceController
|
||||
List<UserHandle> userProfiles = mUserManager.getEnabledProfiles();
|
||||
if (userProfiles.size() <= 1) {
|
||||
mContext.startActivity(intent);
|
||||
return;
|
||||
}
|
||||
|
||||
mProfileSelectDialog = ProfileSelectDialog.createDialog(mContext, userProfiles,
|
||||
|
||||
Reference in New Issue
Block a user