Cache OutOfMemoryError for BitmapHelper
This commit is contained in:
1 parent
d9f56830a4
commit
62d805508f
1 file changed
+2
@@ -35,6 +35,8 @@ public class BitmapHelper implements ValueHelper<Bitmap> {
|
||||
try {
|
||||
isPipe.obtain();
|
||||
return BitmapFactory.decodeStream(isPipe.open());
|
||||
} catch (OutOfMemoryError e) {
|
||||
return null;
|
||||
} catch (IOException e) {
|
||||
return null;
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user