diff options
author | Bananeweizen <bananeweizen@gmx.de> | 2015-03-07 15:54:24 +0100 |
---|---|---|
committer | Bananeweizen <bananeweizen@gmx.de> | 2015-03-07 15:54:24 +0100 |
commit | 976c58200ef50432cd08eb45fb844983a1653d28 (patch) | |
tree | 2ea1ef93837d02500a6e80ac49a90cc8ff3f3bff /cgeo-contacts | |
parent | 0c32a331a34715bbd6c34b3bc1f04d9fb0799861 (diff) | |
download | cgeo-976c58200ef50432cd08eb45fb844983a1653d28.zip cgeo-976c58200ef50432cd08eb45fb844983a1653d28.tar.gz cgeo-976c58200ef50432cd08eb45fb844983a1653d28.tar.bz2 |
fix #4724: correctly finish contacts selection on cancel
Diffstat (limited to 'cgeo-contacts')
-rw-r--r-- | cgeo-contacts/src/cgeo/contacts/ContactsActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java index 60accca..74b2617 100644 --- a/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java +++ b/cgeo-contacts/src/cgeo/contacts/ContactsActivity.java @@ -7,6 +7,7 @@ import org.eclipse.jdt.annotation.NonNull; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; +import android.content.DialogInterface.OnCancelListener; import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.database.Cursor; @@ -89,6 +90,14 @@ public final class ContactsActivity extends Activity { openContactAndFinish(contactId); } }) + .setOnCancelListener(new OnCancelListener() { + + @Override + public void onCancel(final DialogInterface dialog) { + dialog.dismiss(); + finish(); + } + }) .create().show(); } |