From 8f747392365d609ada85041abea7549e3e13111f Mon Sep 17 00:00:00 2001 From: Arthur Lorotte de Banes Date: Sun, 16 Feb 2020 16:25:58 +0100 Subject: [PATCH] Add Fast Forward and Rewind actions in compact view (#318) --- .../java/com/tanguyantoine/react/MusicControlModule.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java index 7f7c0233..b613c561 100644 --- a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java +++ b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java @@ -131,6 +131,12 @@ private void updateNotificationMediaStyle() { if(hasControl(PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS)) { controlCount += 1; } + if(hasControl(PlaybackStateCompat.ACTION_FAST_FORWARD)) { + controlCount += 1; + } + if(hasControl(PlaybackStateCompat.ACTION_REWIND)) { + controlCount += 1; + } int[] actions = new int[controlCount]; for(int i=0; i