Skip to content

Commit

Permalink
Crush fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Motoaleks committed Jan 6, 2018
1 parent ce9fb35 commit 620200e
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.CompoundButton;
import android.widget.ListView;

import com.github.kevinsawicki.wishlist.SingleTypeAdapter;
import com.github.kevinsawicki.wishlist.ViewUpdater;
import com.github.kevinsawicki.wishlist.ViewUtils;
import com.github.mobile.R;
import com.github.mobile.ui.DialogFragmentActivity;
Expand Down Expand Up @@ -68,13 +70,14 @@ protected int[] getChildViewIds() {
protected void update(int position, Milestone item) {
setText(1, item.getTitle());

String description = item.getDescription();
if (!TextUtils.isEmpty(description))
ViewUtils.setGone(setText(2, description), false);
else
setGone(2, true);

setChecked(0, selected == position);
// Due to updated milestone_item.xml this is excluded
// String description = item.getDescription();
// if (!TextUtils.isEmpty(description))
// ViewUtils.setGone(setText(2, description), false);
// else
// setGone(2, true);
//
// setChecked(0, selected == position);
}

@Override
Expand Down

0 comments on commit 620200e

Please sign in to comment.