* commit '77a6080aebc9754bff2307edc1998bd54657fbb5': Fix NPE in rotation lock content observer.
This commit is contained in:
@@ -449,8 +449,11 @@ public class AccessibilitySettings extends SettingsPreferenceFragment implements
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateLockScreenRotationCheckbox() {
|
private void updateLockScreenRotationCheckbox() {
|
||||||
mToggleLockScreenRotationPreference.setChecked(
|
Context context = getActivity();
|
||||||
!RotationPolicy.isRotationLocked(getActivity()));
|
if (context != null) {
|
||||||
|
mToggleLockScreenRotationPreference.setChecked(
|
||||||
|
!RotationPolicy.isRotationLocked(context));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void offerInstallAccessibilitySerivceOnce() {
|
private void offerInstallAccessibilitySerivceOnce() {
|
||||||
|
|||||||
Reference in New Issue
Block a user