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

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

Merge "Do not restore same autofill id twice"

parents 82b795c0 cb797813
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -17682,6 +17682,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                setAutofilled(baseState.mIsAutofilled);
            }
            if ((baseState.mSavedData & BaseSavedState.AUTOFILL_ID) != 0) {
                // It can happen that views have the same view id and the restoration path will not
                // be able to distinguish between them. The autofill id needs to be unique though.
                // Hence prevent the same autofill view id from being restored multiple times.
                ((BaseSavedState) state).mSavedData &= ~BaseSavedState.AUTOFILL_ID;
                mAutofillViewId = baseState.mAutofillViewId;
            }
        }