From: Jorim Jaggi Date: Wed, 17 May 2017 23:53:56 +0000 (+0200) Subject: Fix refactoring typo X-Git-Tag: android-x86-9.0-r1~1044^2~625^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=43530c99859d6eb385ba7d747d3868f4310c50a4;p=android-x86%2Fframeworks-base.git Fix refactoring typo Seems like when we renamed/rearranged the methods we didn't ignore mPolicyVisibility..and that's the most important part! Fixes a bug where the dock divider isn't animating when unlocking the phone. Bug: 36200726 Change-Id: I4c5e9ca7f1b6e7bf21f793e1cf39d92fe77489e8 --- diff --git a/services/core/java/com/android/server/wm/WindowState.java b/services/core/java/com/android/server/wm/WindowState.java index 344c61660e00..0266bf6b9244 100644 --- a/services/core/java/com/android/server/wm/WindowState.java +++ b/services/core/java/com/android/server/wm/WindowState.java @@ -1306,7 +1306,7 @@ class WindowState extends WindowContainer implements WindowManagerP * otherwise. */ boolean wouldBeVisibleIfPolicyIgnored() { - return mHasSurface && mPolicyVisibility && !isParentWindowHidden() + return mHasSurface && !isParentWindowHidden() && !mAnimatingExit && !mDestroying && (!mIsWallpaper || mWallpaperVisible); }