Loading services/core/java/com/android/server/wm/ActivityRecord.java +5 −0 Original line number Diff line number Diff line Loading @@ -5115,6 +5115,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A return mDeferHidingClient; } boolean canAffectSystemUiFlags() { return task != null && task.canAffectSystemUiFlags() && isVisible() && !inPinnedWindowingMode(); } @Override boolean isVisible() { // If the activity isn't hidden then it is considered visible and there is no need to check Loading services/core/java/com/android/server/wm/WindowState.java +3 −5 Original line number Diff line number Diff line Loading @@ -2067,9 +2067,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP final boolean exiting = mAnimatingExit || mDestroying; return shown && !exiting; } else { final Task task = getTask(); final boolean canFromTask = task != null && task.canAffectSystemUiFlags(); return canFromTask && mActivityRecord.isVisible() return mActivityRecord.canAffectSystemUiFlags() // Do not let snapshot window control the bar && (mAttrs.type != TYPE_APPLICATION_STARTING || !(mStartingData instanceof SnapshotStartingData)); Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +5 −0 Original line number Diff line number Diff line Loading @@ -5115,6 +5115,11 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A return mDeferHidingClient; } boolean canAffectSystemUiFlags() { return task != null && task.canAffectSystemUiFlags() && isVisible() && !inPinnedWindowingMode(); } @Override boolean isVisible() { // If the activity isn't hidden then it is considered visible and there is no need to check Loading
services/core/java/com/android/server/wm/WindowState.java +3 −5 Original line number Diff line number Diff line Loading @@ -2067,9 +2067,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP final boolean exiting = mAnimatingExit || mDestroying; return shown && !exiting; } else { final Task task = getTask(); final boolean canFromTask = task != null && task.canAffectSystemUiFlags(); return canFromTask && mActivityRecord.isVisible() return mActivityRecord.canAffectSystemUiFlags() // Do not let snapshot window control the bar && (mAttrs.type != TYPE_APPLICATION_STARTING || !(mStartingData instanceof SnapshotStartingData)); Loading