Remove old safety number code.

This commit is contained in:
Michelle Tang
2026-01-26 15:19:46 -05:00
committed by Greyson Parrelli
parent af7989839f
commit 279f9578cc
5 changed files with 46 additions and 214 deletions

View File

@@ -105,7 +105,12 @@ class SafetyNumberQrView : ConstraintLayout {
}
clipToOutline = true
setSafetyNumberType(false)
ImageViewCompat.setImageTintList(shareButton, ColorStateList.valueOf(ContextCompat.getColor(context, R.color.signal_dark_colorOnSurface)))
setBackgroundColor(ContextCompat.getColor(context, R.color.safety_number_card_blue))
codes.forEach {
it.setTextColor(ContextCompat.getColor(context, R.color.signal_light_colorOnPrimary))
}
}
fun setFingerprintViews(fingerprint: Fingerprint, animate: Boolean) {
@@ -132,22 +137,6 @@ class SafetyNumberQrView : ConstraintLayout {
}
}
fun setSafetyNumberType(newType: Boolean) {
if (newType) {
ImageViewCompat.setImageTintList(shareButton, ColorStateList.valueOf(ContextCompat.getColor(context, R.color.signal_dark_colorOnSurface)))
setBackgroundColor(ContextCompat.getColor(context, R.color.safety_number_card_blue))
codes.forEach {
it.setTextColor(ContextCompat.getColor(context, R.color.signal_light_colorOnPrimary))
}
} else {
ImageViewCompat.setImageTintList(shareButton, ColorStateList.valueOf(ContextCompat.getColor(context, R.color.signal_light_colorOnSurface)))
setBackgroundColor(ContextCompat.getColor(context, R.color.safety_number_card_grey))
codes.forEach {
it.setTextColor(ContextCompat.getColor(context, R.color.signal_light_colorOnSurfaceVariant))
}
}
}
fun animateVerifiedSuccess() {
val qrBitmap = (qrCode.drawable as BitmapDrawable).bitmap
val qrSuccess: Bitmap = createVerifiedBitmap(qrBitmap.width, qrBitmap.height, R.drawable.symbol_check_white_48)