feat: add delay for focus request in GroupSetupScreen during details step

This commit is contained in:
2026-03-02 14:19:59 +05:00
parent 8f7544c655
commit df8fbfc5d3

View File

@@ -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 = {