|
|
@ -339,9 +339,13 @@ public class TorrentsActivity extends AppCompatActivity implements TorrentTasksE |
|
|
|
protected void onResume() { |
|
|
|
protected void onResume() { |
|
|
|
super.onResume(); |
|
|
|
super.onResume(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// update navigation labels
|
|
|
|
|
|
|
|
navigationListAdapter.updateLabels(lastNavigationLabels); |
|
|
|
|
|
|
|
|
|
|
|
// Refresh server settings
|
|
|
|
// Refresh server settings
|
|
|
|
navigationListAdapter.updateServers(applicationSettings.getAllServerSettings()); |
|
|
|
navigationListAdapter.updateServers(applicationSettings.getAllServerSettings()); |
|
|
|
ServerSetting lastUsed = applicationSettings.getLastUsedServer(); |
|
|
|
ServerSetting lastUsed = applicationSettings.getLastUsedServer(); |
|
|
|
|
|
|
|
|
|
|
|
if (lastUsed == null) { |
|
|
|
if (lastUsed == null) { |
|
|
|
// Still no settings
|
|
|
|
// Still no settings
|
|
|
|
updateFragmentVisibility(false); |
|
|
|
updateFragmentVisibility(false); |
|
|
|