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

Commit 1293f319 authored by Mariia Sandrikova's avatar Mariia Sandrikova
Browse files

Apply letterbox changes when background color changes.

Fix: 179380577
Test: atest LetterboxTest
Change-Id: Ieedbb2a30bd66ee1aa474eed9e5c9b013520a838
parent 51158471
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ public class Letterbox {
        }

        public void applySurfaceChanges(SurfaceControl.Transaction t) {
            if (mSurfaceFrameRelative.equals(mLayoutFrameRelative)) {
            if (!needsApplySurfaceChanges()) {
                // Nothing changed.
                return;
            }
+4 −0
Original line number Diff line number Diff line
@@ -183,6 +183,10 @@ public class LetterboxTest {
        mColor = Color.GREEN;

        assertTrue(mLetterbox.needsApplySurfaceChanges());

        mLetterbox.applySurfaceChanges(mTransaction);

        verify(mTransaction).setColor(mSurfaces.top, new float[]{0, 1, 0});
    }

    @Test