mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
[#36] Add validation for no custom image
This commit is contained in:
parent
689d6476de
commit
005a2ac66c
1 changed files with 4 additions and 2 deletions
|
|
@ -537,13 +537,15 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
|
||||||
gold.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_header_gold));
|
gold.setImageDrawable(context.getResources().getDrawable(R.drawable.ic_header_gold));
|
||||||
gold.setMinimumHeight(50);
|
gold.setMinimumHeight(50);
|
||||||
gold.setMinimumWidth(50);
|
gold.setMinimumWidth(50);
|
||||||
gold.setPadding(0,0,20,0);
|
gold.setPadding(0, 0, 20, 0);
|
||||||
|
|
||||||
bottomLayout.addView(gold);
|
bottomLayout.addView(gold);
|
||||||
bottomLayout.addView(priceTextView);
|
bottomLayout.addView(priceTextView);
|
||||||
bottomLayout.setGravity(Gravity.RIGHT);
|
bottomLayout.setGravity(Gravity.RIGHT);
|
||||||
|
|
||||||
l.addView(imageView);
|
if(imageView.getDrawable()!= null){
|
||||||
|
l.addView(imageView);
|
||||||
|
}
|
||||||
l.addView(t);
|
l.addView(t);
|
||||||
l.addView(bottomLayout);
|
l.addView(bottomLayout);
|
||||||
return l;
|
return l;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue