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

Commit 3a821e86 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Settings: "Rotation lock" retains existing orientation." into jb-dev

parents ff78bf72 523d5a6e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ 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;

@@ -260,7 +259,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
                if (!mRotationLock.isChecked()) {
                    wm.thawRotation();
                } else {
                    wm.freezeRotation(Surface.ROTATION_0);
                    wm.freezeRotation(-1);
                }
            } catch (RemoteException exc) {
                Log.w(TAG, "Unable to save auto-rotate setting");