Remove home button gesture

- It causes more problems than it solves
- Who even uses 3 button nav in 2025?

Close #1436
This commit is contained in:
MM20
2025-05-28 21:46:45 +02:00
parent 53d8d93d04
commit 99fd69d5d9
7 changed files with 1 additions and 91 deletions
@@ -133,7 +133,6 @@ data class LauncherSettingsData internal constructor(
val gesturesSwipeUp: GestureAction = GestureAction.Widgets,
val gesturesDoubleTap: GestureAction = GestureAction.ScreenLock,
val gesturesLongPress: GestureAction = GestureAction.NoAction,
val gesturesHomeButton: GestureAction = GestureAction.NoAction,
val animationsCharging: Boolean = true,
@@ -13,7 +13,6 @@ data class GestureSettingsData(
val swipeUp: GestureAction,
val doubleTap: GestureAction,
val longPress: GestureAction,
val homeButton: GestureAction,
)
class GestureSettings internal constructor(
@@ -27,7 +26,6 @@ class GestureSettings internal constructor(
swipeUp = it.gesturesSwipeUp,
doubleTap = it.gesturesDoubleTap,
longPress = it.gesturesLongPress,
homeButton = it.gesturesHomeButton,
)
}.distinctUntilChanged()
) {
@@ -49,9 +47,6 @@ class GestureSettings internal constructor(
val longPress: Flow<GestureAction> = dataStore.data.map { it.gesturesLongPress }
.distinctUntilChanged()
val homeButton: Flow<GestureAction> = dataStore.data.map { it.gesturesHomeButton }
.distinctUntilChanged()
fun setSwipeDown(action: GestureAction) {
dataStore.update {
it.copy(gesturesSwipeDown = action)
@@ -87,12 +82,4 @@ class GestureSettings internal constructor(
it.copy(gesturesLongPress = action)
}
}
fun setHomeButton(action: GestureAction) {
dataStore.update {
it.copy(gesturesHomeButton = action)
}
}
}