use of dev.dworks.apps.anexplorer.adapter.ShortcutsAdapter in project AnExplorer by 1hakr.
the class HomeFragment method showShortcuts.
private void showShortcuts() {
ArrayList<RootInfo> data = roots.getShortcutsInfo();
mShortcutsAdapter = new ShortcutsAdapter(getActivity(), data);
mShortcutsAdapter.setOnItemClickListener(new ShortcutsAdapter.OnItemClickListener() {
@Override
public void onItemClick(ShortcutsAdapter.ViewHolder item, int position) {
openRoot(mShortcutsAdapter.getItem(position));
}
});
mShortcutsRecycler.setAdapter(mShortcutsAdapter);
}
Aggregations