зеркало из https://github.com/mozilla/gecko-dev.git
Bug 827250 - Wallpaper over the WallpaperManager crash r=kats a=android-only
This commit is contained in:
Родитель
ece8d5fa8e
Коммит
531d730653
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче