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

Commit 45add1ab authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Fix bit comparison for checking the variant of the input type."

parents 841b9412 15b80164
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9499,8 +9499,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    public boolean isSuggestionsEnabled() {
        if (!mSuggestionsEnabled) return false;
        if ((mInputType & InputType.TYPE_MASK_CLASS) != InputType.TYPE_CLASS_TEXT) return false;
        final int variation =
                mInputType & (EditorInfo.TYPE_MASK_CLASS | EditorInfo.TYPE_MASK_VARIATION);
        final int variation = mInputType & EditorInfo.TYPE_MASK_VARIATION;
        if (variation == EditorInfo.TYPE_TEXT_VARIATION_NORMAL ||
                variation == EditorInfo.TYPE_TEXT_VARIATION_EMAIL_SUBJECT ||
                variation == EditorInfo.TYPE_TEXT_VARIATION_LONG_MESSAGE ||