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

Commit 12d50ec8 authored by Chandru S's avatar Chandru S
Browse files

Change conflatedCallbackFlows to callbackFlows

Face enrollment state is incorrect in a paritcular scenario
FaceProvider shows 1 enrolled face but SystemUI thinks that face is not enrolled.
One possibility is that the conflatedCallbackFlow dropped updates that were posted in quick succession.

Bug: 364902818
Flag: EXEMPT bugfix
Test: NA
Change-Id: I61967d6a9d48e504062e680cbb14e31486cf6569
parent 0a57ec85
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -35,7 +35,6 @@ import com.android.systemui.biometrics.data.repository.FingerprintPropertyReposi
import com.android.systemui.biometrics.shared.model.SensorStrength
import com.android.systemui.broadcast.BroadcastDispatcher
import com.android.systemui.common.coroutine.ChannelExt.trySendWithFailureLogging
import com.android.systemui.utils.coroutines.flow.conflatedCallbackFlow
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.dagger.qualifiers.Application
import com.android.systemui.dagger.qualifiers.Background
@@ -194,7 +193,7 @@ constructor(

    private val isFingerprintEnrolled: Flow<Boolean> =
        selectedUserId.flatMapLatest { currentUserId ->
            conflatedCallbackFlow {
            callbackFlow {
                val callback =
                    object : AuthController.Callback {
                        override fun onEnrollmentsChanged(
@@ -223,7 +222,7 @@ constructor(

    private val isFaceEnrolled: Flow<Boolean> =
        selectedUserId.flatMapLatest { selectedUserId: Int ->
            conflatedCallbackFlow {
            callbackFlow {
                val callback =
                    object : AuthController.Callback {
                        override fun onEnrollmentsChanged(