Browse Source

fixed missing navigation labels after returning to TorrentsActivity

pull/539/head
Twig N 5 years ago
parent
commit
22ebcadaab
  1. 4
      app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java

4
app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java

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

Loading…
Cancel
Save