Merge "Only count EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT in STATE_ACTIVE" into tm-qpr-dev

This commit is contained in:
Bill Lin
2022-07-21 08:35:16 +00:00
committed by Android (Google) Code Review

View File

@@ -681,9 +681,12 @@ public class OneHandedController implements RemoteCallable<OneHandedController>,
return;
}
if (mState.getState() == STATE_ACTIVE) {
mOneHandedUiEventLogger.writeEvent(
OneHandedUiEventLogger.EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT);
}
mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation, wct);
mOneHandedUiEventLogger.writeEvent(
OneHandedUiEventLogger.EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT);
}
/**