am 904bc315
: Merge "Fix NPE in Display Settings." into jb-dev
* commit '904bc3155f06a1b02ac8a5985ac781d8d6dee798': 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