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

Commit 8d0243a3 authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix surface view on secondary display.

Bug: 7183618
Change-Id: I8d743b5db8f362afb97f720846d990f9a722b3bd
parent 14a9f2b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -456,11 +456,12 @@ public class SurfaceView extends View {
                }

                if (mWindow == null) {
                    Display display = getDisplay();
                    mWindow = new MyWindow(this);
                    mLayout.type = mWindowType;
                    mLayout.gravity = Gravity.START|Gravity.TOP;
                    mSession.addToDisplayWithoutInputChannel(mWindow, mWindow.mSeq, mLayout,
                            mVisible ? VISIBLE : GONE, Display.DEFAULT_DISPLAY, mContentInsets);
                            mVisible ? VISIBLE : GONE, display.getDisplayId(), mContentInsets);
                }
                
                boolean realSizeChanged;