Skip to content
Commit 4d3511b9 authored by Winson Chung's avatar Winson Chung
Browse files

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
parent be0b165b
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