summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src
diff options
context:
space:
mode:
author Vaibhav Devmurari <vdevmurari@google.com> 2025-03-24 06:53:42 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-24 06:53:42 -0700
commita79d04c01602c5acbf2d69f7085bcaf166336e7a (patch)
tree5352f6a7fcd597b0f3e077ce40ea04a7a61d0f93 /packages/SystemUI/src
parentd1b2e98e1b35503dd14d3a2558be77e0cc71d531 (diff)
parente543c7b18f9df337470bd219cb853b41fe257b53 (diff)
Merge "Deprecate ACCESSIBILITY_ALL_APPS gesture type" into main
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r--packages/SystemUI/src/com/android/systemui/education/data/repository/UserContextualEducationRepository.kt12
1 files changed, 2 insertions, 10 deletions
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)
}
}