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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user