-
-
Save jezinka/c1e0fd8844a41da0db14a3355054725d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static DinnerDialogFragment newInstance(long date, Dinner dinner) { | |
DinnerDialogFragment f = new DinnerDialogFragment(); | |
Bundle args = new Bundle(); | |
args.putLong("date", date); | |
if (dinner != null) { | |
args.putLong("dinnerId", dinner.getId()); | |
args.putLong("mealId", dinner.getMeal().getId()); | |
args.putString("mealName", dinner.getMeal().getName()); | |
} | |
f.setArguments(args); | |
return f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment