am b5c05516: Merge change I3b7d5cbe into eclair

Merge commit 'b5c05516ba2c341655d54f17bdd17a5ab2d173df' into eclair-mr2

* commit 'b5c05516ba2c341655d54f17bdd17a5ab2d173df':
  Copy the selection args when creating a CPO since callers often reuse the passed in array.
This commit is contained in:
Jeff Hamilton
2009-10-29 19:29:16 -07:00
committed by Android Git Automerger

View File

@@ -545,7 +545,8 @@ public class ContentProviderOperation implements Parcelable {
"only updates, deletes, and asserts can have selections"); "only updates, deletes, and asserts can have selections");
} }
mSelection = selection; mSelection = selection;
mSelectionArgs = selectionArgs; mSelectionArgs = new String[selectionArgs.length];
System.arraycopy(selectionArgs, 0, mSelectionArgs, 0, selectionArgs.length);
return this; return this;
} }