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

Commit 313cf3fb authored by Felipe Leme's avatar Felipe Leme
Browse files

Revert "Trim text from autofillvalue when checking for empty."

This reverts commit c5d4e068.

Change-Id: I4027cf0f91ebb9032c21efad7025118891188bc6
parent c5d4e068
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;
    }

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