コード例 #1
0
ファイル: AlbumSettings.java プロジェクト: HoraApps/LeafPic
 public void togglePin(Context context) {
   this.pinned = !pinned;
   CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context);
   h.pinAlbum(path, pinned);
 }
コード例 #2
0
ファイル: AlbumSettings.java プロジェクト: HoraApps/LeafPic
 void changeCoverPath(Context context, @Nullable String coverPath) {
   this.coverPath = coverPath;
   CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context);
   h.setAlbumPhotoPreview(path, coverPath);
 }
コード例 #3
0
ファイル: AlbumSettings.java プロジェクト: HoraApps/LeafPic
 void changeSortingMode(Context context, SortingMode sortingMode) {
   this.sortingMode = sortingMode.getValue();
   CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context);
   h.setAlbumSortingMode(path, sortingMode.getValue());
 }
コード例 #4
0
ファイル: AlbumSettings.java プロジェクト: HoraApps/LeafPic
 void changeSortingOrder(Context context, SortingOrder sortingOrder) {
   this.sortingOrder = sortingOrder.getValue();
   CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context);
   h.setAlbumSortingOrder(path, sortingOrder.getValue());
 }
コード例 #5
0
ファイル: AlbumSettings.java プロジェクト: HoraApps/LeafPic
 static AlbumSettings getSettings(Context context, Album album) {
   CustomAlbumsHelper h = CustomAlbumsHelper.getInstance(context);
   return h.getSettings(album.getPath());
 }