Commit fb8b3940 authored by Roumen Petrov's avatar Roumen Petrov

restore close of activity if user closed all sessions

Close logic was broken in commit "add missing calls to super on activity result".
parent b59332c1
......@@ -605,12 +605,10 @@ private void doCloseWindow() {
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (resultCode != RESULT_OK) return;
//noinspection SwitchStatementWithTooFewBranches
switch (requestCode) {
if (data != null) {
if (resultCode == RESULT_OK && data != null) {
int position = data.getIntExtra(Application.ARGUMENT_WINDOW_ID, -2);
if (position >= 0) {
// Switch windows after session list is in sync, not here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment