Use NavHandleLongPressInputConsumer regardless of flags.
This way we can still log long press attempts even when the feature flags or settings are disabled. We always log LAUNCHER_LONG_PRESS_NAVBAR when a long press is detected, even if nothing else happens. Additionally, we log LAUNCHER_DEEP_PRESS_NAVBAR if the long press was short-circuited by a deep press. In this case both logs will appear. If ENABLE_LPNH_DEEP_PRESS is false, it's possible that LAUNCHER_DEEP_PRESS_NAVBAR will be logged without LAUNCHER_LONG_PRESS_NAVBAR. This is because we log deep press even if the feature is disabled, but it won't cause long press to trigger immediately, so the user may release their finger before the normal long press triggers. Note: getLongPressRunnable will still return null if the flags or other checks fail, so nothing will happen beyond logging. Fix: 313477667 Fix: 310955078 Test: Manual with wwlogcat with flags in various states Flag: NA Change-Id: I40ceb5a22b364c2d5d6e4fdabb546b81c84354eb
Loading
Please register or sign in to comment