am c703b49e: am 54668b8a: am e1787009: Merge "Added null check on return value for getKeyDispatcherState()"
* commit 'c703b49eb13993c45a1cab7ea1130601fba1df3e': Added null check on return value for getKeyDispatcherState()
This commit is contained in:
@@ -1489,6 +1489,10 @@ public class PopupWindow {
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
|
||||
if (getKeyDispatcherState() == null) {
|
||||
return super.dispatchKeyEvent(event);
|
||||
}
|
||||
|
||||
if (event.getAction() == KeyEvent.ACTION_DOWN
|
||||
&& event.getRepeatCount() == 0) {
|
||||
KeyEvent.DispatcherState state = getKeyDispatcherState();
|
||||
|
||||
Reference in New Issue
Block a user