Merge "TextSelection.Builder.setId should take null as well" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
10f8ed0cf8
@@ -154,8 +154,8 @@ public final class TextSelection implements Parcelable {
|
||||
* Sets an id for the TextSelection object.
|
||||
*/
|
||||
@NonNull
|
||||
public Builder setId(@NonNull String id) {
|
||||
mId = Preconditions.checkNotNull(id);
|
||||
public Builder setId(@Nullable String id) {
|
||||
mId = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user