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

Commit ffd13036 authored by Felipe Leme's avatar Felipe Leme Committed by android-build-merger
Browse files

Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev am: 215ebb94

am: 1581ceb1

Change-Id: Ia8931bffb2a19993b598fcf6ecf9f09ab5157614
parents e9bd6e72 1581ceb1
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -141,10 +141,7 @@ public final class AutofillValue implements Parcelable {
     * @hide
     */
    public boolean isEmpty() {
        if (!isText()) return false;

        final CharSequence text = (CharSequence) mValue;
        return text == null || TextUtils.getTrimmedLength(text) == 0;
        return isText() && ((CharSequence) mValue).length() == 0;
    }

    /////////////////////////////////////