summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2011-06-28 14:45:34 -0700
committerDaisuke Miyakawa <dmiyakawa@google.com>2011-06-28 14:45:34 -0700
commit7d7d0e95636344c01eb4e4d034791c199bee98e9 (patch)
tree25b4990ff7d3f0815ca7b8e93bf1bf59a26b6331 /src/com
parent2f830d3bb66f780937203e9738e046841a070e73 (diff)
downloadpackages_providers_ContactsProvider-7d7d0e95636344c01eb4e4d034791c199bee98e9.zip
packages_providers_ContactsProvider-7d7d0e95636344c01eb4e4d034791c199bee98e9.tar.gz
packages_providers_ContactsProvider-7d7d0e95636344c01eb4e4d034791c199bee98e9.tar.bz2
use System.arraycopy
Change-Id: I8f9525659ce5bead62f3693f79ce70771d87e384
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/providers/contacts/ContactsProvider2.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/providers/contacts/ContactsProvider2.java b/src/com/android/providers/contacts/ContactsProvider2.java
index 05edce5..4a61410 100644
--- a/src/com/android/providers/contacts/ContactsProvider2.java
+++ b/src/com/android/providers/contacts/ContactsProvider2.java
@@ -3748,11 +3748,8 @@ public class ContactsProvider2 extends SQLiteContentProvider implements OnAccoun
if (selectionArgs != null) {
final int length = selectionArgs.length;
doubledSelectionArgs = new String[length * 2];
- for (int i = 0; i < length; i++) {
- final String arg = selectionArgs[i];
- doubledSelectionArgs[i] = arg;
- doubledSelectionArgs[length + i] = arg;
- }
+ System.arraycopy(selectionArgs, 0, doubledSelectionArgs, 0, length);
+ System.arraycopy(selectionArgs, 0, doubledSelectionArgs, length, length);
}
Cursor cursor = db.rawQuery(unionQuery, doubledSelectionArgs);