Show messages in inbox and archive as conversations

Work in progress - detail view not yet adapted, and needs extended encoding
for sensible results.
This commit is contained in:
2018-03-05 09:48:49 +01:00
parent 40f8bc87a2
commit 101913a531
6 changed files with 737 additions and 25 deletions

View File

@@ -324,8 +324,14 @@ class MainActivity : AppCompatActivity(), ListSelectionListener<Serializable> {
val tag = item.tag
if (tag is Label) {
currentLabel.value = tag
if (itemList !is MessageListFragment) {
changeList(MessageListFragment())
if (tag.type == Label.Type.INBOX || tag == LABEL_ARCHIVE) {
if (itemList !is ConversationListFragment) {
changeList(ConversationListFragment())
}
} else {
if (itemList !is MessageListFragment) {
changeList(MessageListFragment())
}
}
return false
} else if (item is Nameable<*>) {