Merge "Fix User unable to view the keyboard input" into pi-dev

This commit is contained in:
Selim Cinek
2018-05-10 22:09:38 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 1 deletions

View File

@@ -42,7 +42,7 @@
android:singleLine="true"
android:ellipsize="start"
android:inputType="textShortMessage|textAutoCorrect|textCapSentences"
android:imeOptions="actionSend|flagNoExtractUi|flagNoFullscreen" />
android:imeOptions="actionSend" />
<FrameLayout
android:layout_width="wrap_content"

View File

@@ -565,6 +565,11 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
@Override
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
final InputConnection inputConnection = super.onCreateInputConnection(outAttrs);
//if pinned, set imeOption to keep the behavior like in portrait.
if (mRemoteInputView != null && mRemoteInputView.mEntry.row.isPinned()) {
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NO_EXTRACT_UI
| EditorInfo.IME_FLAG_NO_FULLSCREEN;
}
if (mShowImeOnInputConnection && inputConnection != null) {
final InputMethodManager imm = InputMethodManager.getInstance();