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

Commit ddadc655 authored by Kyrylo Mikos's avatar Kyrylo Mikos Committed by Ricardo Cerqueira
Browse files

PhoneWindowManager: Delay setting updates during window animation.

Change-Id: I90ee5d8f83176a38a32b5ff38c4b191f1b78532e
parent f3123e33
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1199,4 +1199,15 @@ public interface WindowManagerPolicy {
     * @param enabled Whether touch exploration is enabled.
     */
    public void setTouchExplorationEnabled(boolean enabled);

    /**
     * A window animation has been scheduled
     */
    public void windowAnimationStarted();

    /**
     * Animating windows has finished
     */
    public void windowAnimationFinished();

}
+1 −0
Original line number Diff line number Diff line
@@ -568,6 +568,7 @@ public class WindowAnimator {
        }

        if (!mAnimating && wasAnimating) {
            mPolicy.windowAnimationFinished();
            mService.requestTraversalLocked();
        }
        if (WindowManagerService.DEBUG_WINDOW_TRACE) {
+1 −0
Original line number Diff line number Diff line
@@ -9571,6 +9571,7 @@ public class WindowManagerService extends IWindowManager.Stub
    void scheduleAnimationLocked() {
        if (!mAnimationScheduled) {
            mAnimationScheduled = true;
            mPolicy.windowAnimationStarted();
            mChoreographer.postCallback(
                    Choreographer.CALLBACK_ANIMATION, mAnimator.mAnimationRunnable, null);
        }