mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Format file (no other change)
This commit is contained in:
+19
-19
@@ -90,14 +90,14 @@ private fun RecoveryKeyStaticContent(
|
|||||||
) {
|
) {
|
||||||
Row(
|
Row(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.clip(RoundedCornerShape(14.dp))
|
.clip(RoundedCornerShape(14.dp))
|
||||||
.background(
|
.background(
|
||||||
color = ElementTheme.colors.bgSubtleSecondary,
|
color = ElementTheme.colors.bgSubtleSecondary,
|
||||||
shape = RoundedCornerShape(14.dp)
|
shape = RoundedCornerShape(14.dp)
|
||||||
)
|
)
|
||||||
.clickableIfNotNull(onClick)
|
.clickableIfNotNull(onClick)
|
||||||
.padding(horizontal = 16.dp, vertical = 16.dp),
|
.padding(horizontal = 16.dp, vertical = 16.dp),
|
||||||
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||||
) {
|
) {
|
||||||
if (state.formattedRecoveryKey != null) {
|
if (state.formattedRecoveryKey != null) {
|
||||||
@@ -115,15 +115,15 @@ private fun RecoveryKeyStaticContent(
|
|||||||
verticalAlignment = Alignment.CenterVertically,
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
horizontalArrangement = Arrangement.Center,
|
horizontalArrangement = Arrangement.Center,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(vertical = 11.dp)
|
.padding(vertical = 11.dp)
|
||||||
) {
|
) {
|
||||||
if (state.inProgress) {
|
if (state.inProgress) {
|
||||||
CircularProgressIndicator(
|
CircularProgressIndicator(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.progressSemantics()
|
.progressSemantics()
|
||||||
.padding(end = 8.dp)
|
.padding(end = 8.dp)
|
||||||
.size(16.dp),
|
.size(16.dp),
|
||||||
color = ElementTheme.colors.textPrimary,
|
color = ElementTheme.colors.textPrimary,
|
||||||
strokeWidth = 1.5.dp,
|
strokeWidth = 1.5.dp,
|
||||||
)
|
)
|
||||||
@@ -160,12 +160,12 @@ private fun RecoveryKeyFormContent(
|
|||||||
}
|
}
|
||||||
TextField(
|
TextField(
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.testTag(TestTags.recoveryKey)
|
.testTag(TestTags.recoveryKey)
|
||||||
.autofill(
|
.autofill(
|
||||||
autofillTypes = listOf(AutofillType.Password),
|
autofillTypes = listOf(AutofillType.Password),
|
||||||
onFill = { onChange(it) },
|
onFill = { onChange(it) },
|
||||||
),
|
),
|
||||||
minLines = 2,
|
minLines = 2,
|
||||||
value = state.formattedRecoveryKey.orEmpty(),
|
value = state.formattedRecoveryKey.orEmpty(),
|
||||||
onValueChange = onChange,
|
onValueChange = onChange,
|
||||||
|
|||||||
Reference in New Issue
Block a user