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
|
@Override
|
||||||
public void setDarkTheme(boolean darkEnabled) {
|
public void setDarkTheme(boolean darkEnabled) {
|
||||||
if (view == null) {
|
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_left).setBackground(separatorColor);
|
||||||
view.findViewById(R.id.main_separator_right).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
|
@Override
|
||||||
public void render() {
|
protected ArrayList<SoftKey> getKeys() {
|
||||||
getView();
|
return keys;
|
||||||
enableClickHandlers();
|
|
||||||
setSoftKeysVisibility();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
@ -42,7 +40,12 @@ class MainLayoutTray extends BaseMainLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected ArrayList<SoftKey> getKeys() {
|
public void render() {
|
||||||
return keys;
|
getView();
|
||||||
|
enableClickHandlers();
|
||||||
|
setSoftKeysVisibility();
|
||||||
|
for (SoftKey key : getKeys()) {
|
||||||
|
key.render();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue