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 "commons-io:commons-io:$commonsioVersion"
|
||||||
implementation "org.jsoup:jsoup:$jsoupVersion"
|
implementation "org.jsoup:jsoup:$jsoupVersion"
|
||||||
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
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:$okhttpVersion"
|
||||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||||
implementation "com.squareup.okio:okio:$okioVersion"
|
implementation "com.squareup.okio:okio:$okioVersion"
|
||||||
|
@ -60,6 +60,7 @@ dependencies {
|
|||||||
implementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
implementation "com.jayway.android.robotium:robotium-solo:$robotiumSoloVersion"
|
||||||
implementation "org.jsoup:jsoup:$jsoupVersion"
|
implementation "org.jsoup:jsoup:$jsoupVersion"
|
||||||
implementation "com.github.bumptech.glide:glide:$glideVersion"
|
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.github.bumptech.glide:okhttp3-integration:$glideOkhttpIntegrationVersion@aar"
|
||||||
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
|
||||||
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
implementation "com.squareup.okhttp3:okhttp-urlconnection:$okhttpVersion"
|
||||||
|
@ -30,6 +30,7 @@ class AudioCoverFetcher implements DataFetcher<InputStream> {
|
|||||||
byte[] picture = retriever.getEmbeddedPicture();
|
byte[] picture = retriever.getEmbeddedPicture();
|
||||||
if (picture != null) {
|
if (picture != null) {
|
||||||
callback.onDataReady(new ByteArrayInputStream(picture));
|
callback.onDataReady(new ByteArrayInputStream(picture));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
retriever.release();
|
retriever.release();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user