Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +2 −1 Original line number Diff line number Diff line Loading @@ -3569,7 +3569,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { } public boolean allowAppAnimationsLw() { if (mKeyguard != null && mKeyguard.isVisibleLw() || mShowingDream) { if (mKeyguard != null && mKeyguard.isVisibleLw() && !mKeyguard.isAnimatingLw() || mShowingDream) { // If keyguard or dreams is currently visible, no reason to animate behind it. return false; } Loading services/java/com/android/server/wm/WindowManagerService.java +12 −4 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ public class WindowManagerService extends IWindowManager.Stub static final boolean DEBUG_SURFACE_TRACE = false; static final boolean DEBUG_WINDOW_TRACE = false; static final boolean DEBUG_TASK_MOVEMENT = false; static final boolean DEBUG_STACK = true; static final boolean DEBUG_STACK = false; static final boolean SHOW_SURFACE_ALLOC = false; static final boolean SHOW_TRANSACTIONS = false; static final boolean SHOW_LIGHT_TRANSACTIONS = false || SHOW_TRANSACTIONS; Loading Loading @@ -1852,13 +1852,21 @@ public class WindowManagerService extends IWindowManager.Stub } } // Now stick it in. // Now stick it in. For apps over wallpaper keep the wallpaper at the bottommost // layer. For keyguard over wallpaper put the wallpaper under the keyguard. int insertionIndex = 0; if (visible && foundW != null) { final int type = foundW.mAttrs.type; if (type == TYPE_KEYGUARD || type == TYPE_KEYGUARD_SCRIM) { insertionIndex = windows.indexOf(foundW); } } if (DEBUG_WALLPAPER_LIGHT || DEBUG_WINDOW_MOVEMENT || DEBUG_ADD_REMOVE) { Slog.v(TAG, "Moving wallpaper " + wallpaper + " from " + oldIndex + " to " + 0); + " from " + oldIndex + " to " + insertionIndex); } windows.add(0, wallpaper); windows.add(insertionIndex, wallpaper); mWindowsChanged = true; changed |= ADJUST_WALLPAPER_LAYERS_CHANGED; } Loading Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +2 −1 Original line number Diff line number Diff line Loading @@ -3569,7 +3569,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { } public boolean allowAppAnimationsLw() { if (mKeyguard != null && mKeyguard.isVisibleLw() || mShowingDream) { if (mKeyguard != null && mKeyguard.isVisibleLw() && !mKeyguard.isAnimatingLw() || mShowingDream) { // If keyguard or dreams is currently visible, no reason to animate behind it. return false; } Loading
services/java/com/android/server/wm/WindowManagerService.java +12 −4 Original line number Diff line number Diff line Loading @@ -187,7 +187,7 @@ public class WindowManagerService extends IWindowManager.Stub static final boolean DEBUG_SURFACE_TRACE = false; static final boolean DEBUG_WINDOW_TRACE = false; static final boolean DEBUG_TASK_MOVEMENT = false; static final boolean DEBUG_STACK = true; static final boolean DEBUG_STACK = false; static final boolean SHOW_SURFACE_ALLOC = false; static final boolean SHOW_TRANSACTIONS = false; static final boolean SHOW_LIGHT_TRANSACTIONS = false || SHOW_TRANSACTIONS; Loading Loading @@ -1852,13 +1852,21 @@ public class WindowManagerService extends IWindowManager.Stub } } // Now stick it in. // Now stick it in. For apps over wallpaper keep the wallpaper at the bottommost // layer. For keyguard over wallpaper put the wallpaper under the keyguard. int insertionIndex = 0; if (visible && foundW != null) { final int type = foundW.mAttrs.type; if (type == TYPE_KEYGUARD || type == TYPE_KEYGUARD_SCRIM) { insertionIndex = windows.indexOf(foundW); } } if (DEBUG_WALLPAPER_LIGHT || DEBUG_WINDOW_MOVEMENT || DEBUG_ADD_REMOVE) { Slog.v(TAG, "Moving wallpaper " + wallpaper + " from " + oldIndex + " to " + 0); + " from " + oldIndex + " to " + insertionIndex); } windows.add(0, wallpaper); windows.add(insertionIndex, wallpaper); mWindowsChanged = true; changed |= ADJUST_WALLPAPER_LAYERS_CHANGED; } Loading