Merge "Remove hardcoded URL string" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a05759cb7d
@@ -6562,6 +6562,11 @@
|
||||
<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] -->
|
||||
<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 -->
|
||||
<string name="emergency_tone_title">Emergency dialing signal</string>
|
||||
|
@@ -190,8 +190,8 @@ public class CredentialManagementAppAdapter extends RecyclerView.Adapter<Recycle
|
||||
}
|
||||
|
||||
private String getNumberOfUrlsText(Map<Uri, String> urisToAliases) {
|
||||
String url = urisToAliases.size() > 1 ? " URLs" : " URL";
|
||||
return urisToAliases.size() + url;
|
||||
return mContext.getResources().getQuantityString(R.plurals.number_of_urls,
|
||||
urisToAliases.size(), urisToAliases.size());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user