am b5858bbd
: Fix NPE in rotation lock content observer.
* commit 'b5858bbdc363e21bf87ac5643822ec9e57956c52': 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() {
|
||||
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