diff options
author | IordanisKokk <72551397+IordanisKokk@users.noreply.github.com> | 2022-02-19 20:32:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-19 19:32:44 +0100 |
commit | 371faf7dfb55d7b233523184dc69e88789ecdc5b (patch) | |
tree | 354eeaf9e98540bc12ba78145c4bf4ecfd7902fc /app/src | |
parent | 22dd0026529b27369093532f55ffe65588c35824 (diff) | |
download | AntennaPod-371faf7dfb55d7b233523184dc69e88789ecdc5b.zip |
Added a Statistics Button on the Subscriptions toolbar (#5706)
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java | 4 | ||||
-rw-r--r-- | app/src/main/res/menu/subscriptions.xml | 5 | ||||
-rw-r--r-- | app/src/main/res/xml/preferences.xml | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java index a29fd0425..42b6580a2 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/SubscriptionFragment.java @@ -57,6 +57,7 @@ import de.danoeh.antennapod.dialog.RemoveFeedDialog; import de.danoeh.antennapod.dialog.RenameItemDialog; import de.danoeh.antennapod.dialog.SubscriptionsFilterDialog; import de.danoeh.antennapod.fragment.actions.FeedMultiSelectActionHandler; +import de.danoeh.antennapod.fragment.preferences.StatisticsFragment; import de.danoeh.antennapod.model.feed.Feed; import de.danoeh.antennapod.view.EmptyViewHandler; import io.reactivex.Observable; @@ -229,6 +230,9 @@ public class SubscriptionFragment extends Fragment } else if (itemId == R.id.action_search) { ((MainActivity) getActivity()).loadChildFragment(SearchFragment.newInstance()); return true; + } else if (itemId == R.id.action_statistics) { + ((MainActivity) getActivity()).loadChildFragment(new StatisticsFragment()); + return true; } return false; } diff --git a/app/src/main/res/menu/subscriptions.xml b/app/src/main/res/menu/subscriptions.xml index 9276db562..fa63bf583 100644 --- a/app/src/main/res/menu/subscriptions.xml +++ b/app/src/main/res/menu/subscriptions.xml @@ -7,6 +7,11 @@ custom:showAsAction="always" android:title="@string/search_label"/> <item + android:id="@+id/action_statistics" + android:icon="@drawable/chart_box_outline" + android:title="@string/statistics_label" + custom:showAsAction="always" /> + <item android:id="@+id/refresh_item" android:title="@string/refresh_label" android:menuCategory="container" diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 7c5012899..91ba649d2 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -45,9 +45,9 @@ android:icon="@drawable/ic_notifications"/> <Preference + android:icon="@drawable/chart_box_outline" android:key="statistics" - android:title="@string/statistics_label" - android:icon="@drawable/ic_statistics" /> + android:title="@string/statistics_label" /> <PreferenceCategory android:key="project" |