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

Commit 84368781 authored by Tony Mak's avatar Tony Mak
Browse files

TextSelection.Builder.setId should take null as well

TextSelection#Id is nullable, so the builder should take null as well.

Bug: 79779551
Test: Build
Change-Id: Iacabcab2befcbd4cb1c8674c253fe9a26cb877bf
parent 1589a43e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
        }