summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2013-01-09 17:31:14 +0530
committerAmit Pundir <amit.pundir@linaro.org>2013-02-13 17:08:27 +0530
commitc56d3ea2ab9e2ae2d41856a046eb564ccaf8e776 (patch)
treecf2e389d28f09ec32392da819e880c151134e678
parenta44dbe5223fdd0fcb1889c5d1df28232e186a52a (diff)
downloadbase-c56d3ea2ab9e2ae2d41856a046eb564ccaf8e776.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. Change-Id: I1d5a37ff129cdd01c3f98b0cebb54d55469206d2
-rw-r--r--packages/SystemUI/src/com/android/systemui/ImageWallpaper.java2
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;