use of com.italankin.lnch.feature.home.adapter.FolderDescriptorUiAdapter in project lnch by italankin.
the class AppsFragment method setItems.
private void setItems(Update update) {
if (adapter == null) {
adapter = new HomeAdapter.Builder(getContext()).add(new AppDescriptorUiAdapter(this)).add(new IgnorableDescriptorUiAdapter()).add(new FolderDescriptorUiAdapter(this)).add(new PinnedShortcutDescriptorUiAdapter(this)).add(new IntentDescriptorUiAdapter(this)).add(new DeepShortcutDescriptorUiAdapter(this)).recyclerView(list).setHasStableIds(true).create();
adapter.updateUserPrefs(update.userPrefs);
}
adapter.setDataset(update.items);
list.setVisibility(View.VISIBLE);
}
Aggregations