Skip to content
This repository was archived by the owner on Jul 17, 2025. It is now read-only.

Commit 28a7f52

Browse files
authored
Merge pull request #858 from Rupakpoddar/master
Fixed: "Unresolved reference: drawable" & "JVM-target compatibility"
2 parents 4c804d6 + 8cc0d0d commit 28a7f52

File tree

18 files changed

+17
-2289
lines changed

18 files changed

+17
-2289
lines changed

android/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ android {
4848
sourceCompatibility JavaVersion.VERSION_1_8
4949
targetCompatibility JavaVersion.VERSION_1_8
5050
}
51+
kotlinOptions {
52+
jvmTarget = '1.8'
53+
}
5154
}
5255

5356
dependencies {

android/src/main/kotlin/com/github/florent37/assets_audio_player/notification/NotificationService.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,27 +165,27 @@ class NotificationService : Service() {
165165
}
166166

167167
private fun getSmallIcon(context: Context): Int {
168-
return getCustomIconOrDefault(context, manifestIcon, null, R.drawable.exo_icon_circular_play)
168+
return android.R.drawable.ic_media_play
169169
}
170-
170+
171171
private fun getPlayIcon(context: Context, resourceName: String?): Int {
172-
return getCustomIconOrDefault(context, manifestIconPlay, resourceName, R.drawable.exo_icon_play)
172+
return android.R.drawable.ic_media_play
173173
}
174-
174+
175175
private fun getPauseIcon(context: Context, resourceName: String?): Int {
176-
return getCustomIconOrDefault(context, manifestIconPause, resourceName, R.drawable.exo_icon_pause)
176+
return android.R.drawable.ic_media_pause
177177
}
178-
178+
179179
private fun getNextIcon(context: Context, resourceName: String?): Int {
180-
return getCustomIconOrDefault(context, manifestIconNext, resourceName, R.drawable.exo_icon_next)
180+
return android.R.drawable.ic_media_next
181181
}
182-
182+
183183
private fun getPrevIcon(context: Context, resourceName: String?): Int {
184-
return getCustomIconOrDefault(context, manifestIconPrev, resourceName, R.drawable.exo_icon_previous)
184+
return android.R.drawable.ic_media_previous
185185
}
186-
186+
187187
private fun getStopIcon(context: Context, resourceName: String?): Int {
188-
return getCustomIconOrDefault(context, manifestIconStop, resourceName, R.drawable.exo_icon_stop)
188+
return android.R.drawable.ic_media_pause
189189
}
190190

191191
private fun getCustomIconOrDefault(context: Context, manifestName: String, resourceName: String?, defaultIcon: Int): Int {

assets_audio_player_web/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

assets_audio_player_web/.metadata

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)