mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix action moreKeys vertical positioning
This commit is contained in:
parent
4bada6e34d
commit
f5507d186a
@ -646,7 +646,12 @@ public final class MainKeyboardView extends KeyboardView implements DrawingProxy
|
||||
// aligned with the bottom edge of the visible part of the key preview.
|
||||
// {@code mPreviewVisibleOffset} has been set appropriately in
|
||||
// {@link KeyboardView#showKeyPreview(PointerTracker)}.
|
||||
final int pointY = key.getY() + mKeyPreviewDrawParams.getVisibleOffset() + (keyPreviewEnabled ? key.getHeight() : key.getVerticalGap());
|
||||
final int pointY;
|
||||
if(key.isActionKey()) {
|
||||
pointY = key.getY();
|
||||
} else {
|
||||
pointY = key.getY() + mKeyPreviewDrawParams.getVisibleOffset() + (keyPreviewEnabled ? key.getHeight() : key.getVerticalGap());
|
||||
}
|
||||
moreKeysKeyboardView.showMoreKeysPanel(this, this, pointX, pointY, mKeyboardActionListener);
|
||||
return moreKeysKeyboardView;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ object ActionRegistry {
|
||||
listOf(SwitchLanguageAction, TextEditAction, ClipboardHistoryAction, EmojiAction, UndoAction, RedoAction).map {
|
||||
AllActions.indexOf(it)
|
||||
}.joinToString(separator = ",") {
|
||||
"!icon/action_primary_$it|!code/action_$it"
|
||||
"!icon/action_$it|!code/action_$it"
|
||||
}
|
||||
|
||||
fun stringToActions(string: String, defaults: List<Action>): List<Action> {
|
||||
|
Loading…
Reference in New Issue
Block a user