Search in sources :

Example 1 with ShortcutsAdapter

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);
}
Also used : ShortcutsAdapter(dev.dworks.apps.anexplorer.adapter.ShortcutsAdapter) RootInfo(dev.dworks.apps.anexplorer.model.RootInfo)

Aggregations

ShortcutsAdapter (dev.dworks.apps.anexplorer.adapter.ShortcutsAdapter)1 RootInfo (dev.dworks.apps.anexplorer.model.RootInfo)1