Merge "Don't halt movement notifications when display is frozen." into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6f91c19337
@@ -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());
|
||||
}
|
||||
|
||||
@@ -721,11 +721,13 @@ class WindowSurfacePlacer {
|
||||
final boolean adjustedForMinimizedDockOrIme = task != null
|
||||
&& (task.mStack.isAdjustedForMinimizedDockedStack()
|
||||
|| task.mStack.isAdjustedForIme());
|
||||
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);
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user