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

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

Move `MessageReference` to `:legacy:message` module

parent d37d4b4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
package app.k9mail.feature.widget.message.list

import com.fsck.k9.controller.MessageReference
import app.k9mail.legacy.message.controller.MessageReference

internal data class MessageListItem(
    val displayName: String,
+1 −1
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ package app.k9mail.feature.widget.message.list
import app.k9mail.legacy.account.Account
import app.k9mail.legacy.mailstore.MessageDetailsAccessor
import app.k9mail.legacy.mailstore.MessageMapper
import com.fsck.k9.controller.MessageReference
import app.k9mail.legacy.message.controller.MessageReference
import com.fsck.k9.helper.MessageHelper
import com.fsck.k9.ui.helper.DisplayAddressHelper
import java.util.Calendar
+1 −1
Original line number Diff line number Diff line
@@ -10,11 +10,11 @@ import androidx.core.app.PendingIntentCompat
import app.k9mail.feature.launcher.FeatureLauncherActivity
import app.k9mail.legacy.account.Account
import app.k9mail.legacy.mailstore.MessageStoreManager
import app.k9mail.legacy.message.controller.MessageReference
import app.k9mail.legacy.search.LocalSearch
import com.fsck.k9.K9
import com.fsck.k9.activity.MessageList
import com.fsck.k9.activity.compose.MessageActions
import com.fsck.k9.controller.MessageReference
import com.fsck.k9.ui.messagelist.DefaultFolderProvider
import com.fsck.k9.ui.notification.DeleteConfirmationActivity

+2 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ internal class DefaultMessageCountsProvider(
        return MessageCounts(unreadCount, starredCount)
    }

    @Suppress("TooGenericExceptionCaught")
    override fun getUnreadMessageCount(account: Account, folderId: Long): Int {
        return try {
            val messageStore = messageStoreManager.getMessageStore(account)
@@ -55,6 +56,7 @@ internal class DefaultMessageCountsProvider(
        }
    }

    @Suppress("TooGenericExceptionCaught")
    private fun getMessageCounts(account: Account, conditions: ConditionsTreeNode?): MessageCounts {
        return try {
            val messageStore = messageStoreManager.getMessageStore(account)
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ package com.fsck.k9.controller;
import java.util.ArrayList;
import java.util.List;

import app.k9mail.legacy.message.controller.MessageReference;
import timber.log.Timber;


Loading