Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Samsung predictive text in the Aztec editor #21740

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
mContent.setMinImagesWidth(minMediaSize);
mContent.setMaxImagesWidth(maxMediaSize);

// On some Samsung devices, predictive text may cause the content to be malformed.
// To resolve this we disable predicative text. Note that Aztec only enforces this
// setting on devices using the Samsung keyboard and running API 33+.
// see https://github.com/wordpress-mobile/WordPress-Android/issues/21739
mContent.enableSamsungPredictiveBehaviorOverride();

// request dependency injection. Do this after setting min/max dimensions
if (getActivity() instanceof EditorFragmentActivity) {
((EditorFragmentActivity) getActivity()).initializeEditorFragment();
Expand Down