Version 1.1.0
Ready for Version 1.1.0 of Auxio.
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ android {
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 30
|
||||
versionCode 1
|
||||
versionName "1.0.0"
|
||||
versionName "1.1.0"
|
||||
|
||||
buildFeatures {
|
||||
dataBinding true
|
||||
|
||||
@@ -33,9 +33,9 @@ class QualityCoverFetcher(private val context: Context) : Fetcher<Song> {
|
||||
val stream: InputStream?
|
||||
val uri: Uri
|
||||
|
||||
extractor.use { extractor ->
|
||||
extractor.setDataSource(context, data.id.toURI())
|
||||
val cover = extractor.embeddedPicture
|
||||
extractor.use { ext ->
|
||||
ext.setDataSource(context, data.id.toURI())
|
||||
val cover = ext.embeddedPicture
|
||||
|
||||
stream = if (cover != null) {
|
||||
uri = data.id.toURI()
|
||||
@@ -60,9 +60,9 @@ class QualityCoverFetcher(private val context: Context) : Fetcher<Song> {
|
||||
|
||||
// If we are here, the extractor likely failed so instead attempt to return the compressed
|
||||
// cover instead.
|
||||
context.contentResolver.openInputStream(data.album.coverUri)?.use { stream ->
|
||||
context.contentResolver.openInputStream(data.album.coverUri)?.use { str ->
|
||||
return SourceResult(
|
||||
source = stream.source().buffer(),
|
||||
source = str.source().buffer(),
|
||||
mimeType = context.contentResolver.getType(uri),
|
||||
dataSource = DataSource.DISK
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user