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

Commit 88db3448 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Browser edit fields should report variation WEB_EDIT_TEXT.

This will enable the IME to enable/disable prediction features
for browser fields where the exact type is not very well defined.
Part of the fix for #1743620
parent 85dfec8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -538,7 +538,8 @@ import java.util.ArrayList;
     * removing the password input type.
     */
    public void setSingleLine(boolean single) {
        int inputType = EditorInfo.TYPE_CLASS_TEXT;
        int inputType = EditorInfo.TYPE_CLASS_TEXT
                | EditorInfo.TYPE_TEXT_VARIATION_WEB_EDIT_TEXT;
        if (!single) {
            inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE
                    | EditorInfo.TYPE_TEXT_FLAG_CAP_SENTENCES