Attach v2 EnrollingSfpsFragment to activity
1. Attach FingerprintEnrollEnrollingSfpsFragment to FingerprintEnrollmentActivity. 2. Refine FinSensor rotation case for SFPS and RFPS Bug: 260957939 Test: atest FingerprintEnrollmentActivityTest Change-Id: Ibbeff8deb009271df044480f9f5d6c64ab6e6264
This commit is contained in:
@@ -23,6 +23,8 @@ import android.os.Bundle;
|
||||
import android.os.VibrationAttributes;
|
||||
import android.os.VibrationEffect;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.view.accessibility.AccessibilityManager;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -278,6 +280,23 @@ public class FingerprintEnrollEnrollingViewModel extends AndroidViewModel {
|
||||
return mAccessibilityRepository.isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sends an {@link AccessibilityEvent}.
|
||||
*
|
||||
* @param event The event to send.
|
||||
*
|
||||
* @throws IllegalStateException if accessibility is not enabled.
|
||||
*
|
||||
* <strong>Note:</strong> The preferred mechanism for sending custom accessibility
|
||||
* events is through calling
|
||||
* {@link android.view.ViewParent#requestSendAccessibilityEvent(View, AccessibilityEvent)}
|
||||
* instead of this method to allow predecessors to augment/filter events sent by
|
||||
* their descendants.
|
||||
*/
|
||||
public void sendAccessibilityEvent(@NonNull AccessibilityEvent event) {
|
||||
mAccessibilityRepository.sendAccessibilityEvent(event);
|
||||
}
|
||||
|
||||
/**
|
||||
* Like {@link #vibrate(VibrationEffect, VibrationAttributes)}, but allows the
|
||||
* caller to specify the vibration is owned by someone else and set a reason for vibration.
|
||||
|
Reference in New Issue
Block a user