Skip to content

Commit ec60421

Browse files
committed
Fix albumart not loading in HD
1 parent 98a4586 commit ec60421

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/org/akanework/gramophone/logic/utils/AfFormatTracker.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ class AfFormatTracker(
133133
eventTime: AnalyticsListener.EventTime,
134134
audioTrackConfig: AudioTrackConfig
135135
) {
136+
if (!playbackHandler.looper.thread.isAlive) return
136137
playbackHandler.post {
137138
if (lastAudioTrack?.state == AudioTrack.STATE_UNINITIALIZED) {
138139
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {

app/src/main/java/org/akanework/gramophone/logic/utils/CoilArtPipeline.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ object CoilArtPipeline {
123123
imageLoader: ImageLoader): FetchResult {
124124
val fetchResult: FetchResult
125125
var searchIndex = 0
126+
val data = imageLoader.components.map(data, options)
126127
while (true) {
127128
val pair = imageLoader.components.newFetcher(data, options, imageLoader,
128129
searchIndex)

0 commit comments

Comments
 (0)