Merge "Removed isUserStoppingOrShuttingDownLocked" into oc-mr1-dev
am: 0ee1e6d3c1
Change-Id: I8c22fb94b4e59426b8832a4bae5d2717090256d2
This commit is contained in:
@@ -2012,7 +2012,7 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo
|
||||
public boolean okToShowLocked() {
|
||||
return (info.flags & FLAG_SHOW_FOR_ALL_USERS) != 0
|
||||
|| (mStackSupervisor.isCurrentProfileLocked(userId)
|
||||
&& !service.mUserController.isUserStoppingOrShuttingDownLocked(userId));
|
||||
&& service.mUserController.isUserRunningLocked(userId, 0 /* flags */));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1447,15 +1447,6 @@ final class UserController {
|
||||
return mStartedUserArray;
|
||||
}
|
||||
|
||||
boolean isUserStoppingOrShuttingDownLocked(int userId) {
|
||||
UserState state = getStartedUserStateLocked(userId);
|
||||
if (state == null) {
|
||||
return false;
|
||||
}
|
||||
return state.state == UserState.STATE_STOPPING
|
||||
|| state.state == UserState.STATE_SHUTDOWN;
|
||||
}
|
||||
|
||||
boolean isUserRunningLocked(int userId, int flags) {
|
||||
UserState state = getStartedUserStateLocked(userId);
|
||||
if (state == null) {
|
||||
|
||||
Reference in New Issue
Block a user