1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-16 14:35:04 -05:00

Set a title for the folderlist activity.

This commit is contained in:
Sander Bogaert 2012-07-16 16:03:36 -04:00 committed by Andrew Chen
parent 67ab08383f
commit 1b9abb2b9b

View File

@ -113,11 +113,8 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
public void refreshTitle() { public void refreshTitle() {
runOnUiThread(new Runnable() { runOnUiThread(new Runnable() {
public void run() { public void run() {
String dispString = mAdapter.mListener.formatHeader(FolderList.this, mNavigationSpinner.setTitle(getString(R.string.folders_title) + " [" + mUnreadMessageCount + "]");
getString(R.string.folder_list_title, mAccount.getDescription()), mUnreadMessageCount, getTimeFormat()); mNavigationSpinner.setSubTitle(mAccount.getEmail());
setTitle(dispString);
} }
}); });
} }
@ -373,7 +370,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
setListAdapter(mAdapter); setListAdapter(mAdapter);
getListView().setTextFilterEnabled(mAdapter.getFilter() != null); // should never be false but better safe then sorry getListView().setTextFilterEnabled(mAdapter.getFilter() != null); // should never be false but better safe then sorry
setTitle(mAccount.getDescription()); mHandler.refreshTitle();
} }