Merge "UserInfo.isDemo() to also check UserInfo.FLAG_DEMO"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c299543b3a
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user