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

Commit edb9d1fc authored by LuK1337's avatar LuK1337
Browse files

LineageParts: Reenable DisplayRotation

Change-Id: I3de9f414ab52ba721011dce91edc4828d47c7a13
parent b7139df8
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -68,12 +68,9 @@ public class DisplayRotation extends SettingsPreferenceFragment {
        mRotation180Pref = (CheckBoxPreference) prefSet.findPreference(ROTATION_180_PREF);
        mRotation270Pref = (CheckBoxPreference) prefSet.findPreference(ROTATION_270_PREF);

        int mode = 0;
/*
        int mode = Settings.System.getInt(getContentResolver(),
                Settings.System.ACCELEROMETER_ROTATION_ANGLES,
                ROTATION_0_MODE | ROTATION_90_MODE | ROTATION_270_MODE);
*/

        mRotation0Pref.setChecked((mode & ROTATION_0_MODE) != 0);
        mRotation90Pref.setChecked((mode & ROTATION_90_MODE) != 0);
@@ -134,10 +131,8 @@ public class DisplayRotation extends SettingsPreferenceFragment {
                mode |= ROTATION_0_MODE;
                mRotation0Pref.setChecked(true);
            }
/*
            Settings.System.putInt(getActivity().getContentResolver(),
                    Settings.System.ACCELEROMETER_ROTATION_ANGLES, mode);
*/
            return true;
        }