81 comments found.

rachid84

rachid84 Purchased

http://i.imgur.com/EVoGHdQ.png my search is pizza but the result include hamburger and other recipe hasn’t no relation with word “pizza”

So, to fix this issue, open HomeFragment.java.

in line 45 add:
String searchText = "";
In line117 replace:
 Recipe.loadRecipes(getActivity(), 0, LIST_INITIAL_LOAD, "", new Recipe.onRecipesDownloadedListener() {
with:
 Recipe.loadRecipes(getActivity(), 0, LIST_INITIAL_LOAD, searchText, new Recipe.onRecipesDownloadedListener() {
In line 132 replace:
  Recipe.loadRecipes(getActivity(), first, LIST_INITIAL_LOAD_MORE_ONSCROLL, "", new Recipe.onRecipesDownloadedListener() {
with:
  Recipe.loadRecipes(getActivity(), first, LIST_INITIAL_LOAD_MORE_ONSCROLL, searchText, new Recipe.onRecipesDownloadedListener() {
and in line 207 add:
  searchText = newText;
such that it looks like this:
@Override
                public boolean onQueryTextChange(String newText) {
                    searchText = newText;
                    Recipe.loadRecipes(getActivity(), 0, 100, newText, new Recipe.onRecipesDownloadedListener() {
                        @Override
                        public void onRecipesDownloaded(List<Recipe> recipes) {
                            setRecipes(recipes);
                        }
                    });
                    return false;
                }

If you think this is too much changes, feel free to send me an email and I’ll send you the updated file.

thank you very much ,

no problem :) sorry for taking longer than usual to reply

by
by
by
by
by
by