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

Commit 8398a715 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

getFaceDaemon on FaceService's own handler

Do not block SystemServerInitThreadPool

Fixes: 133749191

Test: No observable change
Change-Id: I2b1193b9e6bb92bab9e107756c57bfc0bf924f62
parent 29692c5e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -899,7 +899,10 @@ public class FaceService extends BiometricServiceBase {
    public void onStart() {
        super.onStart();
        publishBinderService(Context.FACE_SERVICE, new FaceServiceWrapper());
        SystemServerInitThreadPool.get().submit(this::getFaceDaemon, TAG + ".onStart");
        // Get the face daemon on FaceService's on thread so SystemServerInitThreadPool isn't
        // blocked
        SystemServerInitThreadPool.get().submit(() -> mHandler.post(this::getFaceDaemon),
                TAG + ".onStart");
    }

    @Override