feat: modernize FetchingMailSettings#11044
Merged
Merged
Conversation
Contributor
|
✅ Validation Passed: All report and feature-flag labels are correctly set. |
wmontwe
reviewed
Jun 12, 2026
wmontwe
left a comment
Member
There was a problem hiding this comment.
I noticed that selecting "all messages" for "Local folder size" crashes with:
FATAL EXCEPTION: main
Process: net.thunderbird.android.debug, PID: 28075
java.lang.NumberFormatException: For input string: "all"
at java.lang.Integer.parseInt(Integer.java:781)
at java.lang.Integer.parseInt(Integer.java:897)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsViewModel$event$1.invokeSuspend(FetchingMailSettingsViewModel.kt:82)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:375)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:358)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:134)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:53)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:44)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsViewModel.event(FetchingMailSettingsViewModel.kt:77)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsViewModel.event(FetchingMailSettingsViewModel.kt:25)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsScreenKt$FetchingMailSettingsScreen$$inlined$observe$1.invoke(UnidirectionalViewModel.kt:91)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsScreenKt$FetchingMailSettingsScreen$$inlined$observe$1.invoke(UnidirectionalViewModel.kt:91)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsScreenKt.FetchingMailSettingsScreen$lambda$2$0(FetchingMailSettingsScreen.kt:62)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsScreenKt.$r8$lambda$pw_EuYy65ZLZRboTGXTpMlP1X1w(Unknown Source:0)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsScreenKt$$ExternalSyntheticLambda1.invoke(D8$$SyntheticClass:0)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsContentKt.handleSettingChange(FetchingMailSettingsContent.kt:114)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsContentKt.FetchingMailSettingsContent$lambda$4$0(FetchingMailSettingsContent.kt:46)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsContentKt.$r8$lambda$HfQQi4skxu_JhLB-bQs0nx0cLqA(Unknown Source:0)
at net.thunderbird.feature.account.settings.impl.ui.fetchingMail.FetchingMailSettingsContentKt$$ExternalSyntheticLambda5.invoke(D8$$SyntheticClass:0)
at net.thunderbird.core.ui.setting.dialog.ui.DialogSettingViewKt.DialogSettingView$lambda$8$0(DialogSettingView.kt:65)
at net.thunderbird.core.ui.setting.dialog.ui.DialogSettingViewKt.$r8$lambda$7htRzfBqr7chm_wiE21baDwxgpg(Unknown Source:0)
at net.thunderbird.core.ui.setting.dialog.ui.DialogSettingViewKt$$ExternalSyntheticLambda4.invoke(D8$$SyntheticClass:0)
at net.thunderbird.core.ui.setting.dialog.ui.components.dialog.value.SelectDialogViewKt.SelectDialogView$lambda$5$0(SelectDialogView.kt:32)
at net.thunderbird.core.ui.setting.dialog.ui.components.dialog.value.SelectDialogViewKt.$r8$lambda$RZTkFonzeZ3waNIsR5a1CfCYHDQ(Unknown Source:0)
at net.thunderbird.core.ui.setting.dialog.ui.components.dialog.value.SelectDialogViewKt$$ExternalSyntheticLambda2.invoke(D8$$SyntheticClass:0)
at androidx.compose.foundation.ClickableNode.onPointerEvent-H0pRuoY(Clickable.kt:935)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:446)
at androidx.compose.ui.input.pointer.Node.dispatchMainEventPass(HitPathTracker.kt:432)
at androidx.compose.ui.input.pointer.NodeParent.dispatchMainEventPass(HitPathTracker.kt:285)
Member
wmontwe
requested changes
Jun 12, 2026
…etchingMailSettings
…ccountAdvancedFetchingMailSettings
…nds under AccountSettingsDomainContract
…Settings and AccountSettingsRoute.AdvancedFetchingMailSettings
…Contract.SettingsBuilder and FetchingMailSettingsViewModel in AccountSettingsModule
8f7f6bd to
4d390ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR migrates the Fetching Mail Settings screen (including the Advanced version) from the old XML to Jetpack Compose. It is part of the ongoing Thunderbird for Android UI modernization effort and fully replaces the legacy UI while preserving all existing functionality.
What changed
Added a new reusable Compose component
ActionText(with preview) and integrated it intoSettingItemAdded necessary string resources and
FetchingMailSettingsIdUpdated Gradle dependencies, navigation (
AccountSettingsRoute,FeatureLauncherTarget), and legacyAccountSettingsFragmentIntroduced the full Compose architecture:
FetchingMailSettingsContractFetchingMailSettingsBuilderUpdateFetchingMailSettingsUseCase + implementationFetchingMailSettingsViewModelFetchingMailSettingsContent/FetchingMailSettingsScreenAdvancedFetchingMailSettingsContent/AdvancedFetchingMailSettingsScreenFollows the established MVI (Model-View-Intent) architecture with Unidirectional Data Flow (UDF) using the Contract pattern already adopted across the app
Added unit tests for the builder, ViewModel, and UseCase