A
Android Central Question
im really stuck with this i have two adapters and to selected on adapter it has to get the value form another adapter. so far i was able to get the two values here but i dont know how to pass the recipe value to second method.
public static class res{
public static void selectedMenu(String recipe){
Log.d("tmg",recipe);
}
public static void selectedMenu(DataSnapshot db) {
RecipesInformation Recipes = db.getValue(RecipesInformation.class);
if (Recipes.getCompany().equals(displayName) && Recipes.getMenuList().equals("Panini with Traditional Roast Paan")) {
//Log.v("tmg", displayName);
rRecipes.add(db.getValue(RecipesInformation.class));
}
}
}
public static class res{
public static void selectedMenu(String recipe){
Log.d("tmg",recipe);
}
public static void selectedMenu(DataSnapshot db) {
RecipesInformation Recipes = db.getValue(RecipesInformation.class);
if (Recipes.getCompany().equals(displayName) && Recipes.getMenuList().equals("Panini with Traditional Roast Paan")) {
//Log.v("tmg", displayName);
rRecipes.add(db.getValue(RecipesInformation.class));
}
}
}