Merge "Fix User unable to view the keyboard input" into pi-dev
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user