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

Commit e354a9e4 authored by Alan Viverette's avatar Alan Viverette
Browse files

Check MenuItem.isVisible() for keyboard shortcuts

Parity with support-v7 change.

BUG: 18021345
Change-Id: I583b586d451a21bbd207d2b0584a396e1125ee59
parent cc8b3e8d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -828,7 +828,8 @@ public class MenuBuilder implements Menu {
                      || shortcutChar == possibleChars.meta[2]
                      || (qwerty && shortcutChar == '\b' &&
                          keyCode == KeyEvent.KEYCODE_DEL)) &&
                  item.isEnabled()) {
                  item.isEnabled() &&
                  item.isVisible()) {
                items.add(item);
            }
        }