Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62a6f626 authored by Jeff Brown's avatar Jeff Brown
Browse files

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

Bug: 6523269
This reverts commit 523d5a6e.
parent 56c58d5a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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");