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>
Tue, 22 Dec 2015 04:13:50 +0000 (12:13 +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 7c725b3..44789ea 100644 (file)
@@ -668,7 +668,7 @@ public class ImageWallpaper extends WallpaperService {
 
             mEglConfig = chooseEglConfig();
             if (mEglConfig == null) {
-                throw new RuntimeException("eglConfig not initialized");
+                return false;
             }
 
             mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);