Allow opaque windows to become translucent.

Bug 13624779

Change-Id: I0c4885f227751edf96091d852c4bd3a729f1f5a7
This commit is contained in:
George Mount
2014-03-24 13:43:48 -07:00
parent 1d22bd1986
commit 913487ceca

View File

@@ -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;