Add dynamic theme (#159)
This commit is contained in:
@@ -11,6 +11,7 @@ import android.content.Intent
|
||||
import android.content.IntentFilter
|
||||
import android.content.SharedPreferences
|
||||
import android.content.res.Configuration
|
||||
import android.graphics.Bitmap
|
||||
import android.graphics.Color
|
||||
import android.media.MediaMetadata
|
||||
import android.media.session.MediaSession
|
||||
@@ -680,6 +681,13 @@ class PlayerService : InvincibleService(), Player.Listener, PlaybackStatsListene
|
||||
var isLoadingRadio by mutableStateOf(false)
|
||||
private set
|
||||
|
||||
val lastBitmap: Bitmap?
|
||||
get() = bitmapProvider.lastBitmap
|
||||
|
||||
fun setBitmapListener(listener: ((Bitmap?) -> Unit)?) {
|
||||
bitmapProvider.listener = listener
|
||||
}
|
||||
|
||||
fun startSleepTimer(delayMillis: Long) {
|
||||
timerJob?.cancel()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user