use of com.github.pockethub.android.ui.item.issue.IssueItem 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);
}
}
use of com.github.pockethub.android.ui.item.issue.IssueItem in project PocketHub by pockethub.
the class SearchIssueListFragment method onItemClick.
@Override
public void onItemClick(@NonNull Item item, @NonNull View view) {
if (item instanceof IssueItem) {
Issue searchIssue = ((IssueItem) item).getIssue();
startActivity(IssuesViewActivity.createIntent(searchIssue, repository));
}
}
Aggregations