Aperture: Make "Permissions not granted by the user." translatable
Change-Id: Ie3facf6b1be5c48394c2f5b425240d353fdecdec
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index 5e5b839..0d2f19f 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -356,9 +356,7 @@
if (requestCode == REQUEST_CODE_PERMISSIONS) {
if (!allPermissionsGranted()) {
Toast.makeText(
- this,
- "Permissions not granted by the user.",
- Toast.LENGTH_SHORT
+ this, getString(R.string.app_permissions_toast), Toast.LENGTH_SHORT
).show()
finish()
}
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7fd8abf..ff0df23 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -19,6 +19,9 @@
<!-- Record chip -->
<string translatable="false" name="record_chip_default_text">00:00:00</string>
+ <!-- Permissions toast -->
+ <string name="app_permissions_toast">Permissions not granted by the user.</string>
+
<!-- QR dialog -->
<string name="qr_copy">Copy to clipboard</string>
<string name="qr_title">Scan result</string>