Skip to content

Commit

Permalink
Avoid fullscreen text entry UI in landscape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mchowning committed Feb 20, 2020
1 parent ddb8b3f commit 3723be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.24.0
------
* [Android] Can now scroll post when in landscape orientation with the soft keyboard displayed

1.23.0
------
* New block: Group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import android.text.Spannable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputMethodManager;
import android.widget.TextView;

Expand Down Expand Up @@ -138,6 +139,7 @@ public void onSelectionChanged(int selStart, int selEnd) {
ReactAztecText.this.propagateSelectionChanges(selStart, selEnd);
}
});
this.setImeOptions(getImeOptions() | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
this.setInputType(InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES | InputType.TYPE_TEXT_FLAG_MULTI_LINE);
}

Expand Down

0 comments on commit 3723be0

Please sign in to comment.