Skip to content

Commit

Permalink
Issue #168 - Images aren't loaded after "Clear Cache" in app info
Browse files Browse the repository at this point in the history
  • Loading branch information
nostra13 committed Feb 9, 2013
1 parent cd91558 commit 7b0b574
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,11 @@ private Bitmap decodeWithOOMHandling(URI imageUri) throws IOException {
}

private void saveImageOnDisc(File targetFile) throws IOException, URISyntaxException {
File cacheDir = targetFile.getParentFile();
if (!cacheDir.exists()) {
cacheDir.mkdirs();
}

int width = configuration.maxImageWidthForDiscCache;
int height = configuration.maxImageHeightForDiscCache;
if (width > 0 || height > 0) {
Expand Down

1 comment on commit 7b0b574

@Azarnik
Copy link

@Azarnik Azarnik commented on 7b0b574 Feb 3, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, after "clear cache", we have an error: "mkdir failed: EBUSY (Device or resource busy)".
So folder isn't created.

Please sign in to comment.