From cf17c0dfee33b95fb394e408ee5a64db31785fca Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 16 Jan 2023 14:30:48 +0100 Subject: [PATCH] Use MD icons for the notification seek controls --- .../github/libretube/util/NowPlayingNotification.kt | 8 ++++---- app/src/main/res/drawable/ic_forward_md.xml | 10 ++++++++++ app/src/main/res/drawable/ic_rewind_md.xml | 10 ++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 app/src/main/res/drawable/ic_forward_md.xml create mode 100644 app/src/main/res/drawable/ic_rewind_md.xml diff --git a/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt b/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt index 4012a3e9e..e53f8d0fb 100644 --- a/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt +++ b/app/src/main/java/com/github/libretube/util/NowPlayingNotification.kt @@ -135,8 +135,8 @@ class NowPlayingNotification( return mutableMapOf( PREV to createNotificationAction(R.drawable.ic_prev_outlined, PREV, instanceId), NEXT to createNotificationAction(R.drawable.ic_next_outlined, NEXT, instanceId), - REWIND to createNotificationAction(R.drawable.ic_rewind, REWIND, instanceId), - FORWARD to createNotificationAction(R.drawable.ic_forward, FORWARD, instanceId) + REWIND to createNotificationAction(R.drawable.ic_rewind_md, REWIND, instanceId), + FORWARD to createNotificationAction(R.drawable.ic_forward_md, FORWARD, instanceId) ) } @@ -212,8 +212,8 @@ class NowPlayingNotification( setCustomActionProviders( createMediaSessionAction(R.drawable.ic_prev_outlined, PREV), createMediaSessionAction(R.drawable.ic_next_outlined, NEXT), - createMediaSessionAction(R.drawable.ic_rewind, REWIND), - createMediaSessionAction(R.drawable.ic_forward, FORWARD) + createMediaSessionAction(R.drawable.ic_rewind_md, REWIND), + createMediaSessionAction(R.drawable.ic_forward_md, FORWARD) ) } } diff --git a/app/src/main/res/drawable/ic_forward_md.xml b/app/src/main/res/drawable/ic_forward_md.xml new file mode 100644 index 000000000..bf1528a53 --- /dev/null +++ b/app/src/main/res/drawable/ic_forward_md.xml @@ -0,0 +1,10 @@ + + + diff --git a/app/src/main/res/drawable/ic_rewind_md.xml b/app/src/main/res/drawable/ic_rewind_md.xml new file mode 100644 index 000000000..1e3b79b2c --- /dev/null +++ b/app/src/main/res/drawable/ic_rewind_md.xml @@ -0,0 +1,10 @@ + + +