summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/api/ConfirmDialog.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/api/ConfirmDialog.java b/src/de/blinkt/openvpn/api/ConfirmDialog.java
index dfd01884..55c6e906 100644
--- a/src/de/blinkt/openvpn/api/ConfirmDialog.java
+++ b/src/de/blinkt/openvpn/api/ConfirmDialog.java
@@ -98,6 +98,8 @@ CompoundButton.OnCheckedChangeListener, DialogInterface.OnClickListener {
@Override
public void onBackPressed() {
+ setResult(RESULT_CANCELED);
+ finish();
}
@Override
@@ -116,6 +118,7 @@ CompoundButton.OnCheckedChangeListener, DialogInterface.OnClickListener {
}
if (which == DialogInterface.BUTTON_NEGATIVE) {
+ setResult(RESULT_CANCELED);
finish();
}
}