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>
Sun, 10 Dec 2017 15:41:03 +0000 (23:41 +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 907a79e..a01a014 100644 (file)
@@ -778,7 +778,7 @@ public class ImageWallpaper extends WallpaperService {
 
             mEglConfig = chooseEglConfig();
             if (mEglConfig == null) {
-                throw new RuntimeException("eglConfig not initialized");
+                return false;
             }
 
             mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);