[#36] Open dialog only using the button

This commit is contained in:
Franze Jr 2015-11-16 19:37:23 -03:00
parent d0e0094a86
commit b284a9a236

View file

@ -496,12 +496,11 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
@Override
public void onClick(View v) {
if (v == binding.btnReward || v == binding.imageView3 || v == binding.gearElementsLayout) {
if (v == binding.btnReward) {
LinearLayout contentViewForDialog = createContentViewForDialog();
MaterialDialog dialog = createGearDialog(contentViewForDialog);
dialog.show();
} else super.onClick(v);
}