Merge "Let Rotary encoder events skip IME" into cw-f-dev

This commit is contained in:
TreeHugger Robot
2016-07-29 23:48:54 +00:00
committed by Android (Google) Code Review

View File

@@ -6039,7 +6039,8 @@ public final class ViewRootImpl implements ViewParent,
return true; return true;
} }
return mEvent instanceof MotionEvent return mEvent instanceof MotionEvent
&& mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER); && (mEvent.isFromSource(InputDevice.SOURCE_CLASS_POINTER)
|| mEvent.isFromSource(InputDevice.SOURCE_ROTARY_ENCODER));
} }
public boolean shouldSendToSynthesizer() { public boolean shouldSendToSynthesizer() {