Add dismissal mechanism for contextual cards.
In the homepage, we should allow cards to be dismissed. - Implement card flipping upon card long pressing. Bug: 113783548 Test: robotests, visual Change-Id: I2ddb498321ba5c5078d6944aa2ef32f1386bdb10
This commit is contained in:
@@ -126,7 +126,8 @@ public class ControllerRendererPool {
|
||||
if (ConditionContextualCardRenderer.class == clz) {
|
||||
return new ConditionContextualCardRenderer(context, this /* controllerRendererPool */);
|
||||
} else if (SliceContextualCardRenderer.class == clz) {
|
||||
return new SliceContextualCardRenderer(context, lifecycleOwner);
|
||||
return new SliceContextualCardRenderer(context, lifecycleOwner,
|
||||
this /* controllerRendererPool */);
|
||||
} else if (LegacySuggestionContextualCardRenderer.class == clz) {
|
||||
return new LegacySuggestionContextualCardRenderer(context,
|
||||
this /* controllerRendererPool */);
|
||||
|
Reference in New Issue
Block a user