mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Tech giant did an oopsie
This commit is contained in:
parent
a9dfcc03f9
commit
6e8099550c
@ -49,6 +49,7 @@ import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Alignment
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.platform.LocalClipboardManager
|
||||
import androidx.compose.ui.platform.LocalFocusManager
|
||||
import androidx.compose.ui.platform.LocalTextInputService
|
||||
import androidx.compose.ui.platform.LocalTextToolbar
|
||||
import androidx.compose.ui.platform.LocalView
|
||||
@ -118,6 +119,13 @@ private fun HistoryListContent(
|
||||
formatterSymbols: FormatterSymbols,
|
||||
) {
|
||||
val state = rememberLazyListState()
|
||||
val focusManager = LocalFocusManager.current
|
||||
|
||||
// Very bad workaround for https://issuetracker.google.com/issues/295745063
|
||||
// Will remove once the fix is released
|
||||
LaunchedEffect(state.isScrollInProgress) {
|
||||
focusManager.clearFocus(true)
|
||||
}
|
||||
|
||||
LaunchedEffect(historyItems) { state.scrollToItem(0) }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user