diff options
author | Mathias Agopian <mathias@google.com> | 2010-11-13 22:01:50 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-11-13 22:02:13 -0800 |
commit | f9ce879e5cdc7e36e5f56cfcd7675036e79b3921 (patch) | |
tree | 254972b5cc69c53f37243c205c64843575caa5aa /policy | |
parent | e2ef2c10e76a4648a27ce4c392eb7b9b3589b9f7 (diff) | |
download | frameworks_base-f9ce879e5cdc7e36e5f56cfcd7675036e79b3921.zip frameworks_base-f9ce879e5cdc7e36e5f56cfcd7675036e79b3921.tar.gz frameworks_base-f9ce879e5cdc7e36e5f56cfcd7675036e79b3921.tar.bz2 |
Revert "allow all 4 orientations"
This reverts commit 1d8d0159e72556ea20aba325fb27d8470282e1ba.
Change-Id: Iffd8cbad98ff7e498032df1d226f4fbc7cde95b1
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index a277bcb..43936a4 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -111,7 +111,6 @@ import android.view.animation.AnimationUtils; import android.media.IAudioService; import android.media.AudioManager; -import java.io.File; import java.util.ArrayList; /** @@ -2115,12 +2114,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { return getCurrentPortraitRotation(lastRotation); } - if (new File("/system/etc/allow_all_orientations").exists()) { - mOrientationListener.setAllow180Rotation(true); - } else { - mOrientationListener.setAllow180Rotation( - orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); - } + mOrientationListener.setAllow180Rotation( + orientation == ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR); // case for nosensor meaning ignore sensor and consider only lid // or orientation sensor disabled |