Loading services/core/java/com/android/server/am/ActivityRecord.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 */)); } /** Loading services/core/java/com/android/server/am/UserController.java +0 −9 Original line number Diff line number Diff line Loading @@ -1445,15 +1445,6 @@ 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) { Loading Loading
services/core/java/com/android/server/am/ActivityRecord.java +1 −1 Original line number Diff line number Diff line Loading @@ -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 */)); } /** Loading
services/core/java/com/android/server/am/UserController.java +0 −9 Original line number Diff line number Diff line Loading @@ -1445,15 +1445,6 @@ 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) { Loading