mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-20 21:05:00 +00:00
Merge pull request #69 from HabitRPG/rewards-design
[#36] Open dialog only using the button
This commit is contained in:
commit
8b7cbcac8f
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue