fixed Backspace not being correctly mirrored for RTL languages, in the small Main View
This commit is contained in:
parent
e1b7496733
commit
32638aca46
2 changed files with 17 additions and 14 deletions
|
|
@ -23,6 +23,14 @@ class MainLayoutSmall extends MainLayoutTray {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ArrayList<SoftKey> getKeys() {
|
||||
if (view != null && keys.isEmpty()) {
|
||||
keys = getKeysFromContainer(view.findViewById(R.id.main_soft_keys));
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDarkTheme(boolean darkEnabled) {
|
||||
if (view == null) {
|
||||
|
|
@ -45,12 +53,4 @@ class MainLayoutSmall extends MainLayoutTray {
|
|||
view.findViewById(R.id.main_separator_left).setBackground(separatorColor);
|
||||
view.findViewById(R.id.main_separator_right).setBackground(separatorColor);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected ArrayList<SoftKey> getKeys() {
|
||||
if (view != null && keys.isEmpty()) {
|
||||
keys = getKeysFromContainer(view.findViewById(R.id.main_soft_keys));
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,10 +22,8 @@ class MainLayoutTray extends BaseMainLayout {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void render() {
|
||||
getView();
|
||||
enableClickHandlers();
|
||||
setSoftKeysVisibility();
|
||||
protected ArrayList<SoftKey> getKeys() {
|
||||
return keys;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -42,7 +40,12 @@ class MainLayoutTray extends BaseMainLayout {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected ArrayList<SoftKey> getKeys() {
|
||||
return keys;
|
||||
public void render() {
|
||||
getView();
|
||||
enableClickHandlers();
|
||||
setSoftKeysVisibility();
|
||||
for (SoftKey key : getKeys()) {
|
||||
key.render();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue