OSDN Git Service

ImageWallpaper: don't throw-up when EGL init fails
authorMatt Gumbel <matthew.k.gumbel@linux.intel.com>
Mon, 5 Nov 2012 19:21:19 +0000 (11:21 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 25 Sep 2013 02:48:23 +0000 (10:48 +0800)
Just fall back to non-GL path instead.

Change-Id: Icabee5b7cadd49942e9c920a7ff49a54fc8bea9f
For: AXIA-991
Signed-off-by: Matt Gumbel <matthew.k.gumbel@linux.intel.com>
packages/SystemUI/src/com/android/systemui/ImageWallpaper.java

index cdd3d84..83f758f 100644 (file)
@@ -622,7 +622,7 @@ public class ImageWallpaper extends WallpaperService {
     
             mEglConfig = chooseEglConfig();
             if (mEglConfig == null) {
-                throw new RuntimeException("eglConfig not initialized");
+                return false;
             }
             
             mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);