Loading core/java/com/android/internal/policy/SystemBarUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -64,12 +64,14 @@ public final class SystemBarUtils { display.getDisplayInfo(info); Insets insets; Insets waterfallInsets; final int localWidth = context.getResources().getDisplayMetrics().widthPixels; final int localHeight = context.getResources().getDisplayMetrics().heightPixels; if (cutout == null) { insets = Insets.NONE; waterfallInsets = Insets.NONE; } else { DisplayCutout rotated = cutout.getRotated(info.logicalWidth, info.logicalHeight, rotation, targetRot); cutout.getRotated(localWidth, localHeight, rotation, targetRot); insets = Insets.of(rotated.getSafeInsets()); waterfallInsets = rotated.getWaterfallInsets(); } Loading Loading
core/java/com/android/internal/policy/SystemBarUtils.java +3 −1 Original line number Diff line number Diff line Loading @@ -64,12 +64,14 @@ public final class SystemBarUtils { display.getDisplayInfo(info); Insets insets; Insets waterfallInsets; final int localWidth = context.getResources().getDisplayMetrics().widthPixels; final int localHeight = context.getResources().getDisplayMetrics().heightPixels; if (cutout == null) { insets = Insets.NONE; waterfallInsets = Insets.NONE; } else { DisplayCutout rotated = cutout.getRotated(info.logicalWidth, info.logicalHeight, rotation, targetRot); cutout.getRotated(localWidth, localHeight, rotation, targetRot); insets = Insets.of(rotated.getSafeInsets()); waterfallInsets = rotated.getWaterfallInsets(); } Loading