Search in sources :

Example 1 with IgnorableDescriptorUiAdapter

use of com.italankin.lnch.feature.home.adapter.IgnorableDescriptorUiAdapter 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);
}
Also used : AppDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.AppDescriptorUiAdapter) DeepShortcutDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.DeepShortcutDescriptorUiAdapter) IgnorableDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.IgnorableDescriptorUiAdapter) PinnedShortcutDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.PinnedShortcutDescriptorUiAdapter) IntentDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.IntentDescriptorUiAdapter) FolderDescriptorUiAdapter(com.italankin.lnch.feature.home.adapter.FolderDescriptorUiAdapter)

Aggregations

AppDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.AppDescriptorUiAdapter)1 DeepShortcutDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.DeepShortcutDescriptorUiAdapter)1 FolderDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.FolderDescriptorUiAdapter)1 IgnorableDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.IgnorableDescriptorUiAdapter)1 IntentDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.IntentDescriptorUiAdapter)1 PinnedShortcutDescriptorUiAdapter (com.italankin.lnch.feature.home.adapter.PinnedShortcutDescriptorUiAdapter)1