Merge "UserInfo.isDemo() to also check UserInfo.FLAG_DEMO"

This commit is contained in:
Cherie Cheung
2021-08-24 00:59:43 +00:00
committed by Android (Google) Code Review

View File

@@ -343,7 +343,7 @@ public class UserInfo implements Parcelable {
}
public boolean isDemo() {
return UserManager.isUserTypeDemo(userType);
return UserManager.isUserTypeDemo(userType) || (flags & FLAG_DEMO) != 0;
}
public boolean isFull() {