diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-29 15:11:40 -0400 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-10-29 15:11:40 -0400 |
commit | b5c05516ba2c341655d54f17bdd17a5ab2d173df (patch) | |
tree | 73e178fd09fdcffce6e18d2652f5c5fa8125055d /core/java/android/content | |
parent | 8e312e8160ef0cae569b6127591ee72c70bfda41 (diff) | |
parent | acff20bda404f59ffba6035b18956d6aff7afcd8 (diff) | |
download | frameworks_base-b5c05516ba2c341655d54f17bdd17a5ab2d173df.zip frameworks_base-b5c05516ba2c341655d54f17bdd17a5ab2d173df.tar.gz frameworks_base-b5c05516ba2c341655d54f17bdd17a5ab2d173df.tar.bz2 |
Merge change I3b7d5cbe into eclair
* changes:
Copy the selection args when creating a CPO since callers often reuse the passed in array.
Diffstat (limited to 'core/java/android/content')
-rw-r--r-- | core/java/android/content/ContentProviderOperation.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/content/ContentProviderOperation.java b/core/java/android/content/ContentProviderOperation.java index 60b406d..0467516 100644 --- a/core/java/android/content/ContentProviderOperation.java +++ b/core/java/android/content/ContentProviderOperation.java @@ -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; } |