Skip to content

Commit 2521a45

Browse files
committed
Merge branch 'back-fixing' into main
2 parents 171d42d + eff2889 commit 2521a45

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/java/dev/shorthouse/coinwatch/ui/screen/search/CoinSearchScreen.kt

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package dev.shorthouse.coinwatch.ui.screen.search
22

3+
import androidx.activity.compose.BackHandler
34
import androidx.compose.foundation.layout.PaddingValues
45
import androidx.compose.foundation.layout.fillMaxSize
56
import androidx.compose.foundation.lazy.LazyColumn
@@ -200,6 +201,10 @@ fun CoinSearchContent(
200201
LaunchedEffect(focusRequester) {
201202
focusRequester.requestFocus()
202203
}
204+
205+
BackHandler(enabled = true) {
206+
onNavigateUp()
207+
}
203208
}
204209

205210
@Composable

0 commit comments

Comments
 (0)