Browse Source

Merge pull request #539 from twig/fix-missing-navigation-labels

fixed missing navigation labels after returning to TorrentsActivity
pull/540/head
Eric Kok 5 years ago committed by GitHub
parent
commit
37b9c3885c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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