aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-contacts
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2014-05-14 11:43:01 +0200
committerSamuel Tardieu <sam@rfc1149.net>2014-05-14 14:23:45 +0200
commita55cdab51add43d4fafeb8ef47506ed4b35d8fba (patch)
treebabf244191a45086243c571667eaba6840a7be47 /cgeo-contacts
parentee935ecc9b640c7212332fd14aed956c86ec61e7 (diff)
downloadcgeo-a55cdab51add43d4fafeb8ef47506ed4b35d8fba.zip
cgeo-a55cdab51add43d4fafeb8ef47506ed4b35d8fba.tar.gz
cgeo-a55cdab51add43d4fafeb8ef47506ed4b35d8fba.tar.bz2
Minor cleanups
Diffstat (limited to 'cgeo-contacts')
-rw-r--r--cgeo-contacts/src/cgeo/contacts/ContactsActivity.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
index c9f7656..098f5b9 100644
--- a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
+++ b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java
@@ -67,7 +67,7 @@ public final class ContactsActivity extends Activity {
selectContact(contacts);
}
else {
- int contactId = contacts.get(0).first.intValue();
+ int contactId = contacts.get(0).first;
openContactAndFinish(contactId);
}
}
@@ -83,7 +83,7 @@ public final class ContactsActivity extends Activity {
.setItems(items, new OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
- int contactId = contacts.get(which).first.intValue();
+ int contactId = contacts.get(which).first;
dialog.dismiss();
openContactAndFinish(contactId);
}
@@ -111,7 +111,7 @@ public final class ContactsActivity extends Activity {
while (cursor != null && cursor.moveToNext()) {
int foundId = cursor.getInt(0);
String foundName = cursor.getString(1);
- result.add(new Pair<Integer, String>(Integer.valueOf(foundId), foundName));
+ result.add(new Pair<Integer, String>(foundId, foundName));
}
} catch (Exception e) {
Log.e(LOG_TAG, "ContactsActivity.getContactId", e);