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

Commit 98dd194d authored by Felix Stern's avatar Felix Stern
Browse files

Fix SurfaceControlViewHostTest activities for edge-to-edge

This fixes the SurfaceControlViewHostTest activities to properly handle being displayed in edge-to-edge mode.

Change-Id: Ica90df0212eb03479b59a5e2b10b48a77a15510a
Test: mp :SurfaceControlViewHostTest
Flag: EXEMPT bugfix
Bug: 359858684
parent 3a30eff5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ public class SurfaceControlViewHostSyncTest extends Activity implements SurfaceH
        content.addView(enableSyncButton,
                new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,
                        ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.RIGHT | Gravity.BOTTOM));
        content.setFitsSystemWindows(true);
        setContentView(content);

        mSv.setZOrderOnTop(false);
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ public class SurfaceControlViewHostTest extends Activity implements SurfaceHolde

    protected void onCreate(Bundle savedInstanceState) {
        FrameLayout content = new FrameLayout(this);
        content.setFitsSystemWindows(true);
        super.onCreate(savedInstanceState);
        mView = new SurfaceView(this);
        content.addView(mView, new FrameLayout.LayoutParams(
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ public class SurfaceInputTestActivity extends Activity {
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        LinearLayout content = new LinearLayout(this);
        content.setFitsSystemWindows(true);
        mLocalSurfaceView = new SurfaceView(this);
        content.addView(mLocalSurfaceView, new LinearLayout.LayoutParams(
                500, 500, Gravity.CENTER_HORIZONTAL | Gravity.TOP));