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

Commit ac89416c authored by Alan Viverette's avatar Alan Viverette
Browse files

Always apply surface insets

Change-Id: I9d8ad0c7fcf7a1016e01c2332f45614da5d2cf0c
parent e6ab031e
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -468,13 +468,8 @@ public final class ViewRootImpl implements ViewParent,

                // Compute surface insets required to draw at specified Z value.
                // TODO: Use real shadow insets for a constant max Z.
                if (view.isHardwareAccelerated()) {
                final int surfaceInset = (int) Math.ceil(view.getZ() * 2);
                attrs.surfaceInsets.set(surfaceInset, surfaceInset, surfaceInset, surfaceInset);
                } else {
                    // Software accelerated windows can't use insets.
                    attrs.surfaceInsets.setEmpty();
                }

                CompatibilityInfo compatibilityInfo = mDisplayAdjustments.getCompatibilityInfo();
                mTranslator = compatibilityInfo.getTranslator();