diff options
Diffstat (limited to 'src/de/blinkt/openvpn/api/ConfirmDialog.java')
-rw-r--r-- | src/de/blinkt/openvpn/api/ConfirmDialog.java | 3 |
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(); } } |