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

Commit 685a8770 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Fix inset check in ThreadedRenderer" into lmp-mr1-dev

parents 159da3db 3aa1ffbc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -191,7 +191,8 @@ public class ThreadedRenderer extends HardwareRenderer {
        final float lightX = width / 2.0f;
        mWidth = width;
        mHeight = height;
        if (surfaceInsets != null && !surfaceInsets.isEmpty()) {
        if (surfaceInsets != null && (surfaceInsets.left != 0 || surfaceInsets.right != 0
                || surfaceInsets.top != 0 || surfaceInsets.bottom != 0)) {
            mHasInsets = true;
            mInsetLeft = surfaceInsets.left;
            mInsetTop = surfaceInsets.top;
+1 −1
Original line number Diff line number Diff line
@@ -1324,7 +1324,7 @@ public interface WindowManager extends ViewManager {
         *
         * @hide
         */
        public Rect surfaceInsets = new Rect();
        public final Rect surfaceInsets = new Rect();
    
        /**
         * The desired bitmap format.  May be one of the constants in