am 0b9b053c: Merge "Don\'t crash in window manager if we fail getting .apk resources." into jb-dev
* commit '0b9b053ce6fdc48e922b6af37fe747b4ef40324a': Don't crash in window manager if we fail getting .apk resources.
This commit is contained in:
@@ -4147,6 +4147,11 @@ public class WindowManagerService extends IWindowManager.Stub
|
||||
if (theme != 0) {
|
||||
AttributeCache.Entry ent = AttributeCache.instance().get(pkg, theme,
|
||||
com.android.internal.R.styleable.Window);
|
||||
if (ent == null) {
|
||||
// Whoops! App doesn't exist. Um. Okay. We'll just
|
||||
// pretend like we didn't see that.
|
||||
return;
|
||||
}
|
||||
if (ent.array.getBoolean(
|
||||
com.android.internal.R.styleable.Window_windowIsTranslucent, false)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user