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

Commit acff20bd authored by Jeff Hamilton's avatar Jeff Hamilton
Browse files

Copy the selection args when creating a CPO since callers often reuse the passed in array.

Bug: 2221947
Change-Id: I3b7d5cbef61777d76ca7fc0d7c91c44553e609a9
parent 25aa87b2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -545,7 +545,8 @@ public class ContentProviderOperation implements Parcelable {
                        "only updates, deletes, and asserts can have selections");
            }
            mSelection = selection;
            mSelectionArgs = selectionArgs;
            mSelectionArgs = new String[selectionArgs.length];
            System.arraycopy(selectionArgs, 0, mSelectionArgs, 0, selectionArgs.length);
            return this;
        }