Instrument metrics for smart-auto-rotate and screen timeout

Test: locally with flame

Bug: 172974834
Change-Id: Id6927e749049c88e4efea2d69f93b9d397acc1c1
This commit is contained in:
Abel Tesfaye
2021-03-04 20:01:30 +00:00
parent c08943784c
commit 9481334a6a
3 changed files with 15 additions and 1 deletions

View File

@@ -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;
}