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

Commit b0c2ed63 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Temporarily re-added addSavableIds() with AutoFillId."

parents 6dbf377e 43818a73
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -198,6 +198,26 @@ public final class SaveInfo implements Parcelable {
            return this;
        }


        /**
         * @hide
         */
        // TODO(b/33197203): temporary fix to runtime crash
        public @NonNull Builder addSavableIds(@Nullable AutoFillId... ids) {
            throwIfDestroyed();

            if (ids == null) {
                return this;
            }
            for (AutoFillId id : ids) {
                if (mSavableIds == null) {
                    mSavableIds = new ArraySet<>();
                }
                mSavableIds.add(id.getDaRealId());
            }
            return this;
        }

        /**
         * Sets an optional description to be shown in the UI when the user is asked to save.
         *