mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-23 14:17:15 +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.setMinimumHeight(50);
|
||||
gold.setMinimumWidth(50);
|
||||
gold.setPadding(0,0,20,0);
|
||||
gold.setPadding(0, 0, 20, 0);
|
||||
|
||||
bottomLayout.addView(gold);
|
||||
bottomLayout.addView(priceTextView);
|
||||
bottomLayout.setGravity(Gravity.RIGHT);
|
||||
|
||||
l.addView(imageView);
|
||||
if(imageView.getDrawable()!= null){
|
||||
l.addView(imageView);
|
||||
}
|
||||
l.addView(t);
|
||||
l.addView(bottomLayout);
|
||||
return l;
|
||||
|
|
|
|||
Loading…
Reference in a new issue