Skip to content

Commit df17d80

Browse files
ohall-mmergify[bot]
authored andcommitted
1940823 - Exchanging Removed Strings in Reference Browser
Patch substitutes strings on `WebExtensionInstallException.Blocklisted ` and `mozac_feature_addons_soft_blocked_1` that were recently removed. Basing the exchange on bug 1923268, which updated soft/hard block strings.
1 parent c07d8f3 commit df17d80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/mozilla/reference/browser/addons/WebExtensionPromptFeature.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,11 +281,11 @@ class WebExtensionPromptFeature(
281281
var title = context.getString(R.string.mozac_feature_addons_cant_install_extension, "")
282282
val message = when (exception) {
283283
is WebExtensionInstallException.Blocklisted -> {
284-
context.getString(R.string.mozac_feature_addons_blocklisted_1, addonName)
284+
context.getString(R.string.mozac_feature_addons_blocklisted_2, addonName, R.string.app_name)
285285
}
286286

287287
is WebExtensionInstallException.SoftBlocked -> {
288-
context.getString(R.string.mozac_feature_addons_soft_blocked, addonName)
288+
context.getString(R.string.mozac_feature_addons_soft_blocked_1, addonName, R.string.app_name)
289289
}
290290

291291
is WebExtensionInstallException.UserCancelled -> {

0 commit comments

Comments
 (0)