Disable sliceView scrolling in the homepage.

Set isScrollable() to false so as to have the "see more" option.

Fixes: 117626982
Test: robotest
Change-Id: Ie0b8a207fb0c1eff41a98cc897e5f8cf29ccce0a
This commit is contained in:
Emily Chuang
2018-10-11 18:23:45 +08:00
parent 45d8fbe54f
commit e7a6d1ca1e
2 changed files with 13 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ public class SliceContextualCardRenderer implements ContextualCardRenderer,
return;
}
cardHolder.sliceView.setScrollable(false);
cardHolder.sliceView.setTag(uri);
//TODO(b/114009676): We will soon have a field to decide what slice mode we should set.
cardHolder.sliceView.setMode(SliceView.MODE_LARGE);