Add place holder rows to wifi slice.

When loading wifi slice, the wifitracker is super slow to scan and
return APs. So we will show up to 3 rows of placeholder in the slice UI.

- When building slice, if there are at least 3 APs, show first 3.
- When there aren't enough APs, show them all and fill the rest of
  placeholder rows.

Bug: 118224581
Test: robotests
Change-Id: Id332f64bfa335543ea406f73b249f93504d63d4f
This commit is contained in:
Fan Zhang
2018-10-23 13:59:59 -07:00
parent db55661271
commit cc88c2fe43
4 changed files with 51 additions and 11 deletions

View File

@@ -213,7 +213,7 @@ public class SliceTester {
for (SliceItem subTitleItem : titleItems) {
if (TextUtils.equals(subTitleItem.getText(), title)) {
hasTitle = true;
assertThat(subTitleItem.getText()).isEqualTo(title);
break;
}
}
}