mirror of https://github.com/moparisthebest/k-9
Use a more appropriate title when diplaying folder search results.
This commit is contained in:
parent
d7cb89880a
commit
993b025906
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue