From e543c7b18f9df337470bd219cb853b41fe257b53 Mon Sep 17 00:00:00 2001 From: Vaibhav Devmurari Date: Tue, 18 Mar 2025 21:27:09 +0000 Subject: Deprecate ACCESSIBILITY_ALL_APPS gesture type Behavior for ALL_APPS and ACCESSIBILITY_ALL_APPS is exactly the same so reducing the enum conflict. Test: atest InputTests Bug: 245989146 Flag: EXEMPT refactor Change-Id: I729362351e7384f7119f1588f3f3be80e12df5fe --- .../data/repository/UserContextualEducationRepository.kt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'packages/SystemUI/src') diff --git a/packages/SystemUI/src/com/android/systemui/education/data/repository/UserContextualEducationRepository.kt b/packages/SystemUI/src/com/android/systemui/education/data/repository/UserContextualEducationRepository.kt index 0640351c8149..d9f9a3ea1032 100644 --- a/packages/SystemUI/src/com/android/systemui/education/data/repository/UserContextualEducationRepository.kt +++ b/packages/SystemUI/src/com/android/systemui/education/data/repository/UserContextualEducationRepository.kt @@ -121,16 +121,8 @@ constructor( InputManager.KeyGestureEventListener { event -> // Only store keyboard shortcut time for gestures providing keyboard // education - val shortcutType = - when (event.keyGestureType) { - KeyGestureEvent.KEY_GESTURE_TYPE_ACCESSIBILITY_ALL_APPS, - KeyGestureEvent.KEY_GESTURE_TYPE_ALL_APPS -> ALL_APPS - - else -> null - } - - if (shortcutType != null) { - trySendWithFailureLogging(shortcutType, TAG) + if (event.keyGestureType == KeyGestureEvent.KEY_GESTURE_TYPE_ALL_APPS) { + trySendWithFailureLogging(ALL_APPS, TAG) } } -- cgit v1.2.3-59-g8ed1b