diff options
author | Mathias Agopian <mathias@google.com> | 2010-11-15 13:19:43 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-11-15 13:19:43 -0800 |
commit | 99866c111bd72a6cc9be17b127cd40ec9396ca7d (patch) | |
tree | 908fc4e9ccb46324f57f34d09e31f66db23a26bc /policy/src | |
parent | b9d3e35907e6b7e2c766f4813ab2e0463c920c37 (diff) | |
parent | 9e291a4b9922719165145434217e100e2118860d (diff) | |
download | frameworks_base-99866c111bd72a6cc9be17b127cd40ec9396ca7d.zip frameworks_base-99866c111bd72a6cc9be17b127cd40ec9396ca7d.tar.gz frameworks_base-99866c111bd72a6cc9be17b127cd40ec9396ca7d.tar.bz2 |
am 9e291a4b: Merge "Revert "allow all 4 orientations"" into gingerbread
* commit '9e291a4b9922719165145434217e100e2118860d':
Revert "allow all 4 orientations"
Diffstat (limited to 'policy/src')
-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 |