Loading app/core/src/test/java/com/fsck/k9/notification/NewMailNotificationsTest.kt +69 −75 Original line number Diff line number Diff line Loading @@ -7,13 +7,11 @@ import com.fsck.k9.K9RobolectricTest import com.fsck.k9.controller.MessageReference import com.fsck.k9.mailstore.LocalMessage import org.junit.Test import org.mockito.ArgumentMatchers.anyBoolean import org.mockito.ArgumentMatchers.anyInt import org.mockito.Mockito.never import org.mockito.Mockito.times import org.mockito.Mockito.verify import org.mockito.kotlin.doReturn import org.mockito.kotlin.eq import org.mockito.kotlin.mock import org.mockito.kotlin.stubbing import org.mockito.kotlin.whenever Loading Loading @@ -228,11 +226,7 @@ class NewMailNotificationsTest : K9RobolectricTest() { whenAddingContentReturn(content, AddNotificationResult.newNotification(holder)) newMailNotifications.addNewMailNotification(account, message, 3, silent = false) newMailNotifications.clearNewMa } } ilNotifications(account) newMailNotifications.clearNewMailNotifications(account) verify(notificationManager).cancel(notificationId) verify(notificationManager).cancel(NotificationIds.getNewMailSummaryNotificationId(account)) } Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt +0 −2 Original line number Diff line number Diff line Loading @@ -390,7 +390,6 @@ open class MessageList : noThreading = launchData.noThreading messageReference = launchData.messageReference return true } Loading Loading @@ -1165,7 +1164,6 @@ open class MessageList : } } fun setActionBarTitle(title: String, subtitle: String? = null) { actionBar.title = title actionBar.subtitle = subtitle Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/RecipientMvpView.kt +0 −2 Original line number Diff line number Diff line Loading @@ -214,7 +214,6 @@ class RecipientMvpView(private val activity: MessageCompose) : View.OnFocusChang fun setRecipientExpanderVisibility(visible: Boolean) { val childToDisplay = if (visible) VIEW_INDEX_BCC_EXPANDER_VISIBLE else VIEW_INDEX_BCC_EXPANDER_HIDDEN if (recipientExpanderContainer.displayedChild != childToDisplay) { recipientExpanderContainer.displayedChild = childToDisplay } Loading Loading @@ -399,7 +398,6 @@ class RecipientMvpView(private val activity: MessageCompose) : View.OnFocusChang ERROR(R.id.crypto_status_error); } enum class CryptoSpecialModeDisplayType(val childIdToDisplay: Int) { NONE(VIEW_INDEX_HIDDEN), PGP_INLINE(R.id.crypto_special_inline), Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/RecipientPresenter.kt +1 −5 Original line number Diff line number Diff line Loading @@ -256,7 +256,6 @@ class RecipientPresenter( this.alwaysBccAddresses = alwaysBccAddresses if (alwaysBccAddresses.isEmpty()) return object : RecipientLoader(context, account.openPgpProvider, *alwaysBccAddresses) { override fun deliverResult(result: List<Recipient>?) { val recipientArray = result!!.toTypedArray() Loading Loading @@ -564,7 +563,6 @@ class RecipientPresenter( return } if (currentCryptoMode == CryptoMode.SIGN_ONLY) { recipientMvpView.showErrorIsSignOnly() return Loading @@ -584,7 +582,7 @@ class RecipientPresenter( } else { onCryptoModeChanged(CryptoMode.CHOICE_ENABLED) if (showGotIt) { recipientMvpView.showOpenPgpEncryptExplanationDialog(); recipientMvpView.showOpenPgpEncryptExplanationDialog() recipientMvpView.showOpenPgpEncryptExplanationDialog() } } Loading Loading @@ -692,8 +690,6 @@ class RecipientPresenter( return true } return false } Loading app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ReplyToPresenter.kt +0 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ import com.fsck.k9.Identity import com.fsck.k9.mail.Address import com.fsck.k9.mail.Message private const val STATE_KEY_REPLY_TO_SHOWN = "com.fsck.k9.activity.compose.ReplyToPresenter.replyToShown" class ReplyToPresenter(private val view: ReplyToView) { Loading @@ -20,7 +19,6 @@ class ReplyToPresenter(private val view: ReplyToView) { } } fun getAddresses(): Array<Address> { return view.getAddresses() } Loading Loading
app/core/src/test/java/com/fsck/k9/notification/NewMailNotificationsTest.kt +69 −75 Original line number Diff line number Diff line Loading @@ -7,13 +7,11 @@ import com.fsck.k9.K9RobolectricTest import com.fsck.k9.controller.MessageReference import com.fsck.k9.mailstore.LocalMessage import org.junit.Test import org.mockito.ArgumentMatchers.anyBoolean import org.mockito.ArgumentMatchers.anyInt import org.mockito.Mockito.never import org.mockito.Mockito.times import org.mockito.Mockito.verify import org.mockito.kotlin.doReturn import org.mockito.kotlin.eq import org.mockito.kotlin.mock import org.mockito.kotlin.stubbing import org.mockito.kotlin.whenever Loading Loading @@ -228,11 +226,7 @@ class NewMailNotificationsTest : K9RobolectricTest() { whenAddingContentReturn(content, AddNotificationResult.newNotification(holder)) newMailNotifications.addNewMailNotification(account, message, 3, silent = false) newMailNotifications.clearNewMa } } ilNotifications(account) newMailNotifications.clearNewMailNotifications(account) verify(notificationManager).cancel(notificationId) verify(notificationManager).cancel(NotificationIds.getNewMailSummaryNotificationId(account)) } Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt +0 −2 Original line number Diff line number Diff line Loading @@ -390,7 +390,6 @@ open class MessageList : noThreading = launchData.noThreading messageReference = launchData.messageReference return true } Loading Loading @@ -1165,7 +1164,6 @@ open class MessageList : } } fun setActionBarTitle(title: String, subtitle: String? = null) { actionBar.title = title actionBar.subtitle = subtitle Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/RecipientMvpView.kt +0 −2 Original line number Diff line number Diff line Loading @@ -214,7 +214,6 @@ class RecipientMvpView(private val activity: MessageCompose) : View.OnFocusChang fun setRecipientExpanderVisibility(visible: Boolean) { val childToDisplay = if (visible) VIEW_INDEX_BCC_EXPANDER_VISIBLE else VIEW_INDEX_BCC_EXPANDER_HIDDEN if (recipientExpanderContainer.displayedChild != childToDisplay) { recipientExpanderContainer.displayedChild = childToDisplay } Loading Loading @@ -399,7 +398,6 @@ class RecipientMvpView(private val activity: MessageCompose) : View.OnFocusChang ERROR(R.id.crypto_status_error); } enum class CryptoSpecialModeDisplayType(val childIdToDisplay: Int) { NONE(VIEW_INDEX_HIDDEN), PGP_INLINE(R.id.crypto_special_inline), Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/RecipientPresenter.kt +1 −5 Original line number Diff line number Diff line Loading @@ -256,7 +256,6 @@ class RecipientPresenter( this.alwaysBccAddresses = alwaysBccAddresses if (alwaysBccAddresses.isEmpty()) return object : RecipientLoader(context, account.openPgpProvider, *alwaysBccAddresses) { override fun deliverResult(result: List<Recipient>?) { val recipientArray = result!!.toTypedArray() Loading Loading @@ -564,7 +563,6 @@ class RecipientPresenter( return } if (currentCryptoMode == CryptoMode.SIGN_ONLY) { recipientMvpView.showErrorIsSignOnly() return Loading @@ -584,7 +582,7 @@ class RecipientPresenter( } else { onCryptoModeChanged(CryptoMode.CHOICE_ENABLED) if (showGotIt) { recipientMvpView.showOpenPgpEncryptExplanationDialog(); recipientMvpView.showOpenPgpEncryptExplanationDialog() recipientMvpView.showOpenPgpEncryptExplanationDialog() } } Loading Loading @@ -692,8 +690,6 @@ class RecipientPresenter( return true } return false } Loading
app/ui/legacy/src/main/java/com/fsck/k9/activity/compose/ReplyToPresenter.kt +0 −2 Original line number Diff line number Diff line Loading @@ -5,7 +5,6 @@ import com.fsck.k9.Identity import com.fsck.k9.mail.Address import com.fsck.k9.mail.Message private const val STATE_KEY_REPLY_TO_SHOWN = "com.fsck.k9.activity.compose.ReplyToPresenter.replyToShown" class ReplyToPresenter(private val view: ReplyToView) { Loading @@ -20,7 +19,6 @@ class ReplyToPresenter(private val view: ReplyToView) { } } fun getAddresses(): Array<Address> { return view.getAddresses() } Loading