add complete black background in videoscreen, don't handle all keys in search screen
This commit is contained in:
+2
-1
@@ -13,8 +13,9 @@ actual fun Modifier.requestFocusOnDownEvent(focusRequester: FocusRequester): Mod
|
|||||||
if (it.type == KeyEventType.KeyUp) {
|
if (it.type == KeyEventType.KeyUp) {
|
||||||
if (it.key == Key.DirectionDown) {
|
if (it.key == Key.DirectionDown) {
|
||||||
focusRequester.requestFocus()
|
focusRequester.requestFocus()
|
||||||
|
return@onKeyEvent true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
true
|
false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -114,7 +114,7 @@ fun VideoPlayer(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
Box(modifier = rootModifier.background(Color.Black)) {
|
Box(modifier = rootModifier.fillMaxSize().background(Color.Black)) {
|
||||||
VideoCanvas(
|
VideoCanvas(
|
||||||
controller = controller,
|
controller = controller,
|
||||||
modifier = rootModifier.fillMaxSize(),
|
modifier = rootModifier.fillMaxSize(),
|
||||||
|
|||||||
Reference in New Issue
Block a user