Version 1.1.0
Ready for Version 1.1.0 of Auxio.
This commit is contained in:
parent
7fbf4d7fef
commit
0bcf228496
3 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
<h4 align="center">A sensible and customizable music player for android.</h4>
|
||||
<p align="center">
|
||||
<a href="https://github.com/oxygencobalt/Auxio/releases">
|
||||
<img alt="GitHub release" src="https://img.shields.io/static/v1?label=Tag&message=v1.0.0&color=0D5AF5">
|
||||
<img alt="GitHub release" src="https://img.shields.io/static/v1?label=Tag&message=v1.1.0&color=0D5AF5">
|
||||
</a>
|
||||
<a href="https://www.gnu.org/licenses/gpl-3.0">
|
||||
<img src="https://img.shields.io/badge/License-GPL%20v3-blue.svg">
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue