PM-10874: Fix biometrics auto-prompt (#3728)

This commit is contained in:
Shannon Draeker 2024-08-14 11:48:58 -04:00 committed by GitHub
parent aaa0ce4ecd
commit 2876d75a21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,7 @@ import com.x8bit.bitwarden.data.vault.repository.model.VaultUnlockResult
import com.x8bit.bitwarden.ui.auth.feature.vaultunlock.model.UnlockType import com.x8bit.bitwarden.ui.auth.feature.vaultunlock.model.UnlockType
import com.x8bit.bitwarden.ui.auth.feature.vaultunlock.util.unlockScreenErrorMessage import com.x8bit.bitwarden.ui.auth.feature.vaultunlock.util.unlockScreenErrorMessage
import com.x8bit.bitwarden.ui.platform.base.BaseViewModel import com.x8bit.bitwarden.ui.platform.base.BaseViewModel
import com.x8bit.bitwarden.ui.platform.base.util.BackgroundEvent
import com.x8bit.bitwarden.ui.platform.base.util.Text import com.x8bit.bitwarden.ui.platform.base.util.Text
import com.x8bit.bitwarden.ui.platform.base.util.asText import com.x8bit.bitwarden.ui.platform.base.util.asText
import com.x8bit.bitwarden.ui.platform.base.util.hexToColor import com.x8bit.bitwarden.ui.platform.base.util.hexToColor
@ -393,7 +394,7 @@ sealed class VaultUnlockEvent {
/** /**
* Prompts the user for biometrics unlock. * Prompts the user for biometrics unlock.
*/ */
data class PromptForBiometrics(val cipher: Cipher) : VaultUnlockEvent() data class PromptForBiometrics(val cipher: Cipher) : BackgroundEvent, VaultUnlockEvent()
} }
/** /**