mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
refactor: simplify initalization of MutableLiveData in PlayerViewModel.kt
This commit is contained in:
parent
ec8c9bad4b
commit
338ef22a18
@ -8,12 +8,8 @@ import com.github.libretube.api.obj.ChapterSegment
|
|||||||
class PlayerViewModel : ViewModel() {
|
class PlayerViewModel : ViewModel() {
|
||||||
var player: ExoPlayer? = null
|
var player: ExoPlayer? = null
|
||||||
|
|
||||||
val isMiniPlayerVisible = MutableLiveData<Boolean>().apply {
|
val isMiniPlayerVisible = MutableLiveData(false)
|
||||||
value = false
|
val isFullscreen = MutableLiveData(false)
|
||||||
}
|
|
||||||
val isFullscreen = MutableLiveData<Boolean>().apply {
|
|
||||||
value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
var maxSheetHeightPx = 0
|
var maxSheetHeightPx = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user