OSDN Git Service

Fix conditionals not show up in homepage
authorMill Chen <millchen@google.com>
Wed, 3 Apr 2019 00:52:33 +0000 (17:52 -0700)
committerMill Chen <millchen@google.com>
Thu, 11 Apr 2019 21:43:58 +0000 (14:43 -0700)
commitf23b3b84d30009a7c3c25e1415710b5259130364
tree57f82ea7c1c3941b7f713685fa8e325fd4dde55c
parentcab405d84da3a8ce4341d36909f37e65d00b6495
Fix conditionals not show up in homepage

Settings will not refresh conditionals status if there is no condition
card in homepage when Settings homepage gets in/out of window focus.
Whether or not there are conditional cards in the homepage, Settings
should always refresh conditional cards.

Fixes: 129725565
Test: robotests, visual
Change-Id: I1ed309d3fd4f7a2ba911097ea6b049c2aff48c8a
src/com/android/settings/homepage/contextualcards/ContextualCardManager.java
tests/robotests/src/com/android/settings/homepage/contextualcards/ContextualCardManagerTest.java