Merge pull request #69 from HabitRPG/rewards-design

[#36] Open dialog only using the button
This commit is contained in:
negue 2015-11-27 22:39:27 +01:00
commit 8b7cbcac8f

View file

@ -509,12 +509,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);
}