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.utils.ImageCropHelper
|
||||||
import com.rosetta.messenger.ui.settings.ProfilePhotoPicker
|
import com.rosetta.messenger.ui.settings.ProfilePhotoPicker
|
||||||
import kotlinx.coroutines.Dispatchers
|
import kotlinx.coroutines.Dispatchers
|
||||||
|
import kotlinx.coroutines.delay
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
|
|
||||||
@@ -231,6 +232,14 @@ fun GroupSetupScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LaunchedEffect(Unit) {
|
||||||
|
if (step == GroupSetupStep.DETAILS) {
|
||||||
|
delay(120)
|
||||||
|
nameFocusRequester.requestFocus()
|
||||||
|
keyboardController?.show()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Scaffold(
|
Scaffold(
|
||||||
containerColor = backgroundColor,
|
containerColor = backgroundColor,
|
||||||
topBar = {
|
topBar = {
|
||||||
|
|||||||
Reference in New Issue
Block a user