aboutsummaryrefslogtreecommitdiffstats
path: root/cgeo-contacts
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2015-03-07 15:54:24 +0100
committerBananeweizen <bananeweizen@gmx.de>2015-03-07 15:54:24 +0100
commit976c58200ef50432cd08eb45fb844983a1653d28 (patch)
tree2ea1ef93837d02500a6e80ac49a90cc8ff3f3bff /cgeo-contacts
parent0c32a331a34715bbd6c34b3bc1f04d9fb0799861 (diff)
downloadcgeo-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.java9
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();
}