Permalink
Browse files

Fixed formatting

  • Loading branch information...
1 parent 1c728d1 commit 867409b9f1b4def8d3f3c4c0b99e93e465ca9c66 @grandecomplex grandecomplex committed Jan 7, 2011
Showing with 13 additions and 13 deletions.
  1. +13 −13 Android/ContactView/ContactView.java
@@ -29,20 +29,20 @@ public void startContactActivity() {
this.ctx.startActivityForResult((Plugin) this, intent, PICK_CONTACT);
}
-@Override
-public void onActivityResult(int reqCode, int resultCode, Intent data) {
- String name = null;
- switch (reqCode) {
- case (PICK_CONTACT):
- if (resultCode == Activity.RESULT_OK) {
- Uri contactData = data.getData();
- Cursor c = this.ctx.managedQuery(contactData, null, null, null, null);
- if (c.moveToFirst()) {
- name = c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));
- this.success(new PluginResult(PluginResult.Status.OK, name),this.callback);
+ @Override
+ public void onActivityResult(int reqCode, int resultCode, Intent data) {
+ String name = null;
+ switch (reqCode) {
+ case (PICK_CONTACT):
+ if (resultCode == Activity.RESULT_OK) {
+ Uri contactData = data.getData();
+ Cursor c = this.ctx.managedQuery(contactData, null, null, null, null);
+ if (c.moveToFirst()) {
+ name = c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));
+ this.success(new PluginResult(PluginResult.Status.OK, name),this.callback);
+ }
}
+ break;
}
- break;
}
}
-}

0 comments on commit 867409b

Please sign in to comment.