diff options
author | Kevin Chyn <kchyn@google.com> | 2021-02-24 18:00:14 -0800 |
---|---|---|
committer | Kevin Chyn <kchyn@google.com> | 2021-03-02 15:56:10 -0800 |
commit | 42432f7bae150f2558ad08d01b103a5fe326456a (patch) | |
tree | 8079ef0bd85b7e2fb98d8c1ce8af35ad6e6690e0 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 115defdc9f1ea8412cced9aae595becfa7ec9ce9 (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions