summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Gumbel <matthew.k.gumbel@linux.intel.com>2012-11-05 11:21:19 -0800
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-12-25 17:07:31 +0100
commit10d1975ffd0184e2c9818149af706f56bdbecb3d (patch)
treebd6426856dbe2dd61e882509ddff82ecd1f4aafe
parentef728192eedd40c5c146fbcbd62d9324f2ddeb50 (diff)
downloadframeworks_base-10d1975ffd0184e2c9818149af706f56bdbecb3d.tar.gz
frameworks_base-10d1975ffd0184e2c9818149af706f56bdbecb3d.tar.bz2
frameworks_base-10d1975ffd0184e2c9818149af706f56bdbecb3d.zip
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 <matthew.k.gumbel@linux.intel.com>
-rw-r--r--packages/SystemUI/src/com/android/systemui/ImageWallpaper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
index 02d5de8f0eb..b4634abc3b5 100644
--- a/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
+++ b/packages/SystemUI/src/com/android/systemui/ImageWallpaper.java
@@ -706,7 +706,7 @@ public class ImageWallpaper extends WallpaperService {
mEglConfig = chooseEglConfig();
if (mEglConfig == null) {
- throw new RuntimeException("eglConfig not initialized");
+ return false;
}
mEglContext = createContext(mEgl, mEglDisplay, mEglConfig);