use of com.github.pockethub.android.ui.item.gist.GistItem in project PocketHub by pockethub.
the class GistsViewActivity method createIntent.
/**
* Create an intent to show gists with an initial selected Gist
*
* @param items
* @param position
* @return intent
*/
public static Intent createIntent(List<Item> items, int position) {
String[] ids = new String[items.size()];
int index = 0;
for (Item item : items) {
Gist gist = ((GistItem) item).getGist();
ids[index++] = gist.id();
}
return new Builder("gists.VIEW").add(EXTRA_GIST_IDS, (Serializable) ids).add(EXTRA_POSITION, position).toIntent();
}