minor fix

This commit is contained in:
Negue 2015-11-24 23:34:18 +01:00
parent b1c3520e0e
commit cab560ee88
2 changed files with 2 additions and 2 deletions

View file

@ -269,7 +269,7 @@ public class HabitItemRecyclerViewAdapter<THabitItem extends Task>
public void bindHolder(THabitItem habitItem, int position) {
double itemvalue = habitItem.getValue();
Item = habitItem;
if (habitItem.notes.length() == 0) {
if (habitItem.notes == null || habitItem.notes.length() == 0) {
notesTextView.setHeight(0);
} else {
notesTextView.setLayoutParams(new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT));

View file

@ -36,7 +36,7 @@ public class GemsPurchaseFragment extends BaseFragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
this.usesTabLayout = true;
super.onCreateView(inflater, container, savedInstanceState);
View v = inflater.inflate(R.layout.fragment_gem_purchase, container, false);