Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6bbbedd authored by Robert Carr's avatar Robert Carr Committed by android-build-merger
Browse files

Don't halt movement notifications when display is frozen. am: c67c2a91

am: ebc6d5df

Change-Id: I79829e04ad0393231af1c1fb9995fa3b3f761217
parents 044cc414 ebc6d5df
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1418,7 +1418,7 @@ final class WindowState implements WindowManagerPolicy.WindowState {
     */
    boolean hasMoved() {
        return mHasSurface && (mContentChanged || mMovedByResize)
                && !mAnimatingExit && mService.okToDisplay()
                && !mAnimatingExit
                && (mFrame.top != mLastFrame.top || mFrame.left != mLastFrame.left)
                && (mAttachedWindow == null || !mAttachedWindow.hasMoved());
    }
+7 −5
Original line number Diff line number Diff line
@@ -721,12 +721,14 @@ class WindowSurfacePlacer {
                    final boolean adjustedForMinimizedDockOrIme = task != null
                                && (task.mStack.isAdjustedForMinimizedDockedStack()
                                    || task.mStack.isAdjustedForIme());
                    if (mService.okToDisplay()) {
                        if ((w.mAttrs.privateFlags & PRIVATE_FLAG_NO_MOVE_ANIMATION) == 0
                                && !w.isDragResizing() && !adjustedForMinimizedDockOrIme
                                && (task == null || w.getTask().mStack.hasMovementAnimations())
                                && !w.mWinAnimator.mLastHidden) {
                            winAnimator.setMoveAnimation(left, top);
                        }
                    }

                    //TODO (multidisplay): Accessibility supported only for the default display.
                    if (mService.mAccessibilityController != null