From 22ebcadaab2eade2b120cf7058cea75357076cf0 Mon Sep 17 00:00:00 2001 From: Twig N Date: Wed, 1 Apr 2020 20:10:43 +1100 Subject: [PATCH] fixed missing navigation labels after returning to TorrentsActivity --- .../main/java/org/transdroid/core/gui/TorrentsActivity.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java b/app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java index 05696451..a8f7e6e5 100644 --- a/app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java +++ b/app/src/main/java/org/transdroid/core/gui/TorrentsActivity.java @@ -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);