mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-20 07:10:15 +01:00
Animate safety number once.
This commit is contained in:
@@ -188,6 +188,7 @@ private fun SafetyNumberQr(
|
||||
val fingerprint = (state.fingerprintHolder as? FingerprintHolder.Initialised)?.fingerprint
|
||||
var animateSuccess by remember { mutableStateOf(false) }
|
||||
var animateFailure by remember { mutableStateOf(false) }
|
||||
var initialLoad by remember { mutableStateOf(true) }
|
||||
|
||||
AndroidView(
|
||||
factory = { SafetyNumberQrView(it) },
|
||||
@@ -197,7 +198,8 @@ private fun SafetyNumberQr(
|
||||
// TODO - animateVerifiedSuccess // animateVerifiedFailure
|
||||
|
||||
if (fingerprint != null) {
|
||||
it.setFingerprintViews(fingerprint.fingerprint, true) // TODO - animateCodeChanges
|
||||
it.setFingerprintViews(fingerprint.fingerprint, initialLoad) // TODO - animateCodeChanges
|
||||
initialLoad = false
|
||||
}
|
||||
|
||||
if (animateSuccess) {
|
||||
|
||||
Reference in New Issue
Block a user