am 176a8a8b: am 0b9b053c: Merge "Don\'t crash in window manager if we fail getting .apk resources." into jb-dev
* commit '176a8a8b7cba2654f50617b14a841ef977b95b11': Don't crash in window manager if we fail getting .apk resources.
This commit is contained in:
@@ -4156,6 +4156,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