use of com.android.tools.idea.npw.TemplateEntry in project android by JetBrains.
the class NewProjectWizardFixture method chooseActivity.
public NewProjectWizardFixture chooseActivity(@NotNull String activity) {
JListFixture listFixture = new JListFixture(robot(), robot().finder().findByType(target(), ASGallery.class));
listFixture.replaceCellReader((jList, index) -> {
TemplateEntry templateEntry = ((Optional<TemplateEntry>) jList.getModel().getElementAt(index)).orElse(null);
return templateEntry == null ? "none" : templateEntry.getTitle();
});
listFixture.clickItem(activity);
return this;
}
Aggregations