mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-17 21:32:26 -05:00
Add unread count to MessageList title
This commit is contained in:
parent
b90386ecd3
commit
67b4cd9c8e
@ -529,19 +529,13 @@ public class MessageList
|
||||
private void setWindowTitle() {
|
||||
String displayName;
|
||||
|
||||
// regular folder content display
|
||||
if (mFolderName != null) {
|
||||
displayName = mFolderName;
|
||||
|
||||
if (mAccount.getInboxFolderName().equalsIgnoreCase(displayName)) {
|
||||
displayName = getString(R.string.special_mailbox_name_inbox);
|
||||
} else if (mAccount.getOutboxFolderName().equals(displayName)) {
|
||||
displayName = getString(R.string.special_mailbox_name_outbox);
|
||||
}
|
||||
|
||||
String dispString = mAdapter.mListener.formatHeader(MessageList.this, getString(R.string.message_list_title, mAccount.getDescription(), displayName), mUnreadMessageCount, getTimeFormat());
|
||||
|
||||
mNavigationSpinner.setTitle(mFolderName);
|
||||
mNavigationSpinner.setTitle(mFolderName+" ["+mUnreadMessageCount+"]");
|
||||
mNavigationSpinner.setSubTitle(mAccount.getEmail());
|
||||
|
||||
// query result display
|
||||
} else if (mQueryString != null) {
|
||||
if (mTitle != null) {
|
||||
String dispString = mAdapter.mListener.formatHeader(MessageList.this, mTitle, mUnreadMessageCount, getTimeFormat());
|
||||
|
Loading…
Reference in New Issue
Block a user