use of com.github.pockethub.android.ui.item.issue.IssueDashboardItem in project PocketHub by pockethub.
the class DashboardIssueFragment method onItemClick.
@Override
public void onItemClick(@NonNull Item clickedItem, @NonNull View view) {
if (clickedItem instanceof IssueDashboardItem) {
int position = getListAdapter().getAdapterPosition(clickedItem);
Collection<Issue> issues = new ArrayList<>();
for (Item item : items) {
if (item instanceof IssueDashboardItem) {
issues.add(((IssueItem) item).getIssue());
}
}
startActivityForResult(IssuesViewActivity.createIntent(issues, position), ISSUE_VIEW);
}
}
Aggregations