Merge "Removed isUserStoppingOrShuttingDownLocked" into oc-mr1-dev

This commit is contained in:
TreeHugger Robot
2017-08-11 01:28:01 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 10 deletions

View File

@@ -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 */));
}
/**

View File

@@ -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) {