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 Jan 30, 2020
1 parent 28f7f7e commit c8b7866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
1.22.0
------
* Make inserter to show options on long-press to add before/after
* [Android] When phone is in landscape orientation and soft keyboard is displayed, allow scrolling through post.

1.21.0
------
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 c8b7866

Please sign in to comment.