diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-06-09 19:07:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 19:07:05 +0200 |
commit | 46a409ad34025460db4ea813ff31ceeaeabae45d (patch) | |
tree | 2dc64d6c237a28ba7595e88dbdffee32e836b351 | |
parent | 2d2ec14e5d9417df1953dc2b3bfe17b247b2baac (diff) | |
download | AntennaPod-46a409ad34025460db4ea813ff31ceeaeabae45d.zip |
Update info bar when changing playback speed (#7228)
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/ui/screen/queue/QueueFragment.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/queue/QueueFragment.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/queue/QueueFragment.java index bc70a06bb..2d5f8f629 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/queue/QueueFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/queue/QueueFragment.java @@ -27,6 +27,7 @@ import com.google.android.material.appbar.MaterialToolbar; import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.snackbar.Snackbar; +import de.danoeh.antennapod.event.playback.SpeedChangedEvent; import de.danoeh.antennapod.ui.screen.SearchFragment; import de.danoeh.antennapod.net.download.serviceinterface.FeedUpdateManager; import de.danoeh.antennapod.ui.episodes.PlaybackSpeedUtils; @@ -268,6 +269,11 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte swipeRefreshLayout.setRefreshing(event.isFeedUpdateRunning); } + @Subscribe(threadMode = ThreadMode.MAIN) + public void updateSpeed(SpeedChangedEvent event) { + refreshInfoBar(); + } + @Override public boolean onMenuItemClick(MenuItem item) { final int itemId = item.getItemId(); @@ -482,10 +488,8 @@ public class QueueFragment extends Fragment implements MaterialToolbar.OnMenuIte if (recyclerAdapter.inActionMode()) { infoBar.setVisibility(View.INVISIBLE); - } else if (UserPreferences.getSubscriptionsFilter().isEnabled()) { - infoBar.setVisibility(View.VISIBLE); } else { - infoBar.setVisibility(View.GONE); + infoBar.setVisibility(View.VISIBLE); } } |