commit | d21b3c8881a105295bdc8d52978129b53feea33d | [log] [tgz] |
---|---|---|
author | Jun Mukai <mukai@google.com> | Thu Apr 23 14:09:34 2015 -0700 |
committer | Jun Mukai <mukai@google.com> | Tue Apr 28 13:10:44 2015 -0700 |
tree | 8bfa31bcc57a484d9a0567eb02c0da28f6db4eff | |
parent | 6e935ac286e6a1c561a28c6274fe11be590acef5 [diff] |
Expand the notification panel by Meta-N. Bug: 16351826 Change-Id: Ib33f2a3fee385ecb44e1e331e34dd9b2d6dee4aa
diff --git a/services/core/java/com/android/server/policy/PhoneWindowManager.java b/services/core/java/com/android/server/policy/PhoneWindowManager.java index 5536d4d..db62b13 100644 --- a/services/core/java/com/android/server/policy/PhoneWindowManager.java +++ b/services/core/java/com/android/server/policy/PhoneWindowManager.java
@@ -2668,6 +2668,17 @@ } } return -1; + } else if (keyCode == KeyEvent.KEYCODE_N && event.isMetaPressed()) { + if (down) { + IStatusBarService service = getStatusBarService(); + if (service != null) { + try { + service.expandNotificationsPanel(); + } catch (RemoteException e) { + // do nothing. + } + } + } } else if (keyCode == KeyEvent.KEYCODE_ASSIST) { if (down) { if (repeatCount == 0) {