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

Commit fb25fd47 authored by John Reck's avatar John Reck Committed by android-build-merger
Browse files

Merge "Fix sw legacy compat path in SurfaceView" into nyc-dev am: 736a5253

am: 8fdfaf38

* commit '8fdfaf38':
  Fix sw legacy compat path in SurfaceView

Change-Id: I5c4c9d2194da8987c7a9612448433d8bf83cf3d0
parents d78dfcb6 8fdfaf38
Loading
Loading
Loading
Loading
+11 −5
Original line number Diff line number Diff line
@@ -648,13 +648,19 @@ public class SurfaceView extends View {

                transformFromViewToWindowSpace(mLocation);

                mWinFrame.set(mWindowSpaceLeft, mWindowSpaceTop,
                        mLocation[0], mLocation[1]);

                if (mTranslator != null) {
                    mTranslator.translateRectInAppWindowToScreen(mWinFrame);
                }

                try {
                    Log.d(TAG, String.format("updateWindowPosition UI, " +
                            "postion = [%d, %d, %d, %d]", mWindowSpaceLeft, mWindowSpaceTop,
                            mLocation[0], mLocation[1]));
                    mSession.repositionChild(mWindow, mWindowSpaceLeft, mWindowSpaceTop,
                            mLocation[0], mLocation[1],
                            -1, mWinFrame);
                            "postion = [%d, %d, %d, %d]", mWinFrame.left, mWinFrame.top,
                            mWinFrame.right, mWinFrame.bottom));
                    mSession.repositionChild(mWindow, mWinFrame.left, mWinFrame.top,
                            mWinFrame.right, mWinFrame.bottom, -1, mWinFrame);
                } catch (RemoteException ex) {
                    Log.e(TAG, "Exception from relayout", ex);
                }