Skip to content

Commit

Permalink
Version 1.1.0
Browse files Browse the repository at this point in the history
Ready for Version 1.1.0 of Auxio.
  • Loading branch information
OxygenCobalt committed Jan 2, 2021
1 parent 7fbf4d7 commit 0bcf228
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0.0"
versionName "1.1.0"

buildFeatures {
dataBinding true
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/org/oxycblt/auxio/coil/QualityCoverFetcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
)
Expand Down

0 comments on commit 0bcf228

Please sign in to comment.