Merge "Revert "Trim text from autofillvalue when checking for empty."" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
215ebb941d
@@ -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;
|
||||
}
|
||||
|
||||
/////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user