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
if (lastUsed == null) { if (lastUsed == null) {
// Still no settings // Still no settings
updateFragmentVisibility(false); updateFragmentVisibility(false);
// There is a server know (now): forcefully select it to establish a connection
filterSelected(lastUsed, true);
return; 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) if (currentConnection == null)
filterSelected(lastUsed, true); filterSelected(lastUsed, true);
else
currentConnection = lastUsed.createServerAdapter(connectivityHelper.getConnectedNetworkName());
} }
@Override @Override

Loading…
Cancel
Save