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

am: 1581ceb1fb

Change-Id: Ia8931bffb2a19993b598fcf6ecf9f09ab5157614
This commit is contained in:
Felipe Leme
2017-06-17 01:09:38 +00:00
committed by android-build-merger

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