Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mock for click on milestone
Browse files Browse the repository at this point in the history
UEvgeniy committed Dec 16, 2017

Unverified

This user has not yet uploaded their public signing key.
1 parent 2c8f445 commit 56e2ae2
Showing 2 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -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,
Original file line number Diff line number Diff line change
@@ -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;
@@ -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

0 comments on commit 56e2ae2

Please sign in to comment.