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

This reverts commit c5d4e068f2.

Change-Id: I4027cf0f91ebb9032c21efad7025118891188bc6
This commit is contained in:
Felipe Leme
2017-06-16 22:57:58 +00:00
parent c5d4e068f2
commit 313cf3fb93

View File

@@ -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;
}
/////////////////////////////////////