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

Commit 410f7ee4 authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Check MenuItem.isVisible() for keyboard shortcuts" into lmp-mr1-dev

parents 04e6827a e354a9e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -828,7 +828,8 @@ public class MenuBuilder implements Menu {
                      || shortcutChar == possibleChars.meta[2]
                      || shortcutChar == possibleChars.meta[2]
                      || (qwerty && shortcutChar == '\b' &&
                      || (qwerty && shortcutChar == '\b' &&
                          keyCode == KeyEvent.KEYCODE_DEL)) &&
                          keyCode == KeyEvent.KEYCODE_DEL)) &&
                  item.isEnabled()) {
                  item.isEnabled() &&
                  item.isVisible()) {
                items.add(item);
                items.add(item);
            }
            }
        }
        }