Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c80fb9b authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix Key to use a disabled icon when the key is disabled

Bug: 6114350
Change-Id: I419bc1736c27046dfea254ac510f5da478b6412c
parent 749048f4
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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) {