Merge "Fix regression from ag/22534576" into udc-dev
This commit is contained in:
@@ -31,6 +31,10 @@ open class AuthBiometricFingerprintView(
|
|||||||
context: Context,
|
context: Context,
|
||||||
attrs: AttributeSet? = null
|
attrs: AttributeSet? = null
|
||||||
) : AuthBiometricView(context, attrs) {
|
) : AuthBiometricView(context, attrs) {
|
||||||
|
/** If this view is for a SFPS sensor. */
|
||||||
|
var isSfps = false
|
||||||
|
private set
|
||||||
|
|
||||||
/** If this view is for a UDFPS sensor. */
|
/** If this view is for a UDFPS sensor. */
|
||||||
var isUdfps = false
|
var isUdfps = false
|
||||||
private set
|
private set
|
||||||
@@ -40,6 +44,7 @@ open class AuthBiometricFingerprintView(
|
|||||||
|
|
||||||
/** Set the [sensorProps] of this sensor so the view can be customized prior to layout. */
|
/** Set the [sensorProps] of this sensor so the view can be customized prior to layout. */
|
||||||
fun setSensorProperties(sensorProps: FingerprintSensorPropertiesInternal) {
|
fun setSensorProperties(sensorProps: FingerprintSensorPropertiesInternal) {
|
||||||
|
isSfps = sensorProps.isAnySidefpsType
|
||||||
isUdfps = sensorProps.isAnyUdfpsType
|
isUdfps = sensorProps.isAnyUdfpsType
|
||||||
udfpsAdapter = if (isUdfps) UdfpsDialogMeasureAdapter(this, sensorProps) else null
|
udfpsAdapter = if (isUdfps) UdfpsDialogMeasureAdapter(this, sensorProps) else null
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ object AuthBiometricFingerprintViewBinder {
|
|||||||
viewModel.setRotation(view.context.display?.orientation ?: Surface.ROTATION_0)
|
viewModel.setRotation(view.context.display?.orientation ?: Surface.ROTATION_0)
|
||||||
launch {
|
launch {
|
||||||
viewModel.iconAsset.collect { iconAsset ->
|
viewModel.iconAsset.collect { iconAsset ->
|
||||||
view.updateIconViewAnimation(iconAsset)
|
if (view.isSfps) {
|
||||||
|
view.updateIconViewAnimation(iconAsset)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user