Fix UI bugs for udfps enroll in settings.
This CL fixes four bugs for SETTINGS_SHOW_UDFPS_ENROLL_IN_SETTINGS feature: 1. When the udfps view is big enough (i.e. landscape mode on panther), the progress bar's bottom is clipped by the footer button. - Sets the footer button width WRAP_CONTENT and removes the space view to make the footer button short enough, not hiding the udfps view progress bar. 2. When both text size and display icon size are big enough on the portrait mode, the udfps view's position is wrong because its parent views are longer than the screen and scrollable. - Add addOnDrawListener() on udfps view's parent view, whenever it's changed, recalculate the margins of udfps view to make sure it's aligned with the sensor's position. 3. When the finger is down on the screen and the lighting circle on the sensor is shown, the fingerprint icon is not hidden. - Propagates FingerprintManager#onPointerDown and #onPointerUp to UdfpsEnrollView and hide/show fingerprint drawable accordingly. 4. When rotating the screen, fingerprint location is not right because UdfpsEnrollHelper is recreated. - Makes UdfpsEnrollHelper a fragment and call setRetainInstance(true) to keep it even though the configuration is changed. Test: manually tested on device: Turn this flag on via adb command adb shell setprop sys.fflag.override.settings_show_udfps_enroll_in_settings true Bug: 260617060 Change-Id: I15ffde6455cab7e9d4a394349ec39e72df5b2911
Loading
Please register or sign in to comment