diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2013-01-09 17:31:14 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2013-01-09 17:35:17 +0530 |
commit | 91331d7cf82f5d27107a963a15f581c2a03b0edb (patch) | |
tree | bc6f81bb783587897b9d6fbc235fa102752595f3 | |
parent | bb1c3ac52450746330a1f11224253d1829f1791c (diff) | |
download | base-linaro_android_4.2.1.tar.gz |
load non opengles wallpapers for platforms without hardware graphicslinaro_android_4.2.1
Platforms without a hardware graphics, frequently get
"Unfortunately, System UI Crashed" pop-up message on boot-up, which
is due to an Android Runtime Exception
"java.lang.RuntimeException: eglConfig not initialized" when SystemUI
fail to load OpenGLES wallpapers.
This patch make sure that Android runtime checks for GPU availability
(by checking a build time property "ro.nohardwaregfx") before loading
opengles wallpapers.
Change-Id: I1d5a37ff129cdd01c3f98b0cebb54d55469206d2
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index 9da883a7f4c7..0250eb7f3ec0 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -61,7 +61,7 @@ public class ImageWallpaper extends WallpaperService { private static final String PROPERTY_KERNEL_QEMU = "ro.kernel.qemu"; static final boolean FIXED_SIZED_SURFACE = true; - static final boolean USE_OPENGL = true; + static final boolean USE_OPENGL = "false".equals(SystemProperties.get("ro.nohardwaregfx", "false")); WallpaperManager mWallpaperManager; |