Skip to content
This repository was archived by the owner on Oct 6, 2022. It is now read-only.

Commit 8f74739

Browse files
authored
Add Fast Forward and Rewind actions in compact view (#318)
1 parent 934affe commit 8f74739

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/main/java/com/tanguyantoine/react/MusicControlModule.java

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ private void updateNotificationMediaStyle() {
131131
if(hasControl(PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS)) {
132132
controlCount += 1;
133133
}
134+
if(hasControl(PlaybackStateCompat.ACTION_FAST_FORWARD)) {
135+
controlCount += 1;
136+
}
137+
if(hasControl(PlaybackStateCompat.ACTION_REWIND)) {
138+
controlCount += 1;
139+
}
134140
int[] actions = new int[controlCount];
135141
for(int i=0; i<actions.length; i++) {
136142
actions[i] = i;

0 commit comments

Comments
 (0)