all: reformat
This commit is contained in:
parent
f783a9c32f
commit
4d27c444de
4 changed files with 6 additions and 7 deletions
|
@ -378,7 +378,9 @@ constructor(context: Context, attrs: AttributeSet? = null, @AttrRes defStyleAttr
|
||||||
val request =
|
val request =
|
||||||
ImageRequest.Builder(context)
|
ImageRequest.Builder(context)
|
||||||
.data(covers)
|
.data(covers)
|
||||||
.error(StyledDrawable(context, context.getDrawableCompat(errorRes), iconSize).asImage())
|
.error(
|
||||||
|
StyledDrawable(context, context.getDrawableCompat(errorRes), iconSize)
|
||||||
|
.asImage())
|
||||||
.target(image)
|
.target(image)
|
||||||
|
|
||||||
val cornersTransformation =
|
val cornersTransformation =
|
||||||
|
|
|
@ -33,7 +33,6 @@ import androidx.media3.exoplayer.MetadataRetriever
|
||||||
import androidx.media3.exoplayer.source.MediaSource
|
import androidx.media3.exoplayer.source.MediaSource
|
||||||
import androidx.media3.extractor.metadata.flac.PictureFrame
|
import androidx.media3.extractor.metadata.flac.PictureFrame
|
||||||
import androidx.media3.extractor.metadata.id3.ApicFrame
|
import androidx.media3.extractor.metadata.id3.ApicFrame
|
||||||
import coil3.DrawableImage
|
|
||||||
import coil3.asImage
|
import coil3.asImage
|
||||||
import coil3.decode.DataSource
|
import coil3.decode.DataSource
|
||||||
import coil3.decode.ImageSource
|
import coil3.decode.ImageSource
|
||||||
|
|
|
@ -19,8 +19,8 @@
|
||||||
package org.oxycblt.auxio.image.extractor
|
package org.oxycblt.auxio.image.extractor
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import coil3.request.CachePolicy
|
|
||||||
import coil3.ImageLoader
|
import coil3.ImageLoader
|
||||||
|
import coil3.request.CachePolicy
|
||||||
import coil3.request.transitionFactory
|
import coil3.request.transitionFactory
|
||||||
import dagger.Module
|
import dagger.Module
|
||||||
import dagger.Provides
|
import dagger.Provides
|
||||||
|
|
|
@ -185,9 +185,7 @@ class DeviceLibraryFactoryImpl @Inject constructor() : DeviceLibrary.Factory {
|
||||||
|
|
||||||
// Now that all songs are processed, also process albums and group them into their
|
// Now that all songs are processed, also process albums and group them into their
|
||||||
// respective artists.
|
// respective artists.
|
||||||
pruneMusicBrainzIdTree(albumGrouping) { old, new ->
|
pruneMusicBrainzIdTree(albumGrouping) { old, new -> compareSongTracks(old, new) }
|
||||||
compareSongTracks(old, new)
|
|
||||||
}
|
|
||||||
val albums = flattenMusicBrainzIdTree(albumGrouping) { AlbumImpl(it, nameFactory) }
|
val albums = flattenMusicBrainzIdTree(albumGrouping) { AlbumImpl(it, nameFactory) }
|
||||||
for (album in albums) {
|
for (album in albums) {
|
||||||
for (rawArtist in album.rawArtists) {
|
for (rawArtist in album.rawArtists) {
|
||||||
|
@ -214,7 +212,7 @@ class DeviceLibraryFactoryImpl @Inject constructor() : DeviceLibrary.Factory {
|
||||||
compareSongDates(old, new)
|
compareSongDates(old, new)
|
||||||
}
|
}
|
||||||
old is AlbumImpl && new is AlbumImpl -> {
|
old is AlbumImpl && new is AlbumImpl -> {
|
||||||
compareAlbumDates(old, new)
|
compareAlbumDates(old, new)
|
||||||
}
|
}
|
||||||
else -> throw IllegalStateException()
|
else -> throw IllegalStateException()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue