Wait for systemui udfps overlay ready to show settings udfps enroll view.
Previously, we show settings's udfps enroll animation view (the fingerprint icon and progress view) once the FingerprintEnrollEnrolling is shown. However, touch events have to wait for systemui's udfps overlay to be valid. This CL lets settings's udfps enroll view wait for systemui's overlay. 1. Sets udfps enroll animation view's default visibility Gone. 2. Propagates FingerprintManager#onUdfpsOverlayShown to FingerprintEnrollEnrolling and when it's called, set the enroll view visible. Besides, this CL renames onPointerDown() and onPointerUp() with Udfps. Bug: 280718879 Test: atest FingerprintEnrollEnrollingTest Change-Id: Ieed3e74c182828918785edcacb021f19a3665f2a
This commit is contained in:
@@ -86,7 +86,7 @@ public class UdfpsEnrollEnrollingView extends GlifLayout {
|
||||
UdfpsEnrollHelper udfpsEnrollHelper,
|
||||
AccessibilityManager accessibilityManager) {
|
||||
mAccessibilityManager = accessibilityManager;
|
||||
initUdfpsEnrollView(mUdfpsEnrollView, udfpsProps, udfpsEnrollHelper);
|
||||
initUdfpsEnrollView(udfpsProps, udfpsEnrollHelper);
|
||||
|
||||
if (!mIsLandscape) {
|
||||
adjustPortraitPaddings();
|
||||
@@ -117,8 +117,7 @@ public class UdfpsEnrollEnrollingView extends GlifLayout {
|
||||
});
|
||||
}
|
||||
|
||||
private void initUdfpsEnrollView(UdfpsEnrollView udfpsEnrollView,
|
||||
FingerprintSensorPropertiesInternal udfpsProps,
|
||||
private void initUdfpsEnrollView(FingerprintSensorPropertiesInternal udfpsProps,
|
||||
UdfpsEnrollHelper udfpsEnrollHelper) {
|
||||
DisplayInfo displayInfo = new DisplayInfo();
|
||||
mContext.getDisplay().getDisplayInfo(displayInfo);
|
||||
@@ -141,8 +140,8 @@ public class UdfpsEnrollEnrollingView extends GlifLayout {
|
||||
scaleFactor,
|
||||
displayInfo.rotation);
|
||||
|
||||
udfpsEnrollView.setOverlayParams(params);
|
||||
udfpsEnrollView.setEnrollHelper(udfpsEnrollHelper);
|
||||
mUdfpsEnrollView.setOverlayParams(params);
|
||||
mUdfpsEnrollView.setEnrollHelper(udfpsEnrollHelper);
|
||||
}
|
||||
|
||||
private void adjustPortraitPaddings() {
|
||||
|
||||
Reference in New Issue
Block a user