Merge "Remove hardcoded URL string" into sc-dev

This commit is contained in:
Alex Johnston
2021-03-31 10:35:51 +00:00
committed by Android (Google) Code Review
2 changed files with 7 additions and 2 deletions

View File

@@ -6562,6 +6562,11 @@
<string name="certificate_management_app_description">Certificates installed by this app identify you to the apps and URLs below</string> <string name="certificate_management_app_description">Certificates installed by this app identify you to the apps and URLs below</string>
<!-- Label for button to remove the credential management app [CHAR LIMIT=30] --> <!-- Label for button to remove the credential management app [CHAR LIMIT=30] -->
<string name="remove_credential_management_app">Remove</string> <string name="remove_credential_management_app">Remove</string>
<!-- List item found in the credential management app's authentication policy [CHAR LIMIT=NONE] -->
<plurals name="number_of_urls">
<item quantity="one"><xliff:g id="number">%d</xliff:g> URL</item>
<item quantity="other"><xliff:g id="number">%d</xliff:g> URLs</item>
</plurals>
<!-- Sound settings screen, setting check box label --> <!-- Sound settings screen, setting check box label -->
<string name="emergency_tone_title">Emergency dialing signal</string> <string name="emergency_tone_title">Emergency dialing signal</string>

View File

@@ -190,8 +190,8 @@ public class CredentialManagementAppAdapter extends RecyclerView.Adapter<Recycle
} }
private String getNumberOfUrlsText(Map<Uri, String> urisToAliases) { private String getNumberOfUrlsText(Map<Uri, String> urisToAliases) {
String url = urisToAliases.size() > 1 ? " URLs" : " URL"; return mContext.getResources().getQuantityString(R.plurals.number_of_urls,
return urisToAliases.size() + url; urisToAliases.size(), urisToAliases.size());
} }
} }