Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2671b65f authored by Josh's avatar Josh
Browse files

minor refactoring

Test: NONE trivial refactor
Flag: com.android.systemui.keyboard_shortcut_helper_shortcut_customizer
Bug: 373631223
Change-Id: Iab06af82057cd12abd653a8ac1b82f05b7f7d82d
parent 00f1127e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ constructor(
    private fun fetchGroupLabelByGestureType(
        @KeyGestureEvent.KeyGestureType keyGestureType: Int
    ): String? {
        InputGestures.gestureToInternalKeyboardShortcutGroupLabelMap[keyGestureType]?.let {
        InputGestures.gestureToInternalKeyboardShortcutGroupLabelResIdMap[keyGestureType]?.let {
            return context.getString(it)
        } ?: return null
    }
@@ -156,7 +156,7 @@ constructor(
    private fun fetchShortcutInfoLabelByGestureType(
        @KeyGestureEvent.KeyGestureType keyGestureType: Int
    ): String? {
        InputGestures.gestureToInternalKeyboardShortcutInfoLabelMap[keyGestureType]?.let {
        InputGestures.gestureToInternalKeyboardShortcutInfoLabelResIdMap[keyGestureType]?.let {
            return context.getString(it)
        } ?: return null
    }
+2 −2
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ object InputGestures {
            KEY_GESTURE_TYPE_LAUNCH_DEFAULT_MESSAGING to AppCategories,
        )

    val gestureToInternalKeyboardShortcutGroupLabelMap =
    val gestureToInternalKeyboardShortcutGroupLabelResIdMap =
        mapOf(
            // System Category
            KEY_GESTURE_TYPE_HOME to R.string.shortcut_helper_category_system_controls,
@@ -129,7 +129,7 @@ object InputGestures {
                R.string.keyboard_shortcut_group_applications,
        )

    val gestureToInternalKeyboardShortcutInfoLabelMap =
    val gestureToInternalKeyboardShortcutInfoLabelResIdMap =
        mapOf(
            // System Category
            KEY_GESTURE_TYPE_HOME to R.string.group_system_access_home_screen,