-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add drawer unified folder support #8155
Add drawer unified folder support #8155
Conversation
… change implementation accordingly
ca09738
to
b5d9a7d
Compare
@@ -0,0 +1,8 @@ | |||
package app.k9mail.feature.navigation.drawer.domain.entity | |||
|
|||
data class DisplayUnifiedFolder( |
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.
Side note: This feels like you're trying to prepare for a future with more unified folders before we've decided on what that should actually look like (both from a UI/UX and code architecture perspective).
A simpler approach, that only models what's currently possible, probably would have been better. E.g.
data class DisplayUnifiedInboxFolder(
override val unreadMessageCount: Int,
override val starredMessageCount: Int,
) : DisplayFolder {
override val id: String = "unified_inbox"
}
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.
I know, but I tested how much effort it would be to add more folders and it didn't seem too complicated. Disclaimer if I understood the search query correctly.
...tion/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/ui/folder/FolderListItem.kt
Show resolved
Hide resolved
...tion/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/ui/folder/FolderListItem.kt
Outdated
Show resolved
Hide resolved
b5d9a7d
to
2375115
Compare
…trieve the display name
2375115
to
d8d8868
Compare
Added the unified folder support for the drawer. The default selection has not been implemented as it requires state information from the MessageList properly propagated: #8142
Depends on #8151
Resolves #8121