Fix calculation of overscan insets in WindowState.

Bug: 18630625
Change-Id: I19b0c8627c3b9d61923e68c59fce9bddb2751c3d
This commit is contained in:
Filip Gruszczynski
2014-12-05 13:31:43 -08:00
parent 2aa909f0ab
commit ff778fe450

View File

@@ -617,8 +617,8 @@ final class WindowState implements WindowManagerPolicy.WindowState {
mOverscanInsets.set(Math.max(mOverscanFrame.left - mFrame.left, 0),
Math.max(mOverscanFrame.top - mFrame.top, 0),
Math.max(mFrame.right - mOverscanFrame.right, 0),
Math.max(mFrame.bottom - mOverscanFrame.bottom, 0));
Math.min(mFrame.right - mOverscanFrame.right, 0),
Math.min(mFrame.bottom - mOverscanFrame.bottom, 0));
mContentInsets.set(mContentFrame.left - mFrame.left,
mContentFrame.top - mFrame.top,