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

Commit 31e3b5c0 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Fix dead surface/window left on screen" into nyc-dev

am: 289395b1

* commit '289395b1':
  Fix dead surface/window left on screen

Change-Id: Id35fbc3822975ca16d8134f780f81ad09efdf2b5
parents 0cdb8177 289395b1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4258,7 +4258,6 @@ public class WindowManagerService extends IWindowManager.Stub
                                    WindowManagerPolicy.TRANSIT_EXIT);
                        }
                    }
                    win.mAnimatingExit = true;
                    changed = true;
                    win.setDisplayLayoutNeeded();
                }
+3 −0
Original line number Diff line number Diff line
@@ -100,6 +100,8 @@ class WindowSurfaceController {
    void hideInTransaction(String reason) {
        if (SHOW_TRANSACTIONS) logSurface("HIDE ( " + reason + " )", null);
        mHiddenForOtherReasons = true;

        mAnimator.destroyPreservedSurfaceLocked();
        updateVisibility();
    }

@@ -180,6 +182,7 @@ class WindowSurfaceController {
                updateVisibility();
            } else {
                mHiddenForCrop = true;
                mAnimator.destroyPreservedSurfaceLocked();
                updateVisibility();
            }
        } catch (RuntimeException e) {