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

Unverified Commit fee4099d authored by Wolf-Martell Montwé's avatar Wolf-Martell Montwé
Browse files

Add `:legacy:folder` module and move `FolderType`

parent a60155eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
package app.k9mail.feature.widget.unread

import android.content.Context
import app.k9mail.legacy.folder.FolderType
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNull
@@ -11,7 +12,6 @@ import com.fsck.k9.controller.MessageCounts
import com.fsck.k9.controller.MessageCountsProvider
import com.fsck.k9.mailstore.Folder
import com.fsck.k9.mailstore.FolderRepository
import com.fsck.k9.mailstore.FolderType
import com.fsck.k9.search.SearchAccount
import com.fsck.k9.ui.folders.FolderNameFormatter
import com.fsck.k9.ui.messagelist.DefaultFolderProvider
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ dependencies {

    api(projects.legacy.account)
    api(projects.legacy.di)
    api(projects.legacy.folder)
    api(projects.legacy.notification)

    implementation(projects.plugins.openpgpApiLib.openpgpApi)
+1 −11
Original line number Diff line number Diff line
package com.fsck.k9.mailstore

import app.k9mail.legacy.di.DI
import app.k9mail.legacy.folder.FolderType
import com.fsck.k9.Account
import com.fsck.k9.Account.FolderMode
import com.fsck.k9.controller.MessagingController
@@ -321,14 +322,3 @@ data class DisplayFolder(
    val unreadMessageCount: Int,
    val starredMessageCount: Int,
)

enum class FolderType {
    REGULAR,
    INBOX,
    OUTBOX,
    SENT,
    TRASH,
    DRAFTS,
    ARCHIVE,
    SPAM,
}
+2 −0
Original line number Diff line number Diff line
package com.fsck.k9.mailstore

import app.k9mail.legacy.folder.FolderType

/**
 * Implements the automatic special folder selection strategy.
 */
+1 −0
Original line number Diff line number Diff line
package com.fsck.k9.mailstore

import app.k9mail.core.common.mail.Protocols
import app.k9mail.legacy.folder.FolderType
import com.fsck.k9.Account
import com.fsck.k9.Account.SpecialFolderSelection
import com.fsck.k9.Preferences
Loading