feat: add delay for focus request in GroupSetupScreen during details step
This commit is contained in:
@@ -82,6 +82,7 @@ import com.rosetta.messenger.utils.AvatarFileManager
|
||||
import com.rosetta.messenger.utils.ImageCropHelper
|
||||
import com.rosetta.messenger.ui.settings.ProfilePhotoPicker
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
@@ -231,6 +232,14 @@ fun GroupSetupScreen(
|
||||
}
|
||||
}
|
||||
|
||||
LaunchedEffect(Unit) {
|
||||
if (step == GroupSetupStep.DETAILS) {
|
||||
delay(120)
|
||||
nameFocusRequester.requestFocus()
|
||||
keyboardController?.show()
|
||||
}
|
||||
}
|
||||
|
||||
Scaffold(
|
||||
containerColor = backgroundColor,
|
||||
topBar = {
|
||||
|
||||
Reference in New Issue
Block a user