Always assign layer when restacking special windows.
In assignAndIncreaseLayerIfNeeded we need to always restack the special windows, even if we are stacking them downwards, otherwise they could be left at too high of a value from a previous pass. This check was added by me originally, as a now revealed poorly thought out attempt to avoid changing existing behavior too much. Bug: 28139028 Change-Id: I305499e194f2c6bcf7a38c80af1e64bd1fc20943
This commit is contained in:
@@ -218,7 +218,7 @@ public class WindowLayersController {
|
||||
}
|
||||
|
||||
private int assignAndIncreaseLayerIfNeeded(WindowState win, int layer) {
|
||||
if (win != null && layer > win.mLayer) {
|
||||
if (win != null) {
|
||||
assignAnimLayer(win, layer);
|
||||
// Make sure we leave space inbetween normal windows for dims and such.
|
||||
layer += WINDOW_LAYER_MULTIPLIER;
|
||||
|
||||
Reference in New Issue
Block a user