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

Commit 904bc315 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in Display Settings." into jb-dev

parents 10636840 980a6c3c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);