* commit 'f1b02c8b1ae346bc27172595a8ccc9494849f10a': Fix NPE in Display Settings.
This commit is contained in:
@@ -236,6 +236,7 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
|
||||
}
|
||||
|
||||
private void updateAccelerometerRotationCheckbox() {
|
||||
if (getActivity() == null) return;
|
||||
mAccelerometer.setChecked(Settings.System.getInt(
|
||||
getContentResolver(),
|
||||
Settings.System.ACCELEROMETER_ROTATION, 0) != 0);
|
||||
|
Reference in New Issue
Block a user