Skip to content
Commit 42432f7b authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Make operation-specific layouts, instead of passing in animations

Currently UdfpsController creates UdfpsView, which in turn inflates
both the illumination view and a generic view to hold any animations
necessary. This means that someone somewhere needs to pass in
the animation, and that operation-specific code is not very contained.

This change makes it so that UdfpsView inflates operation-specific
layouts, which maintain all of their operation-specific "stuff",
for example the enrollment progress bar, operation-specific
animations, etc.

1) UdfpsController now notifies the enrollment views/animations
   via UdfpsEnrollHelper. This helps us avoid doing weird
   casts or instanceof checks when handling enrollment messages
2) Enrollment progress bar now lives in enrollment-specific
   udfps_animation_view_enroll

Bug: 178438459
Test: atest com.android.systemui.biometrics
Change-Id: I076b0f9064d06404606e9a6ab3b1991247d4dae6
parent 115defdc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment