Skip to content
Commit 3b251021 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin
Browse files

Fixes bug where affordances are visible in AOD

The issue is that, when consumers are subscribed to the repository's
isDozing flow, they get an initial value of false and are not updated
until after the doze state is changed.

The reason this matters is because the subscribers in this case are the
quick affordance button views themsellves and they subscribe and
unsubscribe based on their visibility. Hence, they get resubscribed
often, seeing the false value.

The fix in this CL is to give the true initial value to the newly
subscribed instead of just false.

Fix: 249084394
Test: Manually verified the fix. The attached bug doesn't reproduce
after the fix. Also tested with "Control from Locked Device" being set
to true and verified no harm done. Unit test case added.

Change-Id: I93369cc559af4ce266bfaec9372c748c8a353466
parent df2bdd51
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