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