refactor: simplify initalization of MutableLiveData in PlayerViewModel.kt

This commit is contained in:
Bnyro 2024-01-18 17:26:47 +01:00
parent ec8c9bad4b
commit 338ef22a18

View File

@ -8,12 +8,8 @@ import com.github.libretube.api.obj.ChapterSegment
class PlayerViewModel : ViewModel() {
var player: ExoPlayer? = null
val isMiniPlayerVisible = MutableLiveData<Boolean>().apply {
value = false
}
val isFullscreen = MutableLiveData<Boolean>().apply {
value = false
}
val isMiniPlayerVisible = MutableLiveData(false)
val isFullscreen = MutableLiveData(false)
var maxSheetHeightPx = 0