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>
Thu, 5 May 2016 17:50:20 +0000 (01:50 +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 8556afc..a2c2220 100644 (file)
@@ -699,7 +699,7 @@ public class ImageWallpaper extends WallpaperService {
 
             mEglConfig = chooseEglConfig();
             if (mEglConfig == null) {
-                throw new RuntimeException("eglConfig not initialized");
+                return false;
             }
 
             mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);