mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Ensure that navigation using keyboard is not broken on the room list.
Workaround https://issuetracker.google.com/issues/436432313
This commit is contained in:
+7
-2
@@ -240,14 +240,19 @@ private fun HomeScaffold(
|
|||||||
contentPadding = PaddingValues(
|
contentPadding = PaddingValues(
|
||||||
// FAB height is 56dp, bottom padding is 16dp, we add 8dp as extra margin -> 56+16+8 = 80,
|
// FAB height is 56dp, bottom padding is 16dp, we add 8dp as extra margin -> 56+16+8 = 80,
|
||||||
// and include provided bottom padding
|
// and include provided bottom padding
|
||||||
bottom = 80.dp + padding.calculateBottomPadding(),
|
// Disable contentPadding due to navigation issue using the keyboard
|
||||||
top = padding.calculateTopPadding()
|
// See https://issuetracker.google.com/issues/436432313
|
||||||
|
bottom = 80.dp, // + padding.calculateBottomPadding(),
|
||||||
|
//top = padding.calculateTopPadding()
|
||||||
),
|
),
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.padding(
|
.padding(
|
||||||
PaddingValues(
|
PaddingValues(
|
||||||
start = padding.calculateStartPadding(LocalLayoutDirection.current),
|
start = padding.calculateStartPadding(LocalLayoutDirection.current),
|
||||||
end = padding.calculateEndPadding(LocalLayoutDirection.current),
|
end = padding.calculateEndPadding(LocalLayoutDirection.current),
|
||||||
|
// Remove these two lines once https://issuetracker.google.com/issues/436432313 has been fixed
|
||||||
|
bottom = padding.calculateBottomPadding(),
|
||||||
|
top = padding.calculateTopPadding()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.consumeWindowInsets(padding)
|
.consumeWindowInsets(padding)
|
||||||
|
|||||||
Reference in New Issue
Block a user