diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-09-23 18:28:01 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-23 18:28:01 -0700 |
commit | 4c253119db0ce753e46ec3809b54b9e357d363db (patch) | |
tree | b0737e61622e7184ae35abf71702c9bb87e5def4 /core/java/android/view/WindowManagerPolicy.java | |
parent | 87c9ce06259976186187b02b356a1d2fefbc44e3 (diff) | |
parent | c0347aa19f354a8e1ff4fcd5372b134c0c7c16ad (diff) | |
download | frameworks_base-4c253119db0ce753e46ec3809b54b9e357d363db.zip frameworks_base-4c253119db0ce753e46ec3809b54b9e357d363db.tar.gz frameworks_base-4c253119db0ce753e46ec3809b54b9e357d363db.tar.bz2 |
Merge "Prevent unintended rotations. Bug: 4981385"
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
-rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index 9c7b2a9..4f67675 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -881,6 +881,13 @@ public interface WindowManagerPolicy { public boolean rotationHasCompatibleMetricsLw(int orientation, int rotation); /** + * Called by the window manager when the rotation changes. + * + * @param rotation The new rotation. + */ + public void setRotationLw(int rotation); + + /** * Called when the system is mostly done booting to determine whether * the system should go into safe mode. */ |