Merge "Crash early when requesting a keyboard shortcut helper..." into nyc-dev am: 52546e4
am: f58d81e
* commit 'f58d81e640ac2d471259838af986b410f5cd2938':
Crash early when requesting a keyboard shortcut helper...
Change-Id: I2ef9f779a6295d90e9654738317ea39cd4f10870
This commit is contained in:
@@ -3372,6 +3372,16 @@ public final class ViewRootImpl implements ViewParent,
|
||||
return super.getMessageName(message);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
|
||||
if (msg.what == MSG_REQUEST_KEYBOARD_SHORTCUTS && msg.obj == null) {
|
||||
// Debugging for b/27963013
|
||||
throw new NullPointerException(
|
||||
"Attempted to call MSG_REQUEST_KEYBOARD_SHORTCUTS with null receiver:");
|
||||
}
|
||||
return super.sendMessageAtTime(msg, uptimeMillis);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleMessage(Message msg) {
|
||||
switch (msg.what) {
|
||||
|
||||
Reference in New Issue
Block a user