summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-11-15 13:22:13 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2010-11-15 13:22:13 -0800
commitdab0014acc9e010a65352a2eaa15bbed309a9c87 (patch)
tree53ab292e8e8a36e803896d51d57855f82a6ab703 /policy
parentdd97f0cb41a6baba9c761f5f05c9d374e29e28e6 (diff)
parent99866c111bd72a6cc9be17b127cd40ec9396ca7d (diff)
downloadframeworks_base-dab0014acc9e010a65352a2eaa15bbed309a9c87.zip
frameworks_base-dab0014acc9e010a65352a2eaa15bbed309a9c87.tar.gz
frameworks_base-dab0014acc9e010a65352a2eaa15bbed309a9c87.tar.bz2
am 99866c11: am 9e291a4b: Merge "Revert "allow all 4 orientations"" into gingerbread
* commit '99866c111bd72a6cc9be17b127cd40ec9396ca7d': Revert "allow all 4 orientations"
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java9
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 7d58e41..8c857da 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -117,7 +117,6 @@ import android.view.animation.AnimationUtils;
import android.media.IAudioService;
import android.media.AudioManager;
-import java.io.File;
import java.util.ArrayList;
/**
@@ -2306,12 +2305,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