Merge "Fix sw legacy compat path in SurfaceView" into nyc-dev
am: 736a525
* commit '736a52538a9072a96dab02c14c89bb2e0a92c645':
Fix sw legacy compat path in SurfaceView
Change-Id: I6d5961535ce22cf699478e28dd1b6c3e0d6e1379
This commit is contained in:
@@ -648,13 +648,19 @@ public class SurfaceView extends View {
|
|||||||
|
|
||||||
transformFromViewToWindowSpace(mLocation);
|
transformFromViewToWindowSpace(mLocation);
|
||||||
|
|
||||||
|
mWinFrame.set(mWindowSpaceLeft, mWindowSpaceTop,
|
||||||
|
mLocation[0], mLocation[1]);
|
||||||
|
|
||||||
|
if (mTranslator != null) {
|
||||||
|
mTranslator.translateRectInAppWindowToScreen(mWinFrame);
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Log.d(TAG, String.format("updateWindowPosition UI, " +
|
Log.d(TAG, String.format("updateWindowPosition UI, " +
|
||||||
"postion = [%d, %d, %d, %d]", mWindowSpaceLeft, mWindowSpaceTop,
|
"postion = [%d, %d, %d, %d]", mWinFrame.left, mWinFrame.top,
|
||||||
mLocation[0], mLocation[1]));
|
mWinFrame.right, mWinFrame.bottom));
|
||||||
mSession.repositionChild(mWindow, mWindowSpaceLeft, mWindowSpaceTop,
|
mSession.repositionChild(mWindow, mWinFrame.left, mWinFrame.top,
|
||||||
mLocation[0], mLocation[1],
|
mWinFrame.right, mWinFrame.bottom, -1, mWinFrame);
|
||||||
-1, mWinFrame);
|
|
||||||
} catch (RemoteException ex) {
|
} catch (RemoteException ex) {
|
||||||
Log.e(TAG, "Exception from relayout", ex);
|
Log.e(TAG, "Exception from relayout", ex);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user