Browse Source

Make sure any changes in server settings are reloaded when moving back to the main activity.

pull/82/head
Eric Kok 11 years ago
parent
commit
b5d1ec29ad
  1. 6
      core/src/org/transdroid/core/gui/TorrentsActivity.java

6
core/src/org/transdroid/core/gui/TorrentsActivity.java

@ -274,14 +274,14 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi @@ -274,14 +274,14 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
if (lastUsed == null) {
// Still no settings
updateFragmentVisibility(false);
// There is a server know (now): forcefully select it to establish a connection
filterSelected(lastUsed, true);
return;
}
// If we had no connection before, establish it now
// If we had no connection before, establish it now; otherwise jsut reload the settings
if (currentConnection == null)
filterSelected(lastUsed, true);
else
currentConnection = lastUsed.createServerAdapter(connectivityHelper.getConnectedNetworkName());
}
@Override

Loading…
Cancel
Save