Merge "Prevent WallpaperManager#getBitmap return recycled bitmap." into sc-v2-dev
This commit is contained in:
@@ -562,7 +562,7 @@ public class WallpaperManager {
|
|||||||
}
|
}
|
||||||
if (returnDefault) {
|
if (returnDefault) {
|
||||||
Bitmap defaultWallpaper = mDefaultWallpaper;
|
Bitmap defaultWallpaper = mDefaultWallpaper;
|
||||||
if (defaultWallpaper == null) {
|
if (defaultWallpaper == null || defaultWallpaper.isRecycled()) {
|
||||||
defaultWallpaper = getDefaultWallpaper(context, which);
|
defaultWallpaper = getDefaultWallpaper(context, which);
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
mDefaultWallpaper = defaultWallpaper;
|
mDefaultWallpaper = defaultWallpaper;
|
||||||
|
|||||||
Reference in New Issue
Block a user