diff --git a/app/src/main/java/com/michatec/radio/PlayerService.kt b/app/src/main/java/com/michatec/radio/PlayerService.kt index e7f2b88..060ed77 100644 --- a/app/src/main/java/com/michatec/radio/PlayerService.kt +++ b/app/src/main/java/com/michatec/radio/PlayerService.kt @@ -400,19 +400,19 @@ class PlayerService : MediaLibraryService() { customLayout: ImmutableList, showPauseButton: Boolean ): ImmutableList { - val seekToPreviousCommandButton = CommandButton.Builder() + val seekToPreviousCommandButton = CommandButton.Builder(CommandButton.ICON_UNDEFINED) .setPlayerCommand(Player.COMMAND_SEEK_TO_PREVIOUS) - .setIconResId(R.drawable.ic_notification_skip_to_previous_36dp) + .setCustomIconResId(R.drawable.ic_notification_skip_to_previous_36dp) .setEnabled(true) .build() - val playCommandButton = CommandButton.Builder() + val playCommandButton = CommandButton.Builder(CommandButton.ICON_UNDEFINED) .setPlayerCommand(Player.COMMAND_PLAY_PAUSE) - .setIconResId(if (player.isPlaying) R.drawable.ic_notification_stop_36dp else R.drawable.ic_notification_play_36dp) + .setCustomIconResId(if (player.isPlaying) R.drawable.ic_notification_stop_36dp else R.drawable.ic_notification_play_36dp) .setEnabled(true) .build() - val seekToNextCommandButton = CommandButton.Builder() + val seekToNextCommandButton = CommandButton.Builder(CommandButton.ICON_UNDEFINED) .setPlayerCommand(Player.COMMAND_SEEK_TO_NEXT) - .setIconResId(R.drawable.ic_notification_skip_to_next_36dp) + .setCustomIconResId(R.drawable.ic_notification_skip_to_next_36dp) .setEnabled(true) .build() val commandButtons: MutableList = mutableListOf( diff --git a/settings.gradle b/settings.gradle index bd5b3c3..0728c3f 100644 --- a/settings.gradle +++ b/settings.gradle @@ -5,6 +5,9 @@ pluginManagement { gradlePluginPortal() } } +plugins { + id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0' +} dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories {