From 2e1859fb1a54a1fd91111e761a9d414fcf570f5e Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 3 May 2026 18:10:43 +0200 Subject: Fix the keyboard drawing behind the navigation bar (#1265) The width of the navigation was not accounted correctly. This reverts be8a99bd--- srcs/juloo.keyboard2/Keyboard2View.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'srcs') diff --git a/srcs/juloo.keyboard2/Keyboard2View.java b/srcs/juloo.keyboard2/Keyboard2View.java index 5d6e0fa..098bec1 100644 --- a/srcs/juloo.keyboard2/Keyboard2View.java +++ b/srcs/juloo.keyboard2/Keyboard2View.java @@ -264,13 +264,11 @@ public class Keyboard2View extends View @Override public void onMeasure(int wSpec, int hSpec) { - int width; DisplayMetrics dm = getContext().getResources().getDisplayMetrics(); - width = dm.widthPixels; + int width = dm.widthPixels; _marginLeft = Math.max(_config.horizontal_margin, _insets_left); _marginRight = Math.max(_config.horizontal_margin, _insets_right); _marginBottom = _config.margin_bottom + _insets_bottom; - width += _insets_left + _insets_right; _keyWidth = (width - _marginLeft - _marginRight) / _keyboard.keysWidth; _tc = new Theme.Computed(_theme, _config, _keyWidth, _keyboard); // Compute the size of labels based on the width or the height of keys. The -- cgit v1.2.3