Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ fun RestoreWalletView(
},
onPositionChanged = { position ->
inputFieldPositions[index] = position
}
},
index = index,
)
}
}
Expand Down Expand Up @@ -246,7 +247,8 @@ fun RestoreWalletView(
},
onPositionChanged = { position ->
inputFieldPositions[index] = position
}
},
index = index,
)
}
}
Expand Down Expand Up @@ -415,6 +417,7 @@ fun MnemonicInputField(
onValueChanged: (String) -> Unit,
onFocusChanged: (Boolean) -> Unit,
onPositionChanged: (Int) -> Unit,
index: Int,
) {
OutlinedTextField(
value = value,
Expand All @@ -437,6 +440,7 @@ fun MnemonicInputField(
capitalization = KeyboardCapitalization.None,
),
modifier = Modifier
.testTag("Word-$index")
.onFocusChanged { onFocusChanged(it.isFocused) }
.onGloballyPositioned { coordinates ->
val position = coordinates.positionInParent().y.toInt() * 2 // double the scroll to ensure enough space
Expand Down