Allow InputEvents to propagate w/o IME

If no IME was present, InputEvents such as KeyEvents
would simple be dropped instead of going through
to the Activity's View hierarchy.

Change-Id: I9de25bdbf5d1564b77b25679e19dae18591a8c1c
This commit is contained in:
Adam Lesinski
2013-10-28 16:03:19 -07:00
parent d5ed804f6f
commit c0f6eed40f

View File

@@ -3726,7 +3726,8 @@ public final class ViewRootImpl implements ViewParent,
if (result == InputMethodManager.DISPATCH_HANDLED) {
return FINISH_HANDLED;
} else if (result == InputMethodManager.DISPATCH_NOT_HANDLED) {
return FINISH_NOT_HANDLED;
// The IME could not handle it, so skip along to the next InputStage
return FORWARD;
} else {
return DEFER; // callback will be invoked later
}