Closed ViliusKraujutis closed 9 years ago
In my company's A-Team, we always define constants for putting and retrieving values from getArguments().
getArguments()
I've noticed it's not practiced here: https://github.com/gdg-x/frisbee/pull/188#discussion_r24403811
I'd like to fix this. What do you think guys if (e.g. in this file) instead of:
arguments.putString("category", cat); getArguments().getString("category")
would be:
private static final String ARGS_KEY_CATEGORY = "category" arguments.putString(ARGS_KEY_CATEGORY, cat); getArguments().getString(ARGS_KEY_CATEGORY)
:+1:
Assigned to @ViliusKraujutis :-)
:+1: Thanks. Considering this as approval for this change. :)
Yes, keep the Pull Requests coming. This is a community effort.
In my company's A-Team, we always define constants for putting and retrieving values from
getArguments()
.I've noticed it's not practiced here: https://github.com/gdg-x/frisbee/pull/188#discussion_r24403811
I'd like to fix this. What do you think guys if (e.g. in this file) instead of:
would be: