diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-06-04 15:40:31 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-06-05 17:45:35 -0700 |
commit | 62a6f626da328889475b35647f76bf439999e28a (patch) | |
tree | 2c22d39a3fa826bd4dd6010160025775bb553a03 /src | |
parent | 56c58d5aef8186a0114be206a2f81216f8c19cf3 (diff) | |
download | packages_apps_settings-62a6f626da328889475b35647f76bf439999e28a.zip packages_apps_settings-62a6f626da328889475b35647f76bf439999e28a.tar.gz packages_apps_settings-62a6f626da328889475b35647f76bf439999e28a.tar.bz2 |
Revert "Settings: "Rotation lock" retains existing orientation."
Bug: 6523269
This reverts commit 523d5a6e0495580206ee38e5072e5aef8063e806.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/DisplaySettings.java | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |