mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 13:50:30 +05:30
Merge pull request #5512 from Bnyro/master
refactor: simplify initalization of MutableLiveData in PlayerViewModel.kt
This commit is contained in:
commit
e8b911c6fa
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user