frameworks/base
修訂 | a1e1f7904a9c0f8a0ac3bb204ad3021cca7b0a6b (tree) |
---|---|
時間 | 2014-08-27 19:18:37 |
作者 | Matt Gumbel <matthew.k.gumbel@linu...> |
Commiter | Chih-Wei Huang |
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>
@@ -689,7 +689,7 @@ public class ImageWallpaper extends WallpaperService { | ||
689 | 689 | |
690 | 690 | mEglConfig = chooseEglConfig(); |
691 | 691 | if (mEglConfig == null) { |
692 | - throw new RuntimeException("eglConfig not initialized"); | |
692 | + return false; | |
693 | 693 | } |
694 | 694 | |
695 | 695 | mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); |