Bug 827250 - Wallpaper over the WallpaperManager crash r=kats a=android-only

This commit is contained in:
Mark Finkle 2013-01-21 17:32:00 -05:00
Родитель ece8d5fa8e
Коммит 531d730653
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1284,6 +1284,9 @@ abstract public class GeckoApp
@Override
protected Boolean doInBackground(Void... params) {
WallpaperManager mgr = WallpaperManager.getInstance(mAppContext);
if (mgr == null) {
return false;
}
// Determine the ideal width and height of the wallpaper
// for the device
@ -1297,7 +1300,7 @@ abstract public class GeckoApp
// the ideal width and height from the device's display
// resolution (excluding the decorated area)
if(idealWidth <= 0 || idealHeight <= 0) {
if (idealWidth <= 0 || idealHeight <= 0) {
int orientation;
Display defaultDisplay = getWindowManager().getDefaultDisplay();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {