Use a more appropriate title when diplaying folder search results.

This commit is contained in:
Joe Steele 2012-12-22 19:05:29 -05:00
parent d7cb89880a
commit 993b025906
1 changed files with 10 additions and 0 deletions

View File

@ -632,6 +632,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
@Override
public boolean onQueryTextSubmit(String query) {
folderMenuItem.collapseActionView();
mActionBarTitle.setText(getString(R.string.filter_folders_action));
return true;
}
@ -641,6 +642,15 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
return true;
}
});
folderSearchView.setOnCloseListener(new SearchView.OnCloseListener() {
@Override
public boolean onClose() {
mActionBarTitle.setText(getString(R.string.folders_title));
return false;
}
});
}
@Override public boolean onContextItemSelected(android.view.MenuItem item) {