Start logging rotation lock history + include caller information
There have been a few reports on foldables where rotation lock suddenly changed, without user interaction. Adding these logs will make it easier to debug the issue. Bug: 289023967 Bug: 289534937 Bug: 279685215 Test: Manually - Change rotation lock and check logs in dumpsys Change-Id: I2a877e7b47c863871a2c6ba29ce46e63d28c8008
This commit is contained in:
@@ -54,7 +54,8 @@ public class LockScreenRotationPreferenceController extends TogglePreferenceCont
|
||||
*/
|
||||
@Override
|
||||
public boolean setChecked(boolean isChecked) {
|
||||
RotationPolicy.setRotationLock(mContext, !isChecked);
|
||||
RotationPolicy.setRotationLock(mContext, !isChecked,
|
||||
/* caller= */ "LockScreenRotationPreferenceController#setChecked");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user