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

Commit 92e49d7a authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

[flexiglass] Initial isAutoConfirmFeatureEnabled to correct value

Up until now, we avoided initializing this to the real value to avoid
making thread-blocking calls. This CL changes that so we can get that
flow to have the proper value from the start. This is needed to fix the
attached bug.

Fix: 390028136
Test: manually verified that, with autoconform on and after a reboot,
the backspace and authentication buttons don't briefly appear on the
same first frame of the PIN bouncer just to disappear again
Flag: com.android.systemui.scene_container

Change-Id: I368590c03d7e2fd492d41e5808c1bd7627c206cc
parent 0e5f6fac
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -215,7 +215,8 @@ constructor(

    override val isAutoConfirmFeatureEnabled: StateFlow<Boolean> =
        refreshingFlow(
            initialValue = false,
            initialValue =
                lockPatternUtils.isAutoPinConfirmEnabled(userRepository.getSelectedUserInfo().id),
            getFreshValue = lockPatternUtils::isAutoPinConfirmEnabled,
        )