From 769b0af00bb1c5fc4a725a27ecc0da87774e52ef Mon Sep 17 00:00:00 2001 From: Matt Gumbel Date: Mon, 5 Nov 2012 11:21:19 -0800 Subject: [PATCH] ImageWallpaper: don't throw-up when EGL init fails Just fall back to non-GL path instead. Change-Id: Icabee5b7cadd49942e9c920a7ff49a54fc8bea9f For: AXIA-991 Signed-off-by: Matt Gumbel --- packages/SystemUI/src/com/android/systemui/ImageWallpaper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java index 907a79e723ac..a01a0148285a 100644 --- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java +++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java @@ -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); -- 2.11.0