Revert "Settings: "Rotation lock" retains existing orientation."

Bug: 6523269
This reverts commit 523d5a6e04.
This commit is contained in:
Jeff Brown
2012-06-04 15:40:31 -07:00
parent 56c58d5aef
commit 62a6f626da

View File

@@ -37,6 +37,7 @@ import android.provider.Settings;
import android.provider.Settings.SettingNotFoundException; import android.provider.Settings.SettingNotFoundException;
import android.util.Log; import android.util.Log;
import android.view.IWindowManager; import android.view.IWindowManager;
import android.view.Surface;
import com.android.settings.DreamSettings; import com.android.settings.DreamSettings;
@@ -259,7 +260,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
if (mAccelerometer.isChecked()) { if (mAccelerometer.isChecked()) {
wm.thawRotation(); wm.thawRotation();
} else { } else {
wm.freezeRotation(-1); wm.freezeRotation(Surface.ROTATION_0);
} }
} catch (RemoteException exc) { } catch (RemoteException exc) {
Log.w(TAG, "Unable to save auto-rotate setting"); Log.w(TAG, "Unable to save auto-rotate setting");