OSDN Git Service

Reload active profiles when constructing WorkModeTile
authorRubin Xu <rubinxu@google.com>
Mon, 18 Jan 2016 11:02:18 +0000 (11:02 +0000)
committerRubin Xu <rubinxu@google.com>
Mon, 18 Jan 2016 11:02:18 +0000 (11:02 +0000)
commit0e4418f1329dd765dd8eed4927e2c04504442839
treeb792e2ab85622ec0878a33b7ffe874b42d09749c
parentb68d2d5b68dc58fb7b75ce94af74de58a1b9d3f9
Reload active profiles when constructing WorkModeTile

There seems to cases when after QSTile is constructed, handleUpdateState()
is called without setListening(true) being called first. In the WorkModeTile
case it leads to the tile removing itself. The fix is to reload active profile
list in the constructor so handleUpdateState() would not remove itself because
it thinks there is no active profile.

Bug: 26178050
Change-Id: I3516c85ffcf00730c3afd67f9fdec1d41c781c0a
packages/SystemUI/src/com/android/systemui/qs/tiles/WorkModeTile.java