Loading src/org/lineageos/lineageparts/hardware/DisplayRotation.java +0 −5 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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; } Loading Loading
src/org/lineageos/lineageparts/hardware/DisplayRotation.java +0 −5 Original line number Diff line number Diff line Loading @@ -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); Loading Loading @@ -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; } Loading