Use setRotationLock in LockScreenRotationPreferenceController

This change fixes an issue where the rotation toggle switch did not function as expected.

Bug: 212507859

Test: none
Change-Id: I5008ddcf979558c424a9f06be623eb5a9a1ca510
This commit is contained in:
Abel Tesfaye
2022-02-10 00:37:22 +00:00
parent 6b8ddccb7a
commit 84b4e9f59b

View File

@@ -53,7 +53,7 @@ public class LockScreenRotationPreferenceController extends TogglePreferenceCont
*/
@Override
public boolean setChecked(boolean isChecked) {
RotationPolicy.setRotationLockForAccessibility(mContext, !isChecked);
RotationPolicy.setRotationLock(mContext, !isChecked);
return true;
}