Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f7889fe authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Attach v2 EnrollingSfpsFragment to activity" into udc-dev am: 4951384b

parents c3343de5 4951384b
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -16,8 +16,12 @@

package com.android.settings.biometrics2.data.repository;

import android.view.View;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityManager;

import androidx.annotation.NonNull;

/**
 * This repository is used to call all APIs in {@link AccessibilityManager}
 */
@@ -44,4 +48,21 @@ public class AccessibilityRepository {
    public boolean isEnabled() {
        return mAccessibilityManager.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) {
        mAccessibilityManager.sendAccessibilityEvent(event);
    }
}
+0 −6
Original line number Diff line number Diff line
@@ -410,12 +410,6 @@ public class FingerprintEnrollEnrollingRfpsFragment extends Fragment {
        }
    }

    @Override
    public void onDestroy() {
        // TODO stopListenOrientationEvent();
        super.onDestroy();
    }

    private void animateProgress(int progress) {
        if (mProgressAnim != null) {
            mProgressAnim.cancel();
Loading