OSDN Git Service

ImageWallpaper: don't throw-up when EGL init fails
[android-x86/frameworks-base.git] / 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);