From 91331d7cf82f5d27107a963a15f581c2a03b0edb Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Wed, 9 Jan 2013 17:31:14 +0530 Subject: 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 --- packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3