Merge "Fix issue #22802691: APR: NPE in ActivityRecord" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b310c89453
@@ -530,13 +530,13 @@ final class ActivityRecord {
|
||||
|
||||
AttributeCache.Entry ent = AttributeCache.instance().get(packageName,
|
||||
realTheme, com.android.internal.R.styleable.Window, userId);
|
||||
final boolean translucent = ent.array.getBoolean(
|
||||
final boolean translucent = ent != null && (ent.array.getBoolean(
|
||||
com.android.internal.R.styleable.Window_windowIsTranslucent, false)
|
||||
|| (!ent.array.hasValue(
|
||||
com.android.internal.R.styleable.Window_windowIsTranslucent)
|
||||
&& ent.array.getBoolean(
|
||||
com.android.internal.R.styleable.Window_windowSwipeToDismiss,
|
||||
false));
|
||||
false)));
|
||||
fullscreen = ent != null && !ent.array.getBoolean(
|
||||
com.android.internal.R.styleable.Window_windowIsFloating, false)
|
||||
&& !translucent;
|
||||
|
||||
Reference in New Issue
Block a user