From 7de9eeaf9a7239d600f6344720493501cebd027a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Fri, 22 Sep 2023 09:53:59 +0200 Subject: [PATCH] fix visual transformation --- .../compose/util/AccountTokenVisualTransformation.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/AccountTokenVisualTransformation.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/AccountTokenVisualTransformation.kt index 2e294e48e435..f7efcffb5773 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/AccountTokenVisualTransformation.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/AccountTokenVisualTransformation.kt @@ -20,7 +20,8 @@ fun accountTokenVisualTransformation() = VisualTransformation { offset + (offset - 1) / ACCOUNT_TOKEN_CHUNK_SIZE override fun transformedToOriginal(offset: Int): Int = - offset - offset / ACCOUNT_TOKEN_CHUNK_SIZE + offset - (offset - 1) / (ACCOUNT_TOKEN_CHUNK_SIZE + 1) + } ) }