summaryrefslogtreecommitdiffstats
path: root/tests/permission
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-11-12 14:02:52 -0800
committerCraig Mautner <cmautner@google.com>2013-11-12 14:02:52 -0800
commit5d9f547720e07a2715d34320a9e11004654cede6 (patch)
treecb8b2477167e7bd4840ae1c8894e204072702162 /tests/permission
parentc481a634f4db6e95bc03b22b72414ba12da99f4b (diff)
downloadframeworks_base-5d9f547720e07a2715d34320a9e11004654cede6.zip
frameworks_base-5d9f547720e07a2715d34320a9e11004654cede6.tar.gz
frameworks_base-5d9f547720e07a2715d34320a9e11004654cede6.tar.bz2
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
Diffstat (limited to 'tests/permission')
-rw-r--r--tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
index e4c4214..df32ee1 100644
--- a/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
+++ b/tests/permission/src/com/android/framework/permission/tests/WindowManagerPermissionTests.java
@@ -93,7 +93,7 @@ public class WindowManagerPermissionTests extends TestCase {
}
try {
- mWm.addAppToken(0, null, 0, 0, 0, false, false, 0);
+ mWm.addAppToken(0, null, 0, 0, 0, false, false, 0, 0);
fail("IWindowManager.addAppToken did not throw SecurityException as"
+ " expected");
} catch (SecurityException e) {