Add contextual card dismissal implementation

When users clcik on the remove button in dismissal view, the card should
be marked as dismissed in the database, and the UI should be refreshed.

Bug: 113783548, 119594116
Test: robotests
Change-Id: I980600c4c0753ad5abc52ae63bac7196a4b818f1
This commit is contained in:
Emily Chuang
2018-11-14 14:57:35 +08:00
committed by Yi-Ling Chuang
parent 4942fd2aff
commit 1e24cb02dc
8 changed files with 159 additions and 15 deletions

View File

@@ -114,7 +114,7 @@ public class ControllerRendererPool {
if (ConditionContextualCardController.class == clz) {
return new ConditionContextualCardController(context);
} else if (SliceContextualCardController.class == clz) {
return new SliceContextualCardController();
return new SliceContextualCardController(context);
} else if (LegacySuggestionContextualCardController.class == clz) {
return new LegacySuggestionContextualCardController(context);
}