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() {
|
boolean hasMoved() {
|
||||||
return mHasSurface && (mContentChanged || mMovedByResize)
|
return mHasSurface && (mContentChanged || mMovedByResize)
|
||||||
&& !mAnimatingExit && mService.okToDisplay()
|
&& !mAnimatingExit
|
||||||
&& (mFrame.top != mLastFrame.top || mFrame.left != mLastFrame.left)
|
&& (mFrame.top != mLastFrame.top || mFrame.left != mLastFrame.left)
|
||||||
&& (mAttachedWindow == null || !mAttachedWindow.hasMoved());
|
&& (mAttachedWindow == null || !mAttachedWindow.hasMoved());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -721,12 +721,14 @@ class WindowSurfacePlacer {
|
|||||||
final boolean adjustedForMinimizedDockOrIme = task != null
|
final boolean adjustedForMinimizedDockOrIme = task != null
|
||||||
&& (task.mStack.isAdjustedForMinimizedDockedStack()
|
&& (task.mStack.isAdjustedForMinimizedDockedStack()
|
||||||
|| task.mStack.isAdjustedForIme());
|
|| task.mStack.isAdjustedForIme());
|
||||||
|
if (mService.okToDisplay()) {
|
||||||
if ((w.mAttrs.privateFlags & PRIVATE_FLAG_NO_MOVE_ANIMATION) == 0
|
if ((w.mAttrs.privateFlags & PRIVATE_FLAG_NO_MOVE_ANIMATION) == 0
|
||||||
&& !w.isDragResizing() && !adjustedForMinimizedDockOrIme
|
&& !w.isDragResizing() && !adjustedForMinimizedDockOrIme
|
||||||
&& (task == null || w.getTask().mStack.hasMovementAnimations())
|
&& (task == null || w.getTask().mStack.hasMovementAnimations())
|
||||||
&& !w.mWinAnimator.mLastHidden) {
|
&& !w.mWinAnimator.mLastHidden) {
|
||||||
winAnimator.setMoveAnimation(left, top);
|
winAnimator.setMoveAnimation(left, top);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//TODO (multidisplay): Accessibility supported only for the default display.
|
//TODO (multidisplay): Accessibility supported only for the default display.
|
||||||
if (mService.mAccessibilityController != null
|
if (mService.mAccessibilityController != null
|
||||||
|
|||||||
Reference in New Issue
Block a user