Issues and Pull Requests now display the repo they're in.
This commit is contained in:
Jedi Burrell 2017-05-15 11:12:49 -04:00
parent 6d2ffe0048
commit 2e5a7843d2
3 changed files with 2 additions and 4 deletions

View File

@ -261,7 +261,7 @@ public class IssuePagerActivity extends BaseActivity<IssuePagerMvp.View, IssuePa
.append(" ")
.append(getString(issueModel.getState().getStatus()))
.append(" ").append(getString(R.string.by)).append(" ").append(username).append(" ")
.append(parsedDate));
.append(parsedDate).append("\n").append(issueModel.getRepoId()));
avatarLayout.setUrl(userModel.getAvatarUrl(), userModel.getLogin());
}
pager.setAdapter(new FragmentsPagerAdapter(getSupportFragmentManager(), FragmentPagerAdapterModel.buildForIssues(this, issueModel)));

View File

@ -79,8 +79,6 @@ public class IssueTimelineFragment extends BaseFragment<IssueTimelineMvp.View, I
participants.clear();
participants.addAll(hashSet);
System.out.println("READ THIS: " + participants);
if (items == null || items.isEmpty()) {
adapter.clear();
return;

View File

@ -248,7 +248,7 @@ public class PullRequestPagerActivity extends BaseActivity<PullRequestPagerMvp.V
PullRequest pullRequest = getPresenter().getPullRequest();
setTitle(String.format("#%s", pullRequest.getNumber()));
boolean isMerge = !InputHelper.isEmpty(pullRequest.getMergedAt());
date.setText(getPresenter().getMergeBy(pullRequest, getApplicationContext()));
date.setText(getPresenter().getMergeBy(pullRequest, getApplicationContext())+"\n"+pullRequest.getRepoId());
size.setVisibility(View.GONE);
User userModel = pullRequest.getUser();
if (userModel != null) {