Only count EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT in STATE_ACTIVE
The design philosophy of EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT is - When device in STATE_ACTIVE - Rotate will automatically exit OHM We only count when CUJ: User trigger OHM -> Rotate -> Exit OHM But bypass the CUJ: No trigger OHM -> Rotate -> no action Test: atest SystemUITests Bug: 239654147 Change-Id: I2e73f29f4edd77998e015db960430f2b3a768349
This commit is contained in:
@@ -675,9 +675,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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user