public void togglePin(Context context) { this.pinned = !pinned; CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context); h.pinAlbum(path, pinned); }
void changeCoverPath(Context context, @Nullable String coverPath) { this.coverPath = coverPath; CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context); h.setAlbumPhotoPreview(path, coverPath); }
void changeSortingMode(Context context, SortingMode sortingMode) { this.sortingMode = sortingMode.getValue(); CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context); h.setAlbumSortingMode(path, sortingMode.getValue()); }
void changeSortingOrder(Context context, SortingOrder sortingOrder) { this.sortingOrder = sortingOrder.getValue(); CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context); h.setAlbumSortingOrder(path, sortingOrder.getValue()); }
static AlbumSettings getSettings(Context context, Album album) { CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context); return h.getSettings(album.getPath()); }