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
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);

Loading…
Cancel
Save