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) + } ) }