Commit 9f674cf7 authored by Donald's avatar Donald

fix set preview on hidden albums

parent be055ceb
......@@ -206,12 +206,14 @@ public class HandlingAlbums {
}
public boolean loadPreviewHiddenAlbums() {
CustomAlbumsHandler h = new CustomAlbumsHandler(context);
HiddenPhotosHandler db = new HiddenPhotosHandler(context);
if (db.getPhotosCount() == 0)
db.loadHiddenALbums();
dispAlbums = db.getAlbums();
for (Album dispAlbum : dispAlbums) {
dispAlbum.setCoverPath(h.getPhotPrevieAlbum(dispAlbum.Path));
dispAlbum.photos = db.getFirstPhotosByAlbum(dispAlbum.Path);
}
db.close();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment