diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2013-07-25 12:21:36 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2013-08-08 00:53:18 +0530 |
commit | ae9b99d33ebfd8b03b615ceefa859185c1d5d3f8 (patch) | |
tree | 281893901d08547c4120761e9a265c9358aadf7f | |
parent | 5c731bb6f880ded161e8de04a133ac3c0f9172d2 (diff) | |
download | base-ae9b99d33ebfd8b03b615ceefa859185c1d5d3f8.tar.gz |
load non opengles wallpapers for platforms without hardware graphics
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.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-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 cdd3d84a96fb..9d32ec40706e 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -59,7 +59,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; |