[#36] Small refactorign proposed by @negue

This commit is contained in:
Franze Jr 2015-11-14 10:06:22 -03:00
parent 29a8d965a9
commit 6090995d28

View file

@ -480,9 +480,8 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
@Override
public void onClick(View v) {
final BuyRewardTappedEvent event = new BuyRewardTappedEvent();
if (v == binding.btnReward || v == binding.imageView3 || v == binding.gearElementsLayout) {
BuyRewardTappedEvent event = new BuyRewardTappedEvent();
LinearLayout contentViewForDialog = createContentViewForDialog();
MaterialDialog dialog = createGearDialog(event, contentViewForDialog);