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

Commit 980a6c3c authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix NPE in Display Settings.

Handle occasional race in delivering change notifications.

Bug: 6012882
Change-Id: Ic9eff72920ff65a2c8ab85f4af59ba438cd8f99f
parent e5050b1b
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);