Skip to content

Commit 0b680e8

Browse files
committed
Fix removeFirst() Kotlin/Java incompatibility
See https://developer.android.com/about/versions/15/behavior-changes-15\#kotlin-remove-first for further information
1 parent 07e6e25 commit 0b680e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presentation/src/main/java/org/cryptomator/presentation/util/BiometricAuthenticationMigration.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class BiometricAuthenticationMigration(
4747
) {
4848
removeBiometricFragmentFromStack(fragment)
4949
when {
50-
vaultQueue.isNotEmpty() -> decryptUsingCbc(fragment, vaultQueue.removeFirst(), decryptedVaults, vaultQueue, reEncryptedVaults, allVaults)
51-
decryptedVaults.isNotEmpty() -> encryptUsingGcm(fragment, decryptedVaults.removeFirst(), vaultQueue, decryptedVaults, reEncryptedVaults, allVaults)
50+
vaultQueue.isNotEmpty() -> decryptUsingCbc(fragment, vaultQueue.removeAt(0), decryptedVaults, vaultQueue, reEncryptedVaults, allVaults)
51+
decryptedVaults.isNotEmpty() -> encryptUsingGcm(fragment, decryptedVaults.removeAt(0), vaultQueue, decryptedVaults, reEncryptedVaults, allVaults)
5252
else -> callback.onBiometricAuthenticationMigrationFinished(reEncryptedVaults)
5353
}
5454
}

0 commit comments

Comments
 (0)