Loading java/src/com/android/inputmethod/latin/utils/ResourceUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ public final class ResourceUtils { } public static int getDefaultKeyboardWidth(final Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) { if (Build.VERSION.SDK_INT >= 35) { // Build.VERSION_CODES.VANILLA_ICE_CREAM // Since Android 15’s edge-to-edge enforcement, window insets should be considered. final WindowManager wm = context.getSystemService(WindowManager.class); final WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); Loading Loading
java/src/com/android/inputmethod/latin/utils/ResourceUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -188,7 +188,7 @@ public final class ResourceUtils { } public static int getDefaultKeyboardWidth(final Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.VANILLA_ICE_CREAM) { if (Build.VERSION.SDK_INT >= 35) { // Build.VERSION_CODES.VANILLA_ICE_CREAM // Since Android 15’s edge-to-edge enforcement, window insets should be considered. final WindowManager wm = context.getSystemService(WindowManager.class); final WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); Loading