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

Commit 906e8c08 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't show error message when handwriting is unsupported by IME or disabled" into main

parents 8d3a8fb2 29ff5d9e
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