diff --git a/gallery/src/main/java/cc/winboll/studio/gallery/MainActivity.java b/gallery/src/main/java/cc/winboll/studio/gallery/MainActivity.java index 0c64e6b..3cfabaf 100644 --- a/gallery/src/main/java/cc/winboll/studio/gallery/MainActivity.java +++ b/gallery/src/main/java/cc/winboll/studio/gallery/MainActivity.java @@ -194,7 +194,12 @@ private void loadAlbums() { String coverPath = coverDbHelper.getCover(albumPath); Uri coverUri = null; if (coverPath != null) { - coverUri = getUriFromPath(coverPath); + File coverFile = new File(coverPath); + if (coverFile.exists()) { + coverUri = Uri.fromFile(coverFile); + } else { + coverUri = getUriFromPath(coverPath); + } } if (coverUri == null) { ArrayList images = getImagesInFolder(albumPath);