We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a2a694 commit 7426080Copy full SHA for 7426080
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/add/AddScreenScope.kt
@@ -6,8 +6,8 @@ import androidx.compose.runtime.getValue
6
import androidx.compose.runtime.mutableStateOf
7
import androidx.compose.runtime.remember
8
import androidx.compose.runtime.setValue
9
-import androidx.compose.ui.focus.FocusRequester
10
import com.artemchep.keyguard.ui.focus.FocusRequester2
+import kotlinx.coroutines.delay
11
12
class AddScreenScope(
13
initialFocusRequested: Boolean = false,
@@ -22,6 +22,7 @@ class AddScreenScope(
22
LaunchedEffect(focusRequester) {
23
var initialFocusRequested by initialFocusRequestedState
24
if (!initialFocusRequested) {
25
+ delay(100L)
26
focusRequester.requestFocus()
27
// do not request it the second time
28
initialFocusRequested = true
0 commit comments