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:
@@ -53,7 +53,7 @@ public class LockScreenRotationPreferenceController extends TogglePreferenceCont
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean setChecked(boolean isChecked) {
|
public boolean setChecked(boolean isChecked) {
|
||||||
RotationPolicy.setRotationLockForAccessibility(mContext, !isChecked);
|
RotationPolicy.setRotationLock(mContext, !isChecked);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user