Eleven: ImageCache: Also catch IllegalArgumentException
Looks like on some devices, an IAE might be thrown with
"Volume external_primary not found", so catch that as well
Change-Id: I3706079a1b31b4591a2c2f3c0b9103f5ded711b2
diff --git a/src/org/lineageos/eleven/cache/ImageCache.java b/src/org/lineageos/eleven/cache/ImageCache.java
index d6ee8a5..fa86e76 100644
--- a/src/org/lineageos/eleven/cache/ImageCache.java
+++ b/src/org/lineageos/eleven/cache/ImageCache.java
@@ -454,6 +454,8 @@
// Log.e(TAG, "IllegalStateException - getArtworkFromFile - ", e);
} catch (final FileNotFoundException e) {
// Log.e(TAG, "FileNotFoundException - getArtworkFromFile - ", e);
+ } catch (final IllegalArgumentException e) {
+ // Log.e(TAG, "IllegalArgumentException - getArtworkFromFile - ", e);
} catch (final OutOfMemoryError evict) {
// Log.e(TAG, "OutOfMemoryError - getArtworkFromFile - ", evict);
evictAll();