mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-14 05:52:47 +00:00
fix broken width of emoji & clipboard bottom rows in one-handed mode
This commit is contained in:
parent
fce02d4669
commit
ce61fa9a21
1 changed files with 1 additions and 2 deletions
|
@ -218,9 +218,8 @@ public final class KeyboardLayoutSet {
|
|||
public static KeyboardLayoutSet buildEmojiClipBottomRow(final Context context, @Nullable final EditorInfo ei) {
|
||||
final Builder builder = new Builder(context, ei);
|
||||
builder.mParams.mMode = KeyboardId.MODE_TEXT;
|
||||
// always full width, but height should consider scale and number row to align nicely
|
||||
final int width = ResourceUtils.getKeyboardWidth(context, Settings.getInstance().getCurrent());
|
||||
// actually the keyboard does not have full height, but at this point we use it to get correct key heights
|
||||
final int width = ResourceUtils.getDefaultKeyboardWidth(context);
|
||||
final int height = ResourceUtils.getKeyboardHeight(context.getResources(), Settings.getInstance().getCurrent());
|
||||
builder.setKeyboardGeometry(width, height);
|
||||
builder.setSubtype(RichInputMethodManager.getInstance().getCurrentSubtype());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue