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

Commit

Permalink
Add Fast Forward and Rewind actions in compact view (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
sysless authored Feb 16, 2020
1 parent 934affe commit 8f74739
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<actions.length; i++) {
actions[i] = i;
Expand Down

0 comments on commit 8f74739

Please sign in to comment.