commit | 3871faacccbee0b975283c25e3d86b59dd144423 | [log] [tgz] |
---|---|---|
author | Daichi Hirono <hirono@google.com> | Wed Apr 05 12:57:28 2017 +0900 |
committer | Daichi Hirono <hirono@google.com> | Mon Jun 12 10:12:27 2017 +0900 |
tree | 1f532e6bf691587ba140a8dc5dde4a5b99659dcd | |
parent | 3b1a5a91549357b11b9b696d2bec559d272ce6eb [diff] |
Fix NPE in requestKeyboardShortcuts Recents.getSystemServices() returns null if it has not created an instance of Recents. The CL replaces Recents.getSystemServices() with SystemServicesProxy.getInstance(mContext) so that KeyboardShortcuts class works independent of Recents. Bug: 36873454 Test: Invoke Activity#requestShowKeyboardShortcuts Change-Id: I3c2520695641607cc52f15506ba09ccdfe96940f (cherry picked from commit 893348d3f66ba2a7f1ecd9eccaf34026923c77f3)