Loading core/java/android/view/inputmethod/InputMethodManager.java +18 −10 Original line number Diff line number Diff line Loading @@ -1519,7 +1519,16 @@ public final class InputMethodManager { } void setInputChannelLocked(InputChannel channel) { if (mCurChannel != channel) { if (mCurChannel == channel) { return; } if (mCurChannel != null && channel != null && mCurChannel.getToken() == channel.getToken()) { // channel is a dupe of 'mCurChannel', because they have the same token, and represent // the same connection. Ignore the incoming channel and keep using 'mCurChannel' to // avoid confusing the InputEventReceiver. return; } if (mCurSender != null) { flushPendingEventsLocked(); mCurSender.dispose(); Loading @@ -1530,7 +1539,6 @@ public final class InputMethodManager { } mCurChannel = channel; } } /** * Reset all of the state associated with a served view being connected Loading Loading
core/java/android/view/inputmethod/InputMethodManager.java +18 −10 Original line number Diff line number Diff line Loading @@ -1519,7 +1519,16 @@ public final class InputMethodManager { } void setInputChannelLocked(InputChannel channel) { if (mCurChannel != channel) { if (mCurChannel == channel) { return; } if (mCurChannel != null && channel != null && mCurChannel.getToken() == channel.getToken()) { // channel is a dupe of 'mCurChannel', because they have the same token, and represent // the same connection. Ignore the incoming channel and keep using 'mCurChannel' to // avoid confusing the InputEventReceiver. return; } if (mCurSender != null) { flushPendingEventsLocked(); mCurSender.dispose(); Loading @@ -1530,7 +1539,6 @@ public final class InputMethodManager { } mCurChannel = channel; } } /** * Reset all of the state associated with a served view being connected Loading