1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -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() {
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();
}