From 62a6f626da328889475b35647f76bf439999e28a Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 4 Jun 2012 15:40:31 -0700 Subject: Revert "Settings: "Rotation lock" retains existing orientation." Bug: 6523269 This reverts commit 523d5a6e0495580206ee38e5072e5aef8063e806. --- src/com/android/settings/DisplaySettings.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/settings/DisplaySettings.java b/src/com/android/settings/DisplaySettings.java index e8bd11d..df80f85 100644 --- a/src/com/android/settings/DisplaySettings.java +++ b/src/com/android/settings/DisplaySettings.java @@ -37,6 +37,7 @@ import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.util.Log; import android.view.IWindowManager; +import android.view.Surface; import com.android.settings.DreamSettings; @@ -259,7 +260,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements if (mAccelerometer.isChecked()) { wm.thawRotation(); } else { - wm.freezeRotation(-1); + wm.freezeRotation(Surface.ROTATION_0); } } catch (RemoteException exc) { Log.w(TAG, "Unable to save auto-rotate setting"); -- cgit v1.1