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

Commit 8cd10f9a authored by lijilou's avatar lijilou Committed by Chris Li
Browse files

Fixed the problem of repeatedly calling the setContainerLayer method.

Bug: none
Flag: EXEMPT minor optimization
Change-Id: Ic032cb001c09285af97413d243f92cbcccb173de
parent f5d7074e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1319,7 +1319,7 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp
                .setOpaque(true)
                .setContainerLayer()
                .setCallsite("DisplayContent");
        mSurfaceControl = b.setName(getName()).setContainerLayer().build();
        mSurfaceControl = b.setName(getName()).build();
        for (int i = getChildCount() - 1; i >= 0; i--)  {
            final SurfaceControl sc = getChildAt(i).mSurfaceControl;
            if (sc != null) {