From 599abd37e84486f254dddcbb894e77fbcb347d41 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 24 Apr 2022 16:40:55 +0530 Subject: app: address SetTextI18n lint --- app/lint-baseline.xml | 11 ----------- .../aps/ui/autofill/AutofillPublisherChangedActivity.kt | 6 +++++- app/src/main/res/values/strings.xml | 1 + 3 files changed, 6 insertions(+), 12 deletions(-) (limited to 'app') diff --git a/app/lint-baseline.xml b/app/lint-baseline.xml index b4558863..3755e80a 100644 --- a/app/lint-baseline.xml +++ b/app/lint-baseline.xml @@ -1,15 +1,4 @@ - - - - diff --git a/app/src/main/java/dev/msfjarvis/aps/ui/autofill/AutofillPublisherChangedActivity.kt b/app/src/main/java/dev/msfjarvis/aps/ui/autofill/AutofillPublisherChangedActivity.kt index 4ab5f45a..794fad8c 100644 --- a/app/src/main/java/dev/msfjarvis/aps/ui/autofill/AutofillPublisherChangedActivity.kt +++ b/app/src/main/java/dev/msfjarvis/aps/ui/autofill/AutofillPublisherChangedActivity.kt @@ -111,7 +111,11 @@ class AutofillPublisherChangedActivity : AppCompatActivity() { warningAppInstallDate.text = getString(R.string.oreo_autofill_warning_publisher_install_time, installTime) val appInfo = packageManager.getApplicationInfo(appPackage, PackageManager.GET_META_DATA) - warningAppName.text = "“${packageManager.getApplicationLabel(appInfo)}”" + warningAppName.text = + getString( + R.string.oreo_autofill_warning_publisher_app_name, + packageManager.getApplicationLabel(appInfo) + ) val currentHash = computeCertificatesHash(this@AutofillPublisherChangedActivity, appPackage) warningAppAdvancedInfo.text = diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 13ed60c2..fcfc4ade 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -211,6 +211,7 @@ This app\'s publisher has changed since you first associated a Password Store entry with it: The currently installed app may be trying to steal your credentials by pretending to be a trusted app.\n\nTry to uninstall and reinstall the app from a trusted source, such as the Play Store, Amazon Appstore, F-Droid, or your phone manufacturer\'s store. Installed: %1$s + “%1$s“ Package:\n%1$s\n\nHash:\n%2$s Advanced information Keep Autofill disabled -- cgit v1.2.3