* commit 'e1f9f2311035177a91dd568c7ec9a821a76b9e24': Fix inset check in ThreadedRenderer
This commit is contained in:
@@ -191,7 +191,8 @@ public class ThreadedRenderer extends HardwareRenderer {
|
|||||||
final float lightX = width / 2.0f;
|
final float lightX = width / 2.0f;
|
||||||
mWidth = width;
|
mWidth = width;
|
||||||
mHeight = height;
|
mHeight = height;
|
||||||
if (surfaceInsets != null && !surfaceInsets.isEmpty()) {
|
if (surfaceInsets != null && (surfaceInsets.left != 0 || surfaceInsets.right != 0
|
||||||
|
|| surfaceInsets.top != 0 || surfaceInsets.bottom != 0)) {
|
||||||
mHasInsets = true;
|
mHasInsets = true;
|
||||||
mInsetLeft = surfaceInsets.left;
|
mInsetLeft = surfaceInsets.left;
|
||||||
mInsetTop = surfaceInsets.top;
|
mInsetTop = surfaceInsets.top;
|
||||||
|
|||||||
@@ -1324,7 +1324,7 @@ public interface WindowManager extends ViewManager {
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public Rect surfaceInsets = new Rect();
|
public final Rect surfaceInsets = new Rect();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The desired bitmap format. May be one of the constants in
|
* The desired bitmap format. May be one of the constants in
|
||||||
|
|||||||
Reference in New Issue
Block a user