OSDN Git Service

Relayout windows that handle their own config change.
authorCraig Mautner <cmautner@google.com>
Tue, 12 Nov 2013 22:02:52 +0000 (14:02 -0800)
committerCraig Mautner <cmautner@google.com>
Tue, 12 Nov 2013 22:02:52 +0000 (14:02 -0800)
commit5d9f547720e07a2715d34320a9e11004654cede6
treecb8b2477167e7bd4840ae1c8894e204072702162
parentc481a634f4db6e95bc03b22b72414ba12da99f4b
Relayout windows that handle their own config change.

If a window claims to handle its own configuration change then we
won't destroy and recreate its window on a configuration change.
Normally that recreation triggers the first layout following
orientation change because mHaveFrame is false. Windows that handle
their own configuration changes never got a relayout pass following a
change in orientation.

This change passes the configuration changes that an application
handles into the AppWindowToken. If the app says it handles
orientation or screen size changes then a relayout will occur when the
configuration has changed.

Fixes bug 11647107.

Change-Id: Ie8d49fd050442ebbdcf0b805087894e3a2fc4be9
core/java/android/view/IWindowManager.aidl
services/java/com/android/server/am/ActivityStack.java
services/java/com/android/server/wm/AppWindowToken.java
services/java/com/android/server/wm/WindowManagerService.java
tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
tools/layoutlib/bridge/src/android/view/IWindowManagerImpl.java