Instrument metrics for smart-auto-rotate and screen timeout
Test: locally with flame Bug: 172974834 Change-Id: Id6927e749049c88e4efea2d69f93b9d397acc1c1
This commit is contained in:
@@ -93,7 +93,8 @@ public class AutoRotateSwitchBarController implements OnMainSwitchChangeListener
|
||||
|
||||
private boolean setRotationLock(boolean isChecked) {
|
||||
final boolean isLocked = !isChecked;
|
||||
mMetricsFeatureProvider.action(mContext, SettingsEnums.ACTION_ROTATION_LOCK, isLocked);
|
||||
mMetricsFeatureProvider.action(mContext, SettingsEnums.ACTION_ROTATE_ROTATE_MASTER_TOGGLE,
|
||||
isChecked);
|
||||
RotationPolicy.setRotationLock(mContext, isLocked);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user