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

Skip to content
Commit eb443786 authored by Nicolo' Mazzucato's avatar Nicolo' Mazzucato
Browse files

Move face auth related computations to the background

It seems in many places flows were being flowed on the main thread just because the initial registration needed to happen in the main thread. for a couple of places.

This cl makes the combination of flow value happen in the bg thread, while the registration of listeners still happens in the ui thread (just to minimize changes: it would also be possible to change classes to make them thread safe)

This avoids a roughly 30ms of main thread work at every device state change.

Flag: None
Bug: 312894757
Test: DeviceEntryFingerprintAuthRepositoryTest, DevicePostureRepositoryTest + perfetto
Change-Id: If21b2622cf01ffd62c57a5162c65211940c0be72
parent 73330b61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment