mirror of
https://github.com/moparisthebest/SSLDroid
synced 2025-01-05 10:28:00 -05:00
Moved saving the TunnelDetails state from the onPause() hook to the
explicit button press event for the Apply button to avoid the changes to be saved if the user hits the back button. Signed-off-by: Balint Kovacs <blint@blint.hu>
This commit is contained in:
parent
a4489bcd97
commit
f83d37f2ca
@ -85,6 +85,7 @@ public class SSLDroidTunnelDetails extends Activity {
|
||||
Toast.makeText(getBaseContext(), "Required PKCS12 file parameter not setup, skipping save", 5).show();
|
||||
return;
|
||||
}
|
||||
saveState();
|
||||
setResult(RESULT_OK);
|
||||
finish();
|
||||
}
|
||||
@ -164,7 +165,7 @@ public class SSLDroidTunnelDetails extends Activity {
|
||||
@Override
|
||||
protected void onPause() {
|
||||
super.onPause();
|
||||
saveState();
|
||||
//saveState();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user