Force update sysui flags after binding to overview service
- There is a rare chance where SysUI state can change prior to
the overview service being connected in which the sysui state
would not be passed to launcher, and when the service connects,
the updating of the sysui state could trigger no changes (due
to what it thinks is no changes in the flags).
ie:
sysui or launcher crashes
> OPS registers callbacks but service is not yet connected
so initial callback does nothing (only for sysui crash)
> sysui notification state changes, updates sysui state,
notifies OPS via callback, but still not yet connected
> OPS service connects, triggers update of all relevant
states, but notifications is already in that state, so
sysui state skips callbacks to OPS
Change-Id: I7635ed19bfc2767d380703a52b8fb623f8a43e21
Bug: 146964271
Test: Force delay OPS service connection, change sysui state
and ensure launcher is still notified
2 files changed