Skip to content

Commit

Permalink
Update to latest bindings
Browse files Browse the repository at this point in the history
Fixes #1332, #1277
  • Loading branch information
maniac103 committed Jul 2, 2024
1 parent 0e07622 commit 667022f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ dependencies {
exclude group: 'xpp3', module: 'xpp3'
}
implementation 'com.github.maniac103:rxloader:master-SNAPSHOT'
implementation 'com.github.maniac103:githubsdk:0.7.0.14'
implementation 'com.github.maniac103:githubsdk:0.7.0.15'
implementation 'com.larswerkman:HoloColorPicker:1.5@aar'
implementation 'com.caverock:androidsvg-aar:1.4'
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.25'
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/java/com/gh4a/fragment/RepositoryFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,13 +448,14 @@ private void loadPullRequestCount(boolean force) {
.map(SearchPage::totalCount)
.compose(makeLoaderSingle(ID_LOADER_PULL_REQUEST_COUNT, force))
.subscribe(count -> {
int issueCount = mRepository.openIssuesCount() - count;
int totalCount = count.intValue();
int issueCount = mRepository.openIssuesCount() - totalCount;

OverviewRow issuesRow = mContentView.findViewById(R.id.issues_row);
issuesRow.setText(getResources().getQuantityString(R.plurals.issue, issueCount, issueCount));

OverviewRow pullsRow = mContentView.findViewById(R.id.pulls_row);
pullsRow.setText(getResources().getQuantityString(R.plurals.pull_request, count, count));
pullsRow.setText(getResources().getQuantityString(R.plurals.pull_request, totalCount, totalCount));
}, this::handleLoadFailure);
}

Expand Down

0 comments on commit 667022f

Please sign in to comment.