1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

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

View File

@ -632,6 +632,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
@Override @Override
public boolean onQueryTextSubmit(String query) { public boolean onQueryTextSubmit(String query) {
folderMenuItem.collapseActionView(); folderMenuItem.collapseActionView();
mActionBarTitle.setText(getString(R.string.filter_folders_action));
return true; return true;
} }
@ -641,6 +642,15 @@ public class FolderList extends K9ListActivity implements OnNavigationListener {
return true; 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) { @Override public boolean onContextItemSelected(android.view.MenuItem item) {