Merge pull request #5942 from TacoTheDank/newPlaylistIcons
Use new material playlist drawables
This commit is contained in:
commit
abf94c4d27
|
@ -114,7 +114,7 @@ public class NavListAdapter extends RecyclerView.Adapter<NavListAdapter.Holder>
|
||||||
private @DrawableRes int getDrawable(String tag) {
|
private @DrawableRes int getDrawable(String tag) {
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case QueueFragment.TAG:
|
case QueueFragment.TAG:
|
||||||
return R.drawable.ic_playlist;
|
return R.drawable.ic_playlist_play;
|
||||||
case InboxFragment.TAG:
|
case InboxFragment.TAG:
|
||||||
return R.drawable.ic_inbox;
|
return R.drawable.ic_inbox;
|
||||||
case EpisodesFragment.TAG:
|
case EpisodesFragment.TAG:
|
||||||
|
|
|
@ -481,7 +481,7 @@ public class QueueFragment extends Fragment implements Toolbar.OnMenuItemClickLi
|
||||||
|
|
||||||
emptyView = new EmptyViewHandler(getContext());
|
emptyView = new EmptyViewHandler(getContext());
|
||||||
emptyView.attachToRecyclerView(recyclerView);
|
emptyView.attachToRecyclerView(recyclerView);
|
||||||
emptyView.setIcon(R.drawable.ic_playlist);
|
emptyView.setIcon(R.drawable.ic_playlist_play);
|
||||||
emptyView.setTitle(R.string.no_items_header_label);
|
emptyView.setTitle(R.string.no_items_header_label);
|
||||||
emptyView.setMessage(R.string.no_items_label);
|
emptyView.setMessage(R.string.no_items_label);
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class AddToQueueSwipeAction implements SwipeAction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getActionIcon() {
|
public int getActionIcon() {
|
||||||
return R.drawable.ic_playlist;
|
return R.drawable.ic_playlist_play;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
android:layout_width="14sp"
|
android:layout_width="14sp"
|
||||||
android:layout_height="14sp"
|
android:layout_height="14sp"
|
||||||
android:contentDescription="@string/in_queue_label"
|
android:contentDescription="@string/in_queue_label"
|
||||||
app:srcCompat="@drawable/ic_playlist" />
|
app:srcCompat="@drawable/ic_playlist_play" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/separatorIcons"
|
android:id="@+id/separatorIcons"
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
/>
|
/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/add_to_queue_batch"
|
android:id="@+id/add_to_queue_batch"
|
||||||
android:icon="@drawable/ic_playlist"
|
android:icon="@drawable/ic_playlist_play"
|
||||||
android:title="@string/add_to_queue_label"
|
android:title="@string/add_to_queue_label"
|
||||||
/>
|
/>
|
||||||
</menu>
|
</menu>
|
||||||
|
|
|
@ -435,7 +435,7 @@ public class PlaybackService extends MediaBrowserServiceCompat {
|
||||||
throws InterruptedException {
|
throws InterruptedException {
|
||||||
List<MediaBrowserCompat.MediaItem> mediaItems = new ArrayList<>();
|
List<MediaBrowserCompat.MediaItem> mediaItems = new ArrayList<>();
|
||||||
if (parentId.equals(getResources().getString(R.string.app_name))) {
|
if (parentId.equals(getResources().getString(R.string.app_name))) {
|
||||||
mediaItems.add(createBrowsableMediaItem(R.string.queue_label, R.drawable.ic_playlist_black,
|
mediaItems.add(createBrowsableMediaItem(R.string.queue_label, R.drawable.ic_playlist_play_black,
|
||||||
DBReader.getQueue().size()));
|
DBReader.getQueue().size()));
|
||||||
mediaItems.add(createBrowsableMediaItem(R.string.downloads_label, R.drawable.ic_download_black,
|
mediaItems.add(createBrowsableMediaItem(R.string.downloads_label, R.drawable.ic_download_black,
|
||||||
DBReader.getDownloadedItems().size()));
|
DBReader.getDownloadedItems().size()));
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<background android:drawable="@color/grey100" />
|
<background android:drawable="@color/grey100" />
|
||||||
<foreground>
|
<foreground>
|
||||||
<inset
|
<inset
|
||||||
android:drawable="@drawable/ic_playlist_black"
|
android:drawable="@drawable/ic_playlist_play_black"
|
||||||
android:inset="33.3%" />
|
android:inset="33.3%" />
|
||||||
</foreground>
|
</foreground>
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
|
@ -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="M19,9L2,9v2h17L19,9zM19,5L2,5v2h17L19,5zM2,15h13v-2L2,13v2zM17,13v6l5,-3 -5,-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="#000000" android:pathData="M19,9L2,9v2h17L19,9zM19,5L2,5v2h17L19,5zM2,15h13v-2L2,13v2zM17,13v6l5,-3 -5,-3z"/>
|
|
||||||
</vector>
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="?attr/action_icon_color"
|
||||||
|
android:pathData="M3,10h11v2h-11z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="?attr/action_icon_color"
|
||||||
|
android:pathData="M3,6h11v2h-11z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="?attr/action_icon_color"
|
||||||
|
android:pathData="M3,14h7v2h-7z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="?attr/action_icon_color"
|
||||||
|
android:pathData="M16,13l0,8l6,-4z" />
|
||||||
|
</vector>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M3,10h11v2h-11z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M3,6h11v2h-11z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M3,14h7v2h-7z" />
|
||||||
|
<path
|
||||||
|
android:fillColor="#000000"
|
||||||
|
android:pathData="M16,13l0,8l6,-4z" />
|
||||||
|
</vector>
|
|
@ -1,8 +1,9 @@
|
||||||
<!-- drawable/playlist_remove.xml -->
|
|
||||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:height="24dp"
|
|
||||||
android:width="24dp"
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
android:viewportWidth="24"
|
android:viewportWidth="24"
|
||||||
android:viewportHeight="24">
|
android:viewportHeight="24">
|
||||||
<path android:fillColor="?attr/action_icon_color" android:pathData="M2,6V8H14V6H2M2,10V12H11V10H2M14.17,10.76L12.76,12.17L15.59,15L12.76,17.83L14.17,19.24L17,16.41L19.83,19.24L21.24,17.83L18.41,15L21.24,12.17L19.83,10.76L17,13.59L14.17,10.76M2,14V16H11V14H2Z" />
|
<path
|
||||||
</vector>
|
android:fillColor="?attr/action_icon_color"
|
||||||
|
android:pathData="M14,10H3v2h11V10zM14,6H3v2h11V6zM3,16h7v-2H3V16zM14.41,22L17,19.41L19.59,22L21,20.59L18.41,18L21,15.41L19.59,14L17,16.59L14.41,14L13,15.41L15.59,18L13,20.59L14.41,22z" />
|
||||||
|
</vector>
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<item android:drawable="@drawable/ic_shortcut_background" />
|
<item android:drawable="@drawable/ic_shortcut_background" />
|
||||||
<item
|
<item
|
||||||
android:drawable="@drawable/ic_playlist_black"
|
android:drawable="@drawable/ic_playlist_play_black"
|
||||||
android:gravity="center" />
|
android:gravity="center" />
|
||||||
</layer-list>
|
</layer-list>
|
||||||
|
|
Loading…
Reference in New Issue