Skip to content

Commit 00db929

Browse files
committed
Did eclipse auto formatting
1 parent cc23f45 commit 00db929

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

Android/ContactView/ContactView.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,14 @@ public void onActivityResult(int reqCode, int resultCode, Intent data) {
4040
case (PICK_CONTACT):
4141
if (resultCode == Activity.RESULT_OK) {
4242
Uri contactData = data.getData();
43-
Cursor c = this.ctx.managedQuery(contactData, null, null, null,
44-
null);
43+
Cursor c = this.ctx.managedQuery(contactData, null, null, null, null);
4544
if (c.moveToFirst()) {
4645
String ContactID = c.getString(c
4746
.getColumnIndex(ContactsContract.Contacts._ID));
48-
String hasPhone = c
49-
.getString(c
50-
.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
47+
String hasPhone = c.getString(c.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
5148

5249
if (Integer.parseInt(hasPhone) == 1) {
53-
Cursor phoneCursor = this.ctx
54-
.managedQuery(
50+
Cursor phoneCursor = this.ctx.managedQuery(
5551
ContactsContract.CommonDataKinds.Phone.CONTENT_URI,
5652
null,
5753
ContactsContract.CommonDataKinds.Phone.CONTACT_ID
@@ -64,8 +60,7 @@ public void onActivityResult(int reqCode, int resultCode, Intent data) {
6460
}
6561
}
6662

67-
name = c.getString(c
68-
.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));
63+
name = c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));
6964
JSONObject contactObject = new JSONObject();
7065
try {
7166
contactObject.put("name", name);

0 commit comments

Comments
 (0)