frameworks/base
修訂 | fba1b1226c7fe0c043647bfdf7661e15ddfef46e (tree) |
---|---|
時間 | 2013-09-25 11:48:23 |
作者 | 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>
@@ -622,7 +622,7 @@ public class ImageWallpaper extends WallpaperService { | ||
622 | 622 | |
623 | 623 | mEglConfig = chooseEglConfig(); |
624 | 624 | if (mEglConfig == null) { |
625 | - throw new RuntimeException("eglConfig not initialized"); | |
625 | + return false; | |
626 | 626 | } |
627 | 627 | |
628 | 628 | mEglContext = createContext(mEgl, mEglDisplay, mEglConfig); |