OSDN Git Service

Fix conditional cards disappeared from contextual homepage
authorMill Chen <millchen@google.com>
Wed, 28 Nov 2018 08:35:25 +0000 (16:35 +0800)
committerMill Chen <millchen@google.com>
Thu, 29 Nov 2018 02:00:13 +0000 (10:00 +0800)
commite44d953a25e713cedd719570ff7fa83193dc8f1c
treefd91133ecb5b084daf971a17946937f41fa98c81
parent926571dc29574fa9a6d828ec80b556e33a490ef8
Fix conditional cards disappeared from contextual homepage

This symptom only occurred in the case of more than 3 conditional cards
and no suggestion cards in homepage. It is caused by incompletely keeping
conditional cards. So adding missing card types makes conditional cards
be kept correctly.

Bug: 120115919
Test: robotest
Change-Id: Ic67c0a813de4f966c164bf92e4d4d64debcf95be
src/com/android/settings/homepage/contextualcards/ContextualCardManager.java
tests/robotests/src/com/android/settings/homepage/contextualcards/ContextualCardManagerTest.java