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:singleLine="true"
|
||||||
android:ellipsize="start"
|
android:ellipsize="start"
|
||||||
android:inputType="textShortMessage|textAutoCorrect|textCapSentences"
|
android:inputType="textShortMessage|textAutoCorrect|textCapSentences"
|
||||||
android:imeOptions="actionSend|flagNoExtractUi|flagNoFullscreen" />
|
android:imeOptions="actionSend" />
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -565,6 +565,11 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
|
|||||||
@Override
|
@Override
|
||||||
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
|
||||||
final InputConnection inputConnection = super.onCreateInputConnection(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) {
|
if (mShowImeOnInputConnection && inputConnection != null) {
|
||||||
final InputMethodManager imm = InputMethodManager.getInstance();
|
final InputMethodManager imm = InputMethodManager.getInstance();
|
||||||
|
|||||||
Reference in New Issue
Block a user