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

Commit cdc23b51 authored by shubang's avatar shubang Committed by Shubang Lu
Browse files

Fix hidden subtitle issue

Test: make; local tests
Change-Id: I4b12d90e7137b030b7fc40cbbfd7d053bcbbcc56
(cherry picked from commit b1fed8e5b25d755bfb7e4d5329b9854bb9ef2773)
parent bfda3a2b
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -5054,9 +5054,17 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            // relative layering of multiple APPLICATION_MEDIA/OVERLAY has never
            // been defined and so we can use static layers and leave it that way.
            if (w.mAttrs.type == TYPE_APPLICATION_MEDIA) {
                if (mWinAnimator.hasSurface()) {
                    w.assignRelativeLayer(t, mWinAnimator.mSurfaceController.mSurfaceControl, -2);
                } else {
                    w.assignLayer(t, -2);
                }
            } else if (w.mAttrs.type == TYPE_APPLICATION_MEDIA_OVERLAY) {
                if (mWinAnimator.hasSurface()) {
                    w.assignRelativeLayer(t, mWinAnimator.mSurfaceController.mSurfaceControl, -1);
                } else {
                    w.assignLayer(t, -1);
                }
            } else {
                w.assignLayer(t, layer);
            }