Skip to content

Commit

Permalink
Add mock for click on milestone
Browse files Browse the repository at this point in the history
  • Loading branch information
UEvgeniy committed Dec 16, 2017
1 parent 2c8f445 commit 56e2ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ public MilestoneListAdapter(final Context context,
setItems(elements);
}

@Override
public long getItemId(final int position) {
//todo
//return getItem(position).getId();
return 0;
}

@Override
protected int[] getChildViewIds() {
return new int[]{R.id.tv_milestone_title,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import android.support.v4.content.Loader;
import android.view.View;
import android.widget.ListView;
import android.widget.Toast;

import com.github.kevinsawicki.wishlist.SingleTypeAdapter;
import com.github.mobile.R;
Expand Down Expand Up @@ -92,17 +93,8 @@ protected SingleTypeAdapter<Milestone> createAdapter(List<Milestone> items) {
@Override
public void onListItemClick(ListView l, View v, int position, long id) {
final Milestone milestone = (Milestone) l.getItemAtPosition(position);
//todo
/*new RefreshUserTask(getActivity(), contributor.getLogin()) {
@Override
protected void onSuccess(User user) throws Exception {
super.onSuccess(user);
if (!AccountUtils.isUser(getActivity(), user))
startActivity(UserViewActivity.createIntent(user));
}
}.execute();*/
Toast.makeText(getContext(),milestone.getTitle(),Toast.LENGTH_SHORT).show();
//todo add open milestone view page
}

@Override
Expand Down

0 comments on commit 56e2ae2

Please sign in to comment.