mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-07 05:54:18 +01:00
Added a Statistics Button on the Subscriptions toolbar (#5706)
This commit is contained in:
parent
22dd002652
commit
371faf7dfb
@ -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;
|
||||
}
|
||||
|
@ -6,6 +6,11 @@
|
||||
android:icon="@drawable/ic_search"
|
||||
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"
|
||||
|
@ -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"
|
||||
|
7
core/src/main/res/drawable-xxxhdpi/chart_box_outline.xml
Normal file
7
core/src/main/res/drawable-xxxhdpi/chart_box_outline.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:height="24dp"
|
||||
android:width="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="?attr/action_icon_color" android:pathData="M9 17H7V10H9V17M13 17H11V7H13V17M17 17H15V13H17V17M19 19H5V5H19V19.1M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3Z" />
|
||||
</vector>
|
@ -1,5 +0,0 @@
|
||||
<vector android:height="24dp"
|
||||
android:viewportHeight="24.0" android:viewportWidth="24.0"
|
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="?attr/action_icon_color" android:pathData="M13,2.05V5.08C16.39,5.57 19,8.47 19,12C19,12.9 18.82,13.75 18.5,14.54L21.12,16.07C21.68,14.83 22,13.45 22,12C22,6.82 18.05,2.55 13,2.05M12,19A7,7 0 0,1 5,12C5,8.47 7.61,5.57 11,5.08V2.05C5.94,2.55 2,6.81 2,12A10,10 0 0,0 12,22C15.3,22 18.23,20.39 20.05,17.91L17.45,16.38C16.17,18 14.21,19 12,19Z"/>
|
||||
</vector>
|
Loading…
x
Reference in New Issue
Block a user