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