OSDN Git Service

Make sure OutOfMemoryError is handled by WallpaperManager
authorJohan Alfven <johan.alfven@sonyericsson.com>
Thu, 2 Sep 2010 12:26:54 +0000 (14:26 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 5 Aug 2011 08:09:41 +0000 (16:09 +0800)
commitc73325ecc930e65e6eef536bbde57b80bd45898b
tree26def505a48ee44a54b5ff73a85f52d7a91e5092
parent206a274b1ef41e7a3f0b66205c2107d7ca492822
Make sure OutOfMemoryError is handled by WallpaperManager

Make sure exception OutOfMemoryError is handled when calling
BitmapFactory.decodeFileDescriptor and BitmapFactory.decodeStream
to avoid crash in the system server.

Change-Id: I954a6388d1225dab86d2617ab0602154b2a7f493
core/java/android/app/WallpaperManager.java