diff options
| author | Patrick | 2026-05-07 20:16:23 +0200 |
|---|---|---|
| committer | Patrick | 2026-05-07 20:16:23 +0200 |
| commit | b866f59e400973c2f7ba0e97517fdddeb3efbb33 (patch) | |
| tree | 20c702893298303445e4513de78a9fd83ca5bf94 /srcs/juloo.keyboard2/Keyboard2View.java | |
| parent | 5cfb4e328e4985f9ea7c145a76938f48e9df6fef (diff) | |
| parent | b807f217a06d3312e05a25c23342f41d339e76c6 (diff) | |
| download | unexpected-keyboard-b866f59e400973c2f7ba0e97517fdddeb3efbb33.tar.gz unexpected-keyboard-b866f59e400973c2f7ba0e97517fdddeb3efbb33.zip | |
Merge branch 'master' into skintones
Diffstat (limited to 'srcs/juloo.keyboard2/Keyboard2View.java')
| -rw-r--r-- | srcs/juloo.keyboard2/Keyboard2View.java | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
