Remove or replace unnecessary BackHandler calls (#4148)
* Remove/replace `BackHandler` calls: - For `UserProfileView`, remove the redundant `BackHandler` -> `navigateUp()` call. - For `SetupBiometricView`, remove the `enabled = true` parameter, as this is the default value.
This commit is contained in:
parent
f31e648e35
commit
a74a62c090
5 changed files with 5 additions and 21 deletions
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
package io.element.android.features.userprofile.shared
|
||||
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.Spacer
|
||||
import androidx.compose.foundation.layout.consumeWindowInsets
|
||||
|
|
@ -51,7 +50,6 @@ fun UserProfileView(
|
|||
openAvatarPreview: (username: String, url: String) -> Unit,
|
||||
modifier: Modifier = Modifier,
|
||||
) {
|
||||
BackHandler { goBack() }
|
||||
Scaffold(
|
||||
modifier = modifier,
|
||||
topBar = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue