Commit fde85e21 authored by rouslan's avatar rouslan Committed by Commit bot

[android] Show keyboard switcher icon.

Show the keyboard switcher icon on the right edge of the navigation bar
when two or more IMEs are enabled and a physical keyboard is connected.

BUG=452543

Review URL: https://codereview.chromium.org/879403003

Cr-Commit-Position: refs/heads/master@{#313660}
parent dd006cbc
......@@ -280,11 +280,10 @@ public class ImeAdapter {
private void showKeyboard() {
mIsShowWithoutHideOutstanding = true;
mInputMethodManagerWrapper.showSoftInput(
mViewEmbedder.getAttachedView(), 0, mViewEmbedder.getNewShowKeyboardReceiver());
if (mViewEmbedder.getAttachedView().getResources().getConfiguration().keyboard
== Configuration.KEYBOARD_NOKEYS) {
mInputMethodManagerWrapper.showSoftInput(mViewEmbedder.getAttachedView(), 0,
mViewEmbedder.getNewShowKeyboardReceiver());
} else {
!= Configuration.KEYBOARD_NOKEYS) {
mViewEmbedder.onKeyboardBoundsUnchanged();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment