revert "style: migrate to roboto"
I want to hold off with this migration actually. I feel like it's too
jarring of a change to be included as of right now.
This reverts commit 50170f202e.
This commit is contained in:
@@ -34,7 +34,6 @@ import org.oxycblt.auxio.music.Artist
|
||||
import org.oxycblt.auxio.music.Genre
|
||||
import org.oxycblt.auxio.music.Song
|
||||
import org.oxycblt.auxio.ui.Sort
|
||||
import org.oxycblt.auxio.util.logD
|
||||
import kotlin.math.min
|
||||
|
||||
/**
|
||||
@@ -82,12 +81,9 @@ class ArtistImageFetcher private constructor(
|
||||
.sortAlbums(artist.albums)
|
||||
|
||||
val results = albums.mapAtMost(4) { album ->
|
||||
logD("${artist.name} ${album.name}")
|
||||
fetchArt(context, album)
|
||||
}
|
||||
|
||||
logD("OK: ${artist.name}")
|
||||
|
||||
return createMosaic(context, results, size)
|
||||
}
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ data class Genre(
|
||||
*/
|
||||
data class Header(
|
||||
override val id: Long,
|
||||
@StringRes val string: Int
|
||||
@StringRes val string: Int,
|
||||
) : BaseModel()
|
||||
|
||||
/**
|
||||
|
||||
@@ -214,6 +214,7 @@ class PlaybackViewModel : ViewModel(), PlaybackStateManager.Callback {
|
||||
*/
|
||||
fun removeQueueDataItem(adapterIndex: Int, apply: () -> Unit) {
|
||||
val adjusted = adapterIndex + (playbackManager.queue.size - mNextUp.value!!.size)
|
||||
logD("$adjusted")
|
||||
|
||||
if (adjusted in playbackManager.queue.indices) {
|
||||
apply()
|
||||
|
||||
@@ -284,6 +284,7 @@ class PlaybackStateManager private constructor() {
|
||||
|
||||
if (index > mQueue.size || index < 0) {
|
||||
logE("Index is out of bounds, did not remove queue item.")
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -300,6 +301,7 @@ class PlaybackStateManager private constructor() {
|
||||
fun moveQueueItems(from: Int, to: Int): Boolean {
|
||||
if (from > mQueue.size || from < 0 || to > mQueue.size || to < 0) {
|
||||
logE("Indices were out of bounds, did not move queue item")
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ import android.media.AudioManager
|
||||
import android.os.Build
|
||||
import android.os.IBinder
|
||||
import android.support.v4.media.session.MediaSessionCompat
|
||||
import androidx.media.session.MediaButtonReceiver
|
||||
import com.google.android.exoplayer2.C
|
||||
import com.google.android.exoplayer2.ExoPlayer
|
||||
import com.google.android.exoplayer2.MediaItem
|
||||
@@ -102,8 +103,9 @@ class PlaybackService : Service(), Player.Listener, PlaybackStateManager.Callbac
|
||||
// --- SERVICE OVERRIDES ---
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
logD("Service is active.")
|
||||
|
||||
// Since this service exposes a media button intent, pass it off to the
|
||||
// MediaSession if the intent really is an instance of one.
|
||||
MediaButtonReceiver.handleIntent(mediaSession, intent)
|
||||
return START_NOT_STICKY
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user