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

Commit b5858bbd authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix NPE in rotation lock content observer.

Bug: 6647846
Change-Id: Idd17edb78f451807eabdd988017b68ce02b9c75f
parent 00808b02
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -449,8 +449,11 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
    }

    private void updateLockScreenRotationCheckbox() {
        Context context = getActivity();
        if (context != null) {
            mToggleLockScreenRotationPreference.setChecked(
                !RotationPolicy.isRotationLocked(getActivity()));
                    !RotationPolicy.isRotationLocked(context));
        }
    }

    private void offerInstallAccessibilitySerivceOnce() {