diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-05-03 10:24:17 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-05-03 10:24:17 +0200 |
commit | 820a0d01810dd0bfe6d75c873ced88f2cd0b9509 (patch) | |
tree | e844fe0a10e1fcf215429f50cd23e2104153b2f1 /src/de | |
parent | 240d3a0cbdc46e4ed08d1015a2d4f1ca52bbdd55 (diff) |
Cancel dialog when pressing back (closes issue #167)
Diffstat (limited to 'src/de')
-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(); } } |