diff --git a/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java b/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java index 35294e3..24c6457 100644 --- a/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java +++ b/app/src/main/java/net/nullsum/audinaut/activity/SubsonicFragmentActivity.java @@ -65,6 +65,7 @@ import java.util.List; public class SubsonicFragmentActivity extends SubsonicActivity implements DownloadService.OnSongChangedListener { private static boolean infoDialogDisplayed; private static boolean sessionInitialized = false; + private boolean resuming = false; private NowPlayingFragment nowPlayingFragment; private SubsonicFragment secondaryFragment; private Toolbar mainToolbar; @@ -276,6 +277,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo @Override public void onResume() { + resuming = true; super.onResume(); if (getIntent().hasExtra(Constants.INTENT_EXTRA_VIEW_ALBUM)) { @@ -299,6 +301,7 @@ public class SubsonicFragmentActivity extends SubsonicActivity implements Downlo UserUtil.seedCurrentUser(this); createAccount(); runWhenServiceAvailable(() -> getDownloadService().addOnSongChangedListener(SubsonicFragmentActivity.this)); + resuming = false; } @Override