Merge "Revert "allow all 4 orientations"" into gingerbread

This commit is contained in:
Mathias Agopian
2010-11-15 13:14:50 -08:00
committed by Android (Google) Code Review

View File

@@ -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