Skip to content

Commit

Permalink
Revert: return issue filtering code
Browse files Browse the repository at this point in the history
  • Loading branch information
phansier committed Feb 23, 2018
1 parent c4d3159 commit d3658ad
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,9 @@
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 @@ -69,6 +67,14 @@ protected int[] getChildViewIds() {
@Override
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);
}

@Override
Expand Down

0 comments on commit d3658ad

Please sign in to comment.