mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Set a title for the folderlist activity.
This commit is contained in:
parent
67ab08383f
commit
1b9abb2b9b
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user