Skip to content

Commit

Permalink
properly pass size to quantity string
Browse files Browse the repository at this point in the history
fixes #211
  • Loading branch information
newhinton committed Jan 20, 2024
1 parent be3137d commit 6dd350a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ android {
getByName("debug") {
applicationIdSuffix = ".debug"
versionNameSuffix = "-DEBUG"
buildConfigField "java.lang.String", "VCP_AUTHORITY", "\"" + defaultConfig.applicationId + ".debug.vcp\"";
resValue("string", "app_name", "RS Debug")
resValue("string", "app_short_name", "RS Debug")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ public Cursor queryRoots(@Nullable String[] projection) {
FLog.v(TAG, "queryRoots: no remote data change");
}
}, asyncExc);
String summary = context.getResources().getQuantityString(R.plurals.virtual_content_provider_summary, remotes.size());
int size = remotes.size();
String summary = context.getResources().getQuantityString(R.plurals.virtual_content_provider_summary, size, size);
return buildRoot(R.mipmap.ic_launcher, R.string.app_name, summary, flags);
} else {
FLog.v(TAG, "queryRoots: VCP loading");
Expand Down

0 comments on commit 6dd350a

Please sign in to comment.