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>
|
<h4 align="center">A sensible and customizable music player for android.</h4>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/oxygencobalt/Auxio/releases">
|
<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>
|
||||||
<a href="https://www.gnu.org/licenses/gpl-3.0">
|
<a href="https://www.gnu.org/licenses/gpl-3.0">
|
||||||
<img src="https://img.shields.io/badge/License-GPL%20v3-blue.svg">
|
<img src="https://img.shields.io/badge/License-GPL%20v3-blue.svg">
|
||||||
|
|
|
@ -12,7 +12,7 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0.0"
|
versionName "1.1.0"
|
||||||
|
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
dataBinding true
|
dataBinding true
|
||||||
|
|
|
@ -33,9 +33,9 @@ class QualityCoverFetcher(private val context: Context) : Fetcher<Song> {
|
||||||
val stream: InputStream?
|
val stream: InputStream?
|
||||||
val uri: Uri
|
val uri: Uri
|
||||||
|
|
||||||
extractor.use { extractor ->
|
extractor.use { ext ->
|
||||||
extractor.setDataSource(context, data.id.toURI())
|
ext.setDataSource(context, data.id.toURI())
|
||||||
val cover = extractor.embeddedPicture
|
val cover = ext.embeddedPicture
|
||||||
|
|
||||||
stream = if (cover != null) {
|
stream = if (cover != null) {
|
||||||
uri = data.id.toURI()
|
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
|
// If we are here, the extractor likely failed so instead attempt to return the compressed
|
||||||
// cover instead.
|
// cover instead.
|
||||||
context.contentResolver.openInputStream(data.album.coverUri)?.use { stream ->
|
context.contentResolver.openInputStream(data.album.coverUri)?.use { str ->
|
||||||
return SourceResult(
|
return SourceResult(
|
||||||
source = stream.source().buffer(),
|
source = str.source().buffer(),
|
||||||
mimeType = context.contentResolver.getType(uri),
|
mimeType = context.contentResolver.getType(uri),
|
||||||
dataSource = DataSource.DISK
|
dataSource = DataSource.DISK
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue