Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29ff5d9e authored by Justin Ghan's avatar Justin Ghan
Browse files

Don't show error message when handwriting is unsupported by IME or disabled

Bug: 339564132
Bug: 297962571
Test: atest StylusHandwritingTest
Flag: com.android.text.flags.handwriting_unsupported_message

Change-Id: Ic2d7af32b0e41933e1c9a5fff26ba59a4b123b49
parent 9b3bbe33
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -227,7 +227,10 @@ public class HandwritingInitiator {
                            mState.mStylusDownY, /* isHover */ false);
                    if (candidateView != null && candidateView.isEnabled()) {
                        boolean candidateHasFocus = candidateView.hasFocus();
                        if (shouldShowHandwritingUnavailableMessageForView(candidateView)) {
                        if (!candidateView.isStylusHandwritingAvailable()) {
                            mState.mShouldInitHandwriting = false;
                            return false;
                        } else if (shouldShowHandwritingUnavailableMessageForView(candidateView)) {
                            int messagesResId = (candidateView instanceof TextView tv
                                    && tv.isAnyPasswordInputType())
                                    ? R.string.error_handwriting_unsupported_password