diff --git a/services/core/java/com/android/server/am/ActivityRecord.java b/services/core/java/com/android/server/am/ActivityRecord.java index 77f5c59660cf8..eb8a125340e90 100644 --- a/services/core/java/com/android/server/am/ActivityRecord.java +++ b/services/core/java/com/android/server/am/ActivityRecord.java @@ -522,13 +522,6 @@ final class ActivityRecord { if (fullscreen == toOpaque) { return false; } - AttributeCache.Entry ent = - AttributeCache.instance().get(packageName, realTheme, styleable.Window, userId); - if (ent == null - || !ent.array.getBoolean(styleable.Window_windowIsTranslucent, false) - || ent.array.getBoolean(styleable.Window_windowIsFloating, false)) { - return false; - } // Keep track of the number of fullscreen activities in this task. task.numFullscreen += toOpaque ? +1 : -1;