Skip to content

Commit

Permalink
Fix bug #77
Browse files Browse the repository at this point in the history
  • Loading branch information
tsnik committed Jan 27, 2018
1 parent 5f549cc commit 33e9980
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions app/src/main/java/com/github/mobile/ui/milestone/IssueDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private void load() {
public ArrayList<Issue> run(Account account) throws Exception {
ArrayList<Issue> issues = new ArrayList<Issue>();
String[] repid = repository.generateId().split("/");
issues.addAll(service.getIssues(repid[0],repid[1], "none").execute().body());
issues.addAll(service.getIssues(repid[0], repid[1], "none").execute().body());
return issues;
}

Expand All @@ -89,7 +89,9 @@ protected void onSuccess(ArrayList<Issue> all) throws Exception {
super.onSuccess(all);

repositoryIssues = all;
show();
IssueDialogFragment.show(activity, requestCode,
activity.getString(R.string.ms_select_issue), null,
repositoryIssues);
}

@Override
Expand All @@ -111,16 +113,8 @@ public void execute() {

/**
* Show dialog
*
*/
public void show() {
if (repositoryIssues == null) {
load();
return;
}

IssueDialogFragment.show(activity, requestCode,
activity.getString(R.string.ms_select_issue), null,
repositoryIssues);
load();
}
}

0 comments on commit 33e9980

Please sign in to comment.