diff options
| author | Craig Mautner <cmautner@google.com> | 2013-08-01 10:06:34 -0700 |
|---|---|---|
| committer | Craig Mautner <cmautner@google.com> | 2013-08-02 16:23:58 -0700 |
| commit | 46ac6fa614131d567bed93d1d2067d765ecef85d (patch) | |
| tree | 720caf051afb40d98ec279bc19022efc5037ffa5 /core/java/android/view/WindowManagerPolicy.java | |
| parent | cb92a8d9428c2e4a9f038cd5f10e9d61bf265cd4 (diff) | |
Add force default orientation.
Devices can be configured to remain in their default landscape or
portrait orientation by setting config_forceDefaultOrientation true
in overlay/.../values/config.xml.
Activities that desire to run in the non-default orientation are
supported by creating a logical display within the physical display.
Transitions to and from the activity perform a crossfade rather than
the normal rotation animation.
Also, improve SurfaceTrace debug output.
Fixes bug 9695710.
Change-Id: I053e136cd2b9ae200028595f245b6ada5927cfe9
Diffstat (limited to 'core/java/android/view/WindowManagerPolicy.java')
| -rw-r--r-- | core/java/android/view/WindowManagerPolicy.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/WindowManagerPolicy.java b/core/java/android/view/WindowManagerPolicy.java index c26482b33ff5..e11666217505 100644 --- a/core/java/android/view/WindowManagerPolicy.java +++ b/core/java/android/view/WindowManagerPolicy.java @@ -478,6 +478,11 @@ public interface WindowManagerPolicy { WindowManagerFuncs windowManagerFuncs); /** + * @return true if com.android.internal.R.bool#config_forceDefaultOrientation is true. + */ + public boolean isDefaultOrientationForced(); + + /** * Called by window manager once it has the initial, default native * display dimensions. */ |
