mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix Key to use a disabled icon when the key is disabled
Bug: 6114350 Change-Id: I419bc1736c27046dfea254ac510f5da478b6412c
This commit is contained in:
parent
749048f4e4
commit
8c80fb9bcb
@ -558,11 +558,8 @@ public class Key {
|
||||
}
|
||||
|
||||
public Drawable getIcon(KeyboardIconsSet iconSet) {
|
||||
return iconSet.getIconDrawable(mIconId);
|
||||
}
|
||||
|
||||
public Drawable getDisabledIcon(KeyboardIconsSet iconSet) {
|
||||
return iconSet.getIconDrawable(mDisabledIconId);
|
||||
final int iconId = mEnabled ? mIconId : mDisabledIconId;
|
||||
return iconSet.getIconDrawable(iconId);
|
||||
}
|
||||
|
||||
public Drawable getPreviewIcon(KeyboardIconsSet iconSet) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user