File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/main/java/to/bitkit/ui/onboarding Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,8 @@ fun RestoreWalletView(
203203 },
204204 onPositionChanged = { position ->
205205 inputFieldPositions[index] = position
206- }
206+ },
207+ index = index,
207208 )
208209 }
209210 }
@@ -246,7 +247,8 @@ fun RestoreWalletView(
246247 },
247248 onPositionChanged = { position ->
248249 inputFieldPositions[index] = position
249- }
250+ },
251+ index = index,
250252 )
251253 }
252254 }
@@ -415,6 +417,7 @@ fun MnemonicInputField(
415417 onValueChanged : (String ) -> Unit ,
416418 onFocusChanged : (Boolean ) -> Unit ,
417419 onPositionChanged : (Int ) -> Unit ,
420+ index : Int ,
418421) {
419422 OutlinedTextField (
420423 value = value,
@@ -437,6 +440,7 @@ fun MnemonicInputField(
437440 capitalization = KeyboardCapitalization .None ,
438441 ),
439442 modifier = Modifier
443+ .testTag(" Word-$index " )
440444 .onFocusChanged { onFocusChanged(it.isFocused) }
441445 .onGloballyPositioned { coordinates ->
442446 val position = coordinates.positionInParent().y.toInt() * 2 // double the scroll to ensure enough space
You can’t perform that action at this time.
0 commit comments