use of com.simplecity.amp_library.model.AdaptableItem in project Shuttle by timusus.
the class FolderFragment method changeBreadcrumbPath.
public void changeBreadcrumbPath() {
List<AdaptableItem> breadcrumbViews = Stream.of(mAdapter.items).filter(adaptableItem -> adaptableItem instanceof BreadcrumbsView).collect(Collectors.toList());
for (AdaptableItem adaptableItem : breadcrumbViews) {
((BreadcrumbsView) adaptableItem).setBreadcrumbsPath(mCurrentDir);
mAdapter.notifyItemChanged(mAdapter.items.indexOf(adaptableItem));
}
}
use of com.simplecity.amp_library.model.AdaptableItem in project Shuttle by timusus.
the class FolderFragment method showCheckboxes.
public void showCheckboxes(boolean show) {
mShowCheckboxes = show;
List<AdaptableItem> folderViews = Stream.of(mAdapter.items).filter(adaptableItem -> adaptableItem instanceof FolderView).collect(Collectors.toList());
for (AdaptableItem adaptableItem : folderViews) {
((FolderView) adaptableItem).setShowCheckboxes(mShowCheckboxes);
mAdapter.notifyItemChanged(mAdapter.items.indexOf(adaptableItem));
}
}
use of com.simplecity.amp_library.model.AdaptableItem in project Shuttle by timusus.
the class ItemAdapter method moveItem.
/**
* Moves an item from {@param fromPosition} to {@param toPosition}
*
* @param fromPosition int
* @param toPosition int
*/
public void moveItem(int fromPosition, int toPosition) {
final AdaptableItem model = items.remove(fromPosition);
items.add(toPosition, model);
notifyItemMoved(fromPosition, toPosition);
}
Aggregations