summaryrefslogtreecommitdiff
path: root/ui/common
diff options
context:
space:
mode:
authorByteHamster <info@bytehamster.com>2022-03-05 10:43:31 +0100
committerByteHamster <info@bytehamster.com>2022-03-05 10:43:31 +0100
commit32770fe8175c698586962558eb3cd4eb5cab09c7 (patch)
tree7fd39ce5680f4527146976c1e621302e30ec3ec7 /ui/common
parent42e36328e3bb6d4bda632da7586fdace912a34e0 (diff)
downloadAntennaPod-32770fe8175c698586962558eb3cd4eb5cab09c7.zip
Refresh timeline when resetting statistics
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/src/main/java/de/danoeh/antennapod/ui/common/PagedToolbarFragment.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/common/src/main/java/de/danoeh/antennapod/ui/common/PagedToolbarFragment.java b/ui/common/src/main/java/de/danoeh/antennapod/ui/common/PagedToolbarFragment.java
index 118d2ffb2..cbdd789db 100644
--- a/ui/common/src/main/java/de/danoeh/antennapod/ui/common/PagedToolbarFragment.java
+++ b/ui/common/src/main/java/de/danoeh/antennapod/ui/common/PagedToolbarFragment.java
@@ -29,6 +29,9 @@ public abstract class PagedToolbarFragment extends Fragment {
this.viewPager = viewPager;
toolbar.setOnMenuItemClickListener(item -> {
+ if (this.onOptionsItemSelected(item)) {
+ return true;
+ }
Fragment child = getChildFragmentManager().findFragmentByTag("f" + viewPager.getCurrentItem());
if (child != null) {
return child.onOptionsItemSelected(item);