OSDN Git Service

The order of child windows is switched
authortakeda.masayuki <takeda.masayuki@sharp.co.jp>
Wed, 12 Dec 2012 02:06:24 +0000 (11:06 +0900)
committerJean-Baptiste Queru <jbq@google.com>
Mon, 8 Jul 2013 18:08:41 +0000 (11:08 -0700)
commit187350915315ded09fd97164bd7e8882e7aaefb3
tree30660bed22c9bffb936a52e3dce4963fa2181fa2
parent2a26547fd391c8038ad9f57fcb51d62fba0ee543
The order of child windows is switched

By calling WindowManagerService#reAddWindowLocked(), the window object
in DisplayContent.mWindows is rearranged. If this window has children,
the window objects belonging to WindowState.mChildWindows are also
rearranged together. At this time, while DisplayContent.mWindows is
arranged in ascending order of Z-Order, WindowState.mChildWindows is
arranged in descending order. Therefore, if children
(= WindowState.mChildWindows) are added to DisplayContent.mWindows
in the original order, the order of children is switched. I think
that children must be sorted before they are added.

Change-Id: I28a506f17fcd99c801a3faa17cca66fffb291596
services/java/com/android/server/wm/WindowState.java