From 1b9abb2b9bfef7c8ee4f8ffb7c47aa119d89db88 Mon Sep 17 00:00:00 2001 From: Sander Bogaert Date: Mon, 16 Jul 2012 16:03:36 -0400 Subject: [PATCH] Set a title for the folderlist activity. --- src/com/fsck/k9/activity/FolderList.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index fe1a4cad0..c30d70d17 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -113,11 +113,8 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { public void refreshTitle() { runOnUiThread(new Runnable() { public void run() { - String dispString = mAdapter.mListener.formatHeader(FolderList.this, - getString(R.string.folder_list_title, mAccount.getDescription()), mUnreadMessageCount, getTimeFormat()); - - - setTitle(dispString); + mNavigationSpinner.setTitle(getString(R.string.folders_title) + " [" + mUnreadMessageCount + "]"); + mNavigationSpinner.setSubTitle(mAccount.getEmail()); } }); } @@ -373,7 +370,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { setListAdapter(mAdapter); getListView().setTextFilterEnabled(mAdapter.getFilter() != null); // should never be false but better safe then sorry - setTitle(mAccount.getDescription()); + mHandler.refreshTitle(); }