Skip to content

Commit 9557035

Browse files
committed
Ensure that navigation using keyboard is not broken on the room list.
Workaround https://issuetracker.google.com/issues/436432313
1 parent d988ae3 commit 9557035

File tree

1 file changed

+7
-2
lines changed
  • features/home/impl/src/main/kotlin/io/element/android/features/home/impl

1 file changed

+7
-2
lines changed

features/home/impl/src/main/kotlin/io/element/android/features/home/impl/HomeView.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,19 @@ private fun HomeScaffold(
240240
contentPadding = PaddingValues(
241241
// FAB height is 56dp, bottom padding is 16dp, we add 8dp as extra margin -> 56+16+8 = 80,
242242
// and include provided bottom padding
243-
bottom = 80.dp + padding.calculateBottomPadding(),
244-
top = padding.calculateTopPadding()
243+
// Disable contentPadding due to navigation issue using the keyboard
244+
// See https://issuetracker.google.com/issues/436432313
245+
bottom = 80.dp, // + padding.calculateBottomPadding(),
246+
//top = padding.calculateTopPadding()
245247
),
246248
modifier = Modifier
247249
.padding(
248250
PaddingValues(
249251
start = padding.calculateStartPadding(LocalLayoutDirection.current),
250252
end = padding.calculateEndPadding(LocalLayoutDirection.current),
253+
// Remove these two lines once https://issuetracker.google.com/issues/436432313 has been fixed
254+
bottom = padding.calculateBottomPadding(),
255+
top = padding.calculateTopPadding()
251256
)
252257
)
253258
.consumeWindowInsets(padding)

0 commit comments

Comments
 (0)