Fix incorrect SV calculation in non-RT codepath.

We were using width/height as top/bottom...not much more to it
than that :).

Bug: 62752640
Test: go/wm-smoke
Change-Id: I57f081b4fab555f0f551e753618725bdd3780305
This commit is contained in:
Robert Carr
2017-07-18 13:10:02 -07:00
parent f99ac67bdb
commit c90e5f8656

View File

@@ -729,7 +729,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
mLocation[1] = getHeight();
mScreenRect.set(mWindowSpaceLeft, mWindowSpaceTop,
mLocation[0], mLocation[1]);
mWindowSpaceLeft + mLocation[0], mWindowSpaceTop + mLocation[1]);
if (mTranslator != null) {
mTranslator.translateRectInAppWindowToScreen(mScreenRect);