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

Commit 347cd33e authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

mail: Change the default swipe options

parent e0dcfdcf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -267,10 +267,10 @@ object K9 : KoinComponent {
    var pgpSignOnlyDialogCounter: Int = 0

    @JvmStatic
    var swipeRightAction: SwipeAction = SwipeAction.ToggleSelection
    var swipeRightAction: SwipeAction = SwipeAction.Delete

    @JvmStatic
    var swipeLeftAction: SwipeAction = SwipeAction.ToggleRead
    var swipeLeftAction: SwipeAction = SwipeAction.Archive

    // TODO: This is a feature-specific setting that doesn't need to be available to apps that don't include the
    //  feature. Extract `Storage` and `StorageEditor` to a separate module so feature modules can retrieve and store
@@ -400,8 +400,8 @@ object K9 : KoinComponent {

        k9Language = storage.getString("language", "")

        swipeRightAction = storage.getEnum("swipeRightAction", SwipeAction.ToggleSelection)
        swipeLeftAction = storage.getEnum("swipeLeftAction", SwipeAction.ToggleRead)
        swipeRightAction = storage.getEnum("swipeRightAction", SwipeAction.Delete)
        swipeLeftAction = storage.getEnum("swipeLeftAction", SwipeAction.Archive)

        if (telemetryManager.isTelemetryFeatureIncluded()) {
            isTelemetryEnabled = storage.getBoolean("enableTelemetry", true)