Fixed loading embedded picture
This commit is contained in:
parent
e360aa04ef
commit
b1ae1f8f2f
|
@ -162,6 +162,7 @@ dependencies {
|
|||
implementation "commons-io:commons-io:$commonsioVersion"
|
||||
implementation "org.jsoup:jsoup:$jsoupVersion"
|
||||
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
||||
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
|
||||
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||
implementation "com.squareup.okio:okio:$okioVersion"
|
||||
|
|
|
@ -60,6 +60,7 @@ dependencies {
|
|||
implementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
||||
implementation "org.jsoup:jsoup:$jsoupVersion"
|
||||
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
||||
annotationProcessor "com.github.bumptech.glide:compiler:$glideVersion"
|
||||
implementation "com.github.bumptech.glide:okhttp3-integration:$glideOkhttpIntegrationVersion@aar"
|
||||
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||
|
|
|
@ -30,6 +30,7 @@ class AudioCoverFetcher implements DataFetcher<InputStream> {
|
|||
byte[] picture = retriever.getEmbeddedPicture();
|
||||
if (picture != null) {
|
||||
callback.onDataReady(new ByteArrayInputStream(picture));
|
||||
return;
|
||||
}
|
||||
} finally {
|
||||
retriever.release();
|
||||
|
|
Loading…
Reference in New Issue