File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/java/com/android/server/wm Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33package com .android .server .wm ;
44
55import static android .view .WindowManager .LayoutParams .FLAG_SHOW_WALLPAPER ;
6+ import static android .view .WindowManager .LayoutParams .FLAG_SHOW_WHEN_LOCKED ;
67
78import static com .android .server .wm .WindowManagerService .LayoutFields .SET_UPDATE_ROTATION ;
89import static com .android .server .wm .WindowManagerService .LayoutFields .SET_WALLPAPER_MAY_CHANGE ;
@@ -278,7 +279,7 @@ private void updateWindowsAndWallpaperLocked() {
278279 }
279280 mService .mFocusMayChange = true ;
280281 }
281- if (win .isReadyForDisplay () && ! winAnimator .isAnimating () ) {
282+ if (win .isReadyForDisplay () && winAnimator .mAnimationIsEntrance ) {
282283 mForceHiding = true ;
283284 }
284285 if (WindowManagerService .DEBUG_VISIBILITY ) Slog .v (TAG ,
@@ -292,7 +293,8 @@ private void updateWindowsAndWallpaperLocked() {
292293 + " anim=" + win .mWinAnimator .mAnimation );
293294 } else if (mPolicy .canBeForceHidden (win , win .mAttrs )) {
294295 final boolean changed ;
295- if (mForceHiding && !winAnimator .isAnimating ()) {
296+ if (mForceHiding && (!winAnimator .isAnimating ()
297+ || (winAnimator .mAttrFlags & FLAG_SHOW_WHEN_LOCKED ) == 0 )) {
296298 changed = win .hideLw (false , false );
297299 if (WindowManagerService .DEBUG_VISIBILITY && changed ) Slog .v (TAG ,
298300 "Now policy hidden: " + win );
You can’t perform that action at this time.
0 commit comments