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

Commit de4f8181 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

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

parents 977ff542 62a6f626
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");