fullscreen cleanup
This commit is contained in:
parent
19a48c45a6
commit
3199cdf80f
|
@ -70,10 +70,6 @@ class VideoPlayerFragment() : Fragment() {
|
||||||
dimensionRatio = "$ratio:1"
|
dimensionRatio = "$ratio:1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun switchToFullscreen() {
|
|
||||||
//println("gurken fullscreen")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
composeView.apply {
|
composeView.apply {
|
||||||
|
|
|
@ -76,7 +76,6 @@ interface VideoPlayerViewModel {
|
||||||
|
|
||||||
interface Listener {
|
interface Listener {
|
||||||
fun requestUpdateLayoutRatio(ratio: Float)
|
fun requestUpdateLayoutRatio(ratio: Float)
|
||||||
fun switchToFullscreen()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sealed class Events {
|
sealed class Events {
|
||||||
|
@ -196,6 +195,7 @@ class VideoPlayerViewModelImpl @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun switchToFullscreen() {
|
override fun switchToFullscreen() {
|
||||||
|
|
||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
mutableEvent.emit(VideoPlayerViewModel.Events.SwitchToFullscreen)
|
mutableEvent.emit(VideoPlayerViewModel.Events.SwitchToFullscreen)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue