capacitor-plugin-playlist 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/.gradle/8.14.3/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/8.14.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.14.3/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/8.14.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.14.3/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioApi.kt +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/service/MediaImageProvider.kt +6 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -50,7 +50,7 @@ class AudioApi(context: Context) : BaseMediaApi() {
|
|
|
50
50
|
|
|
51
51
|
audioPlayer.setWakeLevel(PowerManager.PARTIAL_WAKE_LOCK)
|
|
52
52
|
audioPlayer.setAudioAttributes(getAudioAttributes(C.USAGE_MEDIA, C.AUDIO_CONTENT_TYPE_MUSIC))
|
|
53
|
-
audioPlayer.setAnalyticsListener(EventLogger(
|
|
53
|
+
audioPlayer.setAnalyticsListener(EventLogger())
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
override fun play() {
|
|
@@ -5,7 +5,7 @@ import android.graphics.Bitmap
|
|
|
5
5
|
import android.graphics.BitmapFactory
|
|
6
6
|
import com.bumptech.glide.Glide
|
|
7
7
|
import com.bumptech.glide.RequestManager
|
|
8
|
-
import com.bumptech.glide.request.target.
|
|
8
|
+
import com.bumptech.glide.request.target.CustomTarget
|
|
9
9
|
import com.bumptech.glide.request.transition.Transition
|
|
10
10
|
import com.devbrackets.android.playlistcore.components.image.ImageProvider
|
|
11
11
|
import org.dwbn.plugins.playlist.FakeR
|
|
@@ -63,10 +63,14 @@ class MediaImageProvider(
|
|
|
63
63
|
*
|
|
64
64
|
* **NOTE:** This is a Glide Image loader class
|
|
65
65
|
*/
|
|
66
|
-
private inner class RemoteViewImageTarget :
|
|
66
|
+
private inner class RemoteViewImageTarget : CustomTarget<Bitmap>() {
|
|
67
67
|
override fun onResourceReady(resource: Bitmap, transition: Transition<in Bitmap>?) {
|
|
68
68
|
artworkImage = resource
|
|
69
69
|
}
|
|
70
|
+
|
|
71
|
+
override fun onLoadCleared(placeholder: android.graphics.drawable.Drawable?) {
|
|
72
|
+
// No cleanup needed
|
|
73
|
+
}
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
init {
|