-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
refactor: message list fragment #9770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: message list fragment #9770
Conversation
7942ac5 to
9e0111f
Compare
|
@rafaeltonholo I fixed some issues by removing the generic class injections which should help koin to inject the right implementation. But still need to fix the archive folder creation. |
5cd1c54 to
8dee5f7
Compare
|
I updated the dependency injection to remove the star-projections as koin is not capable to inject the right dependency at runtime. Neither is the This required a larger effort and I moved feature specific injections to |
LegacyAccountManager now implements AccountManager<LegacyAccount>
…torageFactory interface
…egacyAccountDtoSpecialFolderUpdaterFactory
8dee5f7 to
5063c39
Compare
rafaeltonholo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for starting the message list fragment refactor! I already see many improvements after this PR!
There are just a few things that we need to address before merging these changes. Let me know if you have any questions
legacy/core/src/main/java/com/fsck/k9/mailstore/LocalStoreProvider.kt
Outdated
Show resolved
Hide resolved
.../test/kotlin/net/thunderbird/app/common/feature/mail/BaseAccountBackendStorageFactoryTest.kt
Outdated
Show resolved
Hide resolved
...src/test/kotlin/net/thunderbird/app/common/feature/mail/BaseAccountImapBackendFactoryTest.kt
Outdated
Show resolved
Hide resolved
...kotlin/net/thunderbird/app/common/feature/mail/BaseAccountSpecialFolderUpdaterFactoryTest.kt
Outdated
Show resolved
Hide resolved
...n/src/test/kotlin/net/thunderbird/app/common/feature/mail/RemoteFolderCreatorResolverTest.kt
Outdated
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt
Outdated
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt
Outdated
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt
Outdated
Show resolved
Hide resolved
legacy/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt
Show resolved
Hide resolved
5063c39 to
a8caa14
Compare
rafaeltonholo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for addressing all the comments!!
Depends on #9763
Preparation for the new message list item ui #9654
This removes the dependency on the
LegacyAccountDtoand replaces it withLegacyAccount, which is a data class and allows composables to detect changes.The
MessageListFragmentis doing too much in it's current form, but this is a task for another day.It also adds new factories and resolvers for backend storage, IMAP backend, special folder updating, and remote folder creation. The dependency injection setup is updated to include these new components.