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

Commit 77765369 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Do not updateActiveGroup on a handler

This method must not return to the caller until complete, otherwise
weird race conditions may occur.

Bug: 110907543

Test: Builds
Change-Id: Ia82671b34fac3662928012d8c709143efdf92266
parent b1373302
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -903,9 +903,8 @@ public abstract class BiometricServiceBase extends SystemService
    }

    protected void setActiveUserInternal(int userId) {
        mHandler.post(() -> {
        // Do not put on handler, since it should finish before returning to caller.
        updateActiveGroup(userId, null /* clientPackage */);
        });
    }

    protected void removeInternal(RemovalClient client) {