Workaround for wallpaper crash. (5191436)

- Adding a little time to the tab transition

Change-Id: Ia7615d93f471845e568742df828cde43c1b917c4
This commit is contained in:
Winson Chung committed 2011-08-22 17:30:48 -07:00
1 parent 30a22f32b0
commit f8742be8ab
2 files changed
+10 -4

No files matched your search

@@ -307,9 +307,15 @@ public class WallpaperChooserDialogFragment extends DialogFragment implements
mBitmap.recycle();
}
mBitmap = b;
mWallpaperDrawable.setBitmap(b);
getView().postInvalidate();
View v = getView();
if (v != null) {
mBitmap = b;
mWallpaperDrawable.setBitmap(b);
v.postInvalidate();
} else {
mBitmap = null;
mWallpaperDrawable.setBitmap(null);
}
mLoader = null;
} else {
b.recycle();