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

Commit 32d81282 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Attempt to fix bug with setActiveGroup() in FingerprintService." into mnc-dev

parents 7e11579b dbe780f2
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -626,17 +626,17 @@ public class FingerprintService extends SystemService {
    public void onStart() {
        publishBinderService(Context.FINGERPRINT_SERVICE, new FingerprintServiceWrapper());
        mHalDeviceId = nativeOpenHal();
        if (mHalDeviceId != 0) {
        updateActiveGroup(ActivityManager.getCurrentUser());
        }
        if (DEBUG) Slog.v(TAG, "Fingerprint HAL id: " + mHalDeviceId);
        listenForUserSwitches();
    }

    private void updateActiveGroup(int userId) {
        if (mHalDeviceId != 0) {
            File path = Environment.getUserSystemDirectory(userId);
            nativeSetActiveGroup(userId, path.getAbsolutePath().getBytes());
        }
    }

    private void listenForUserSwitches() {
        try {