Modern Apps git

← Modern-Apps.git

clock: fix all lint findings

Commit
cfc61e6e3de5a20b6ef8f0883f0e0d7297ef0671
Author
Vayun Mathur <[email protected]>
When
2026-11-17 03:31 UTC (19 days ago)
Parents
2bdf200
Fix every lint finding reported under clock/ so :clock:lintDev
reports zero errors and zero warnings for this module. Findings
outside clock/ (75 in library/, lead-owned) are untouched.

- ExtraTranslation (95) and UnusedResources (8, all in
  values-ar for the same keys): remove 95 locale entries across
  13 values-*/strings.xml files for 11 keys that have no
  default-locale source (label_clock, label_stopwatch,
  button_cancel, button_save, action_cancel, action_reset,
  action_stop, gradual_off, ringtone_default, ringtone_silent,
  ringtone_custom). Verified before deletion that no code,
  test, screenshot-test, manifest, widget provider or dynamic
  lookup (getIdentifier/reflection/concatenated names) in
  clock/ references these keys; code uses the clock default
  strings or UiR equivalents instead.
- PackageStructure: move FullscreenRevokedBanner out of
  MainActivity.kt into its own ui/FullscreenRevokedBanner.kt
  (public so MainActivity can call it), leaving MainActivity.kt
  containing only the MainActivity class. Behaviour unchanged;
  TimerReciever.kt spelling deliberately untouched as it is
  manifest-registered.
- LocalContextGetResourceValueCall (2): hoist
  stringResource(R.string.sound) in AlarmPage and
  AlarmSettingsPage and pass the resolved title into the
  ringtone picker intent instead of LocalContext.getString
  inside callbacks. AlarmSettingsPage no longer needs
  LocalContext at all.
- AutoboxingStateCreation hints (2): use mutableIntStateOf
  for the snooze and gradual-volume state in AlarmSettingsPage.
- ObsoleteSdkInt: drop the SDK_INT < S guard in
  AlarmReceiver.canStartForegroundService; minSdk is 31 (S),
  so the guard was always false.
- CommentedOutCode: reword the blocking-player comment in
  AlarmSoundService as plain prose (it previously named the
  blocking calls in code form, which the detector reads as
  commented-out code).

Suppressions: none. No @SuppressLint added, no lint/detekt
config, baseline or check changes.

Verification:
- Regenerated baseline on origin/main d687bc35a matched the
  supplied report: 185 total (0 errors, 180 warnings, 5 hints);
  110 in clock/ (108 warnings, 2 hints) and 75 outside clock/.
- /tmp/run-gradle-clock.sh :clock:lintDev: BUILD SUCCESSFUL;
  clock/ findings 0 errors, 0 warnings, 0 hints (75 findings
  remain, all under library/).
- /tmp/run-gradle-clock.sh :clock:testDevUnitTest: BUILD
  SUCCESSFUL, 245 tests, 0 failures, 0 errors, 0 skipped.

Diff

clock/src/main/java/com/vayunmathur/clock/MainActivity.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt b/clock/src/main/java/com/vayunmathur/clock/MainActivity.ktindex 6f0ec856dc..d2385aed92 100644--- a/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt+++ b/clock/src/main/java/com/vayunmathur/clock/MainActivity.kt@@ -3,38 +3,18 @@ package com.vayunmathur.clock import androidx.activity.viewModels import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.foundation.layout.padding-import androidx.compose.foundation.layout.Column-import androidx.compose.foundation.layout.fillMaxWidth-import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable-import androidx.compose.runtime.DisposableEffect-import androidx.compose.runtime.getValue-import androidx.compose.runtime.mutableIntStateOf-import androidx.compose.runtime.mutableStateOf-import androidx.compose.runtime.remember-import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier-import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource-import androidx.compose.ui.unit.dp-import androidx.lifecycle.Lifecycle-import androidx.lifecycle.LifecycleEventObserver-import androidx.lifecycle.compose.LocalLifecycleOwner import com.vayunmathur.clock.data.ClockRepository import com.vayunmathur.clock.platform.ClockViewModel import com.vayunmathur.clock.platform.ClockViewModelFactory import com.vayunmathur.clock.platform.createNotificationChannels+import com.vayunmathur.clock.ui.FullscreenRevokedBanner import com.vayunmathur.library.ui.AppPermissionsGate import com.vayunmathur.library.ui.AppPermissionsSpec-import com.vayunmathur.library.ui.Card-import com.vayunmathur.library.ui.IconAlarm-import com.vayunmathur.library.ui.ListItem import com.vayunmathur.library.ui.MaActivity import com.vayunmathur.library.ui.PermissionRequirement-import com.vayunmathur.library.ui.SpecialAccess-import com.vayunmathur.library.ui.Text-import com.vayunmathur.library.ui.TextButton import com.vayunmathur.library.util.DataStoreUtils  /**@@ -73,38 +53,3 @@ class MainActivity : MaActivity() {         }     } }--/**- * The gate above only runs at first launch; the full-screen permission is a- * toggle the user can revoke at any time afterwards, silently degrading every- * future alarm to a heads-up. Re-check on every resume and say so in-app,- * with a one-tap path back to the settings page.- */-@Composable-private fun FullscreenRevokedBanner(modifier: Modifier = Modifier) {-    val context = LocalContext.current-    var resumeEpoch by remember { mutableIntStateOf(0) }-    val lifecycleOwner = LocalLifecycleOwner.current-    DisposableEffect(lifecycleOwner) {-        val observer = LifecycleEventObserver { _, event ->-            if (event == Lifecycle.Event.ON_RESUME) resumeEpoch++-        }-        lifecycleOwner.lifecycle.addObserver(observer)-        onDispose { lifecycleOwner.lifecycle.removeObserver(observer) }-    }-    val revoked = remember(resumeEpoch) {-        !SpecialAccess.hasFullScreenIntent(context)-    }-    if (!revoked) return-    Card(modifier = modifier.padding(horizontal = 16.dp, vertical = 8.dp)) {-        ListItem(-            headlineContent = { Text(stringResource(R.string.alarm_fullscreen_revoked)) },-            leadingContent = { IconAlarm() },-            trailingContent = {-                TextButton(onClick = { SpecialAccess.requestFullScreenIntent(context) }) {-                    Text(stringResource(R.string.action_open_settings))-                }-            },-        )-    }-}
clock/src/main/java/com/vayunmathur/clock/platform/AlarmReceiver.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/platform/AlarmReceiver.kt b/clock/src/main/java/com/vayunmathur/clock/platform/AlarmReceiver.ktindex 90d4488a13..4b3b631eb5 100644--- a/clock/src/main/java/com/vayunmathur/clock/platform/AlarmReceiver.kt+++ b/clock/src/main/java/com/vayunmathur/clock/platform/AlarmReceiver.kt@@ -135,11 +135,9 @@ class AlarmReceiver : BroadcastReceiver() {         return notificationManager.canUseFullScreenIntent()     } -    private fun canStartForegroundService(context: Context): Boolean {-        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) return true-        return (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager)+    private fun canStartForegroundService(context: Context): Boolean =+        (context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager)             .areNotificationsEnabled()-    }      // Broad catch is deliberate: onReceive must not throw, and Room plus the     // scheduler throw undocumented RuntimeExceptions (not just SQLiteException).
clock/src/main/java/com/vayunmathur/clock/service/AlarmSoundService.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/service/AlarmSoundService.kt b/clock/src/main/java/com/vayunmathur/clock/service/AlarmSoundService.ktindex fb595d12e6..9ecdc80e74 100644--- a/clock/src/main/java/com/vayunmathur/clock/service/AlarmSoundService.kt+++ b/clock/src/main/java/com/vayunmathur/clock/service/AlarmSoundService.kt@@ -100,8 +100,8 @@ class AlarmSoundService : Service() {             val vibrate = alarm?.vibrate ?: true             val gradualSeconds = alarm?.gradualVolumeSeconds ?: 0 -            // setDataSource()/prepare() are blocking; run them on the IO-            // dispatcher (this coroutine) instead of the main thread.+            // Loading and preparing the player are blocking work, so they run+            // on the IO dispatcher (this coroutine) instead of the main thread.             //             // Vibration comes first: a stored ringtone can be a content:// URI owned by             // another app, and one that no longer resolves used to throw out of playAlarm
clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.ktindex f7a2f800a8..cdb81cd5d2 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmPage.kt@@ -11,6 +11,7 @@ import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.stringResource import com.vayunmathur.clock.R import com.vayunmathur.clock.Route import com.vayunmathur.clock.data.Alarm@@ -28,6 +29,7 @@ import kotlinx.datetime.LocalTime fun AlarmPage(backStack: NavBackStack<Route>, clockViewModel: ClockViewModel) {     val alarms by clockViewModel.alarms.collectAsState()     val context = LocalContext.current+    val soundTitle = stringResource(R.string.sound)     val alarmScheduler = AlarmScheduler      var pickingAlarmId by remember { mutableStateOf<Long?>(null) }@@ -85,7 +87,7 @@ fun AlarmPage(backStack: NavBackStack<Route>, clockViewModel: ClockViewModel) {                     ringtonePickerIntent(                         alarm.ringtoneUri,                         RingtoneManager.TYPE_ALARM,-                        context.getString(R.string.sound),+                        soundTitle,                     )                 )             }
clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.ktindex 2fe2baf462..6cc51820a3 100644--- a/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt+++ b/clock/src/main/java/com/vayunmathur/clock/ui/AlarmSettingsPage.kt@@ -4,11 +4,11 @@ import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.runtime.setValue-import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.res.stringResource import com.vayunmathur.clock.R import com.vayunmathur.clock.Route@@ -28,13 +28,13 @@ import kotlinx.coroutines.launch @OptIn(ExperimentalMaterial3Api::class) @Composable fun AlarmSettingsPage(backStack: NavBackStack<Route>, ds: DataStoreUtils) {-    val context = LocalContext.current     val scope = rememberCoroutineScope()      var ringtone by remember { mutableStateOf(ds.getString(ClockViewModel.KEY_DEFAULT_RINGTONE)) }     var vibrate by remember { mutableStateOf(ds.getBoolean(ClockViewModel.KEY_DEFAULT_VIBRATE, true)) }-    var snooze by remember { mutableStateOf((ds.getLong(ClockViewModel.KEY_DEFAULT_SNOOZE) ?: 5L).toInt()) }-    var gradual by remember { mutableStateOf((ds.getLong(ClockViewModel.KEY_DEFAULT_GRADUAL) ?: 0L).toInt()) }+    var snooze by remember { mutableIntStateOf((ds.getLong(ClockViewModel.KEY_DEFAULT_SNOOZE) ?: 5L).toInt()) }+    var gradual by remember { mutableIntStateOf((ds.getLong(ClockViewModel.KEY_DEFAULT_GRADUAL) ?: 0L).toInt()) }+    val soundTitle = stringResource(R.string.sound)      val ringtoneLauncher = rememberLauncherForActivityResult(         ActivityResultContracts.StartActivityForResult()@@ -66,7 +66,7 @@ fun AlarmSettingsPage(backStack: NavBackStack<Route>, ds: DataStoreUtils) {                     ringtonePickerIntent(                         ringtone,                         RingtoneManager.TYPE_ALARM,-                        context.getString(R.string.sound),+                        soundTitle,                     )                 )             },
clock/src/main/java/com/vayunmathur/clock/ui/FullscreenRevokedBanner.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/ui/FullscreenRevokedBanner.kt b/clock/src/main/java/com/vayunmathur/clock/ui/FullscreenRevokedBanner.ktnew file mode 100644index 0000000000..1e421d9a28--- /dev/null+++ b/clock/src/main/java/com/vayunmathur/clock/ui/FullscreenRevokedBanner.kt@@ -0,0 +1,58 @@+package com.vayunmathur.clock.ui++import androidx.compose.foundation.layout.padding+import androidx.compose.runtime.Composable+import androidx.compose.runtime.DisposableEffect+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalContext+import androidx.compose.ui.res.stringResource+import androidx.compose.ui.unit.dp+import androidx.lifecycle.Lifecycle+import androidx.lifecycle.LifecycleEventObserver+import androidx.lifecycle.compose.LocalLifecycleOwner+import com.vayunmathur.clock.R+import com.vayunmathur.library.ui.Card+import com.vayunmathur.library.ui.IconAlarm+import com.vayunmathur.library.ui.ListItem+import com.vayunmathur.library.ui.SpecialAccess+import com.vayunmathur.library.ui.Text+import com.vayunmathur.library.ui.TextButton++/**+ * The permission gate only runs at first launch; the full-screen permission is a+ * toggle the user can revoke at any time afterwards, silently degrading every+ * future alarm to a heads-up. Re-check on every resume and say so in-app,+ * with a one-tap path back to the settings page.+ */+@Composable+fun FullscreenRevokedBanner(modifier: Modifier = Modifier) {+    val context = LocalContext.current+    var resumeEpoch by remember { mutableIntStateOf(0) }+    val lifecycleOwner = LocalLifecycleOwner.current+    DisposableEffect(lifecycleOwner) {+        val observer = LifecycleEventObserver { _, event ->+            if (event == Lifecycle.Event.ON_RESUME) resumeEpoch+++        }+        lifecycleOwner.lifecycle.addObserver(observer)+        onDispose { lifecycleOwner.lifecycle.removeObserver(observer) }+    }+    val revoked = remember(resumeEpoch) {+        !SpecialAccess.hasFullScreenIntent(context)+    }+    if (!revoked) return+    Card(modifier = modifier.padding(horizontal = 16.dp, vertical = 8.dp)) {+        ListItem(+            headlineContent = { Text(stringResource(R.string.alarm_fullscreen_revoked)) },+            leadingContent = { IconAlarm() },+            trailingContent = {+                TextButton(onClick = { SpecialAccess.requestFullScreenIntent(context) }) {+                    Text(stringResource(R.string.action_open_settings))+                }+            },+        )+    }+}
clock/src/main/res/values-ar/strings.xml
diff --git a/clock/src/main/res/values-ar/strings.xml b/clock/src/main/res/values-ar/strings.xmlindex a207dd84e8..567976c009 100644--- a/clock/src/main/res/values-ar/strings.xml+++ b/clock/src/main/res/values-ar/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">الساعة</string>     <string name="label_alarm">المنبه</string>-    <string name="label_clock">الساعة</string>     <string name="label_timer">المؤقت</string>-    <string name="label_stopwatch">ساعة التوقيف</string>     <string name="set_an_alarm">اضبط منبه</string>     <string name="button_stop">إيقاف</string>     <string name="button_snooze">تأجيل (%1$d دقائق)</string>@@ -26,14 +24,9 @@     <string name="timer_finished_text">انتهى <xliff:g id="timer_name" example="Tea">%1$s</xliff:g>!</string>     <string name="action_pause">إيقاف مؤقت</string>     <string name="action_resume">استئناف</string>-    <string name="action_cancel">إلغاء</string>-    <string name="action_reset">إعادة الضبط</string>     <string name="action_lap">لفة</string>-    <string name="action_stop">إيقاف</string>     <string name="label_new_timer">مؤقت جديد</string>     <string name="field_label">التسمية</string>-    <string name="button_cancel">إلغاء</string>-    <string name="button_save">حفظ</string>     <string name="select_cities_title">اختر المدن</string>     <string name="search_city_hint">البحث عن مدينة أو منطقة…</string>     <string name="time_am">ص</string>@@ -43,7 +36,6 @@     <string name="analog_clock_widget_description">ساعة تناظرية بتصميم Material You - اضغط لفتح الساعة</string>     <string name="alarm_settings">إعدادات المنبه</string>     <string name="defaults_for_new_alarms">الإعدادات الافتراضية للمنبهات الجديدة</string>-    <string name="gradual_off">معطّل</string>     <string name="timer_name_optional">اسم المؤقت (اختياري)</string>     <string name="alarm_label_hint">اسم المنبه (اختياري)</string>     <string name="sound">الصوت</string>
clock/src/main/res/values-az/strings.xml
diff --git a/clock/src/main/res/values-az/strings.xml b/clock/src/main/res/values-az/strings.xmlindex 0555dab101..bf4b582246 100644--- a/clock/src/main/res/values-az/strings.xml+++ b/clock/src/main/res/values-az/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Saat</string>     <string name="label_alarm">Siqnal</string>-    <string name="label_clock">Saat</string>     <string name="label_timer">Taymer</string>-    <string name="label_stopwatch">Saniyəölçən</string>     <string name="set_an_alarm">Siqnal qurun</string>     <string name="button_stop">Dayan</string>     <string name="button_snooze">Təxirə sal (%1$d dəq.)</string>@@ -31,14 +29,9 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tea">%1$s</xliff:g> bitdi!</string>     <string name="action_pause">Fasilə</string>     <string name="action_resume">Dayandır</string>-    <string name="action_cancel">Ləğv et</string>-    <string name="action_reset">Sıfırla</string>     <string name="action_lap">Dövrə</string>-    <string name="action_stop">Dayan</string>     <string name="label_new_timer">Yeni taymer</string>     <string name="field_label">Etiket</string>-    <string name="button_cancel">Ləğv et</string>-    <string name="button_save">Yadda saxla</string>     <string name="select_cities_title">Şəhərləri seçin</string>     <string name="search_city_hint">Şəhər və ya bölgə axtarın…</string>     <string name="time_am">Səhər</string>@@ -48,7 +41,6 @@     <string name="analog_clock_widget_description">\"Material You\" üslubunda analoq saat – saatı açmaq üçün toxunun</string>     <string name="alarm_settings">Siqnal parametrləri</string>     <string name="defaults_for_new_alarms">Yeni siqnallar üçün standart parametrlər</string>-    <string name="gradual_off">Söndürülüb</string>     <string name="timer_name_optional">Taymerin adı (isteğe bağlı)</string>     <string name="alarm_label_hint">Siqnalın adı (isteğe bağlı)</string>     <string name="sound">Səs</string>
clock/src/main/res/values-cs/strings.xml
diff --git a/clock/src/main/res/values-cs/strings.xml b/clock/src/main/res/values-cs/strings.xmlindex 3cc657a350..4d4fefd500 100644--- a/clock/src/main/res/values-cs/strings.xml+++ b/clock/src/main/res/values-cs/strings.xml@@ -1,9 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">-    <string name="label_stopwatch">Stopky</string>     <string name="app_name">Hodiny</string>     <string name="label_alarm">Budík</string>-    <string name="label_clock">Hodiny</string>     <string name="label_timer">Časovač</string>     <string name="set_an_alarm">Nastavit budík</string>     <string name="button_stop">STOP</string>@@ -17,8 +15,6 @@     <string name="button_add_minute">+ 1:00</string>     <string name="label_new_timer">Nový časovač</string>     <string name="field_label">Název</string>-    <string name="button_cancel">Zrušit</string>-    <string name="button_save">Uložit</string>     <string name="select_cities_title">Vyberte města</string>     <string name="search_city_hint">Hledat město nebo oblast…</string>     <string name="time_am">dop.</string>@@ -40,11 +36,7 @@     <string name="channel_stopwatch_description">Ovládání stopek</string>     <string name="action_pause">Pozastavit</string>     <string name="action_resume">Pokračovat</string>-    <string name="action_cancel">Zrušit</string>-    <string name="action_reset">Obnovit</string>     <string name="action_lap">Kolo</string>-    <string name="action_stop">Zastavit</string>     <string name="alarm_settings">Nastavení budíku</string>     <string name="defaults_for_new_alarms">Výchotí pro nové budíky</string>-    <string name="gradual_off">Vypnuto</string> </resources>
clock/src/main/res/values-de/strings.xml
diff --git a/clock/src/main/res/values-de/strings.xml b/clock/src/main/res/values-de/strings.xmlindex 6adca58363..614c59c574 100644--- a/clock/src/main/res/values-de/strings.xml+++ b/clock/src/main/res/values-de/strings.xml@@ -1,10 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <resources>     <string name="label_timer">Timer</string>-    <string name="label_clock">Uhr</string>     <string name="label_alarm">Wecker</string>     <string name="app_name">Uhr</string>-    <string name="label_stopwatch">Stoppuhr</string>     <string name="set_an_alarm">Wecker stellen</string>     <string name="button_stop">STOPP</string>     <string name="button_snooze">SCHLUMMERN (%1$d MIN)</string>@@ -26,8 +24,6 @@     <string name="timer_finished_text">%1$s ist geendet!</string>     <string name="label_new_timer">Neuer Timer</string>     <string name="field_label">Label</string>-    <string name="button_cancel">Abbrechen</string>-    <string name="button_save">Speichern</string>     <string name="select_cities_title">Städte auswählen</string>     <string name="search_city_hint">Suche nach Stadt oder Region…</string>     <string name="grant_notifications_permission">Erlaube Benachrichtigungen</string>
clock/src/main/res/values-et/strings.xml
diff --git a/clock/src/main/res/values-et/strings.xml b/clock/src/main/res/values-et/strings.xmlindex 8508fbd86c..eccb74da71 100644--- a/clock/src/main/res/values-et/strings.xml+++ b/clock/src/main/res/values-et/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Kell</string>     <string name="label_alarm">Äratus</string>-    <string name="label_clock">Kell</string>     <string name="label_timer">Taimer</string>-    <string name="label_stopwatch">Stopper</string>     <string name="button_stop">LÕPETA</string>     <string name="button_snooze">LÜKKA EDASI (%1$d MIN)</string>     <string name="alarm_ringing_notification_title">On äratuse aeg</string>@@ -26,8 +24,6 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tee">%1$s</xliff:g> - taimer on lõpetanud!</string>     <string name="label_new_timer">Uus taimer</string>     <string name="field_label">Silt</string>-    <string name="button_cancel">Katkesta</string>-    <string name="button_save">Salvesta</string>     <string name="select_cities_title">Vali linnad</string>     <string name="search_city_hint">Otsi linna või piirkonda…</string>     <string name="time_am">el (AM)</string>@@ -40,12 +36,8 @@     <string name="channel_stopwatch_description">Stopperi juhtnupud</string>     <string name="action_pause">Peata</string>     <string name="action_resume">Jätka</string>-    <string name="action_cancel">Katkesta</string>-    <string name="action_reset">Lähtesta</string>     <string name="action_lap">Ringi aeg</string>-    <string name="action_stop">Lõpeta</string>     <string name="defaults_for_new_alarms">Vaikimisi väärtused uute äratuste jaoks</string>-    <string name="gradual_off">Väljas</string>     <string name="alarm_settings">Äratuse seadistused</string>     <string name="timer_name_optional">Taimeri nimi (kui soovid lisada)</string>     <string name="sound">Heli</string>
clock/src/main/res/values-fr/strings.xml
diff --git a/clock/src/main/res/values-fr/strings.xml b/clock/src/main/res/values-fr/strings.xmlindex d9e942474e..e98f2db2c2 100644--- a/clock/src/main/res/values-fr/strings.xml+++ b/clock/src/main/res/values-fr/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Horloge</string>     <string name="label_alarm">Alarme</string>-    <string name="label_clock">Horloge</string>     <string name="label_timer">Minuteur</string>-    <string name="label_stopwatch">Chronomètre</string>     <string name="set_an_alarm">Configurer une alarme</string>     <string name="button_stop">ARRÊTER</string>     <string name="button_snooze">REPORTER (%1$d MIN)</string>@@ -25,8 +23,6 @@     <string name="timer_finished_text">Le minuteur « <xliff:g id="timer_name" example="Thé">%1$s</xliff:g> » est écoulé !</string>     <string name="label_new_timer">Nouveau minuteur</string>     <string name="field_label">Libellé</string>-    <string name="button_cancel">Annuler</string>-    <string name="button_save">Enregistrer</string>     <string name="select_cities_title">Sélectionner des villes</string>     <string name="search_city_hint">Rechercher une ville ou région…</string>     <string name="time_am">AM</string>@@ -40,12 +36,8 @@     <string name="channel_stopwatch_description">Commandes du chronomètre</string>     <string name="action_pause">Pause</string>     <string name="action_resume">Reprendre</string>-    <string name="action_cancel">Annuler</string>-    <string name="action_reset">Réinitialiser</string>     <string name="action_lap">Tour</string>-    <string name="action_stop">Arrêter</string>     <string name="defaults_for_new_alarms">Paramètres par défaut des nouvelles alarmes</string>-    <string name="gradual_off">Désactivé</string>     <string name="alarm_settings">Paramètres des alarmes</string>     <string name="timer_name_optional">Nom du minuteur (facultatif)</string>     <string name="sound">Son</string>
clock/src/main/res/values-it/strings.xml
diff --git a/clock/src/main/res/values-it/strings.xml b/clock/src/main/res/values-it/strings.xmlindex 4462d32b44..1bf0425103 100644--- a/clock/src/main/res/values-it/strings.xml+++ b/clock/src/main/res/values-it/strings.xml@@ -2,9 +2,7 @@ <resources>     <string name="app_name">Orologio</string>     <string name="label_alarm">Sveglia</string>-    <string name="label_clock">Orologio</string>     <string name="label_timer">Timer</string>-    <string name="label_stopwatch">Cronometro</string>     <string name="grant_notifications_permission">Concedi autorizzazione notifiche</string>     <string name="set_an_alarm">Imposta una sveglia</string>     <string name="button_stop">INTERROMPI</string>@@ -28,8 +26,6 @@     <string name="timer_finished_text">%1$s terminato!</string>     <string name="label_new_timer">Nuovo timer</string>     <string name="field_label">Etichetta</string>-    <string name="button_cancel">Annulla</string>-    <string name="button_save">Salva</string>     <string name="select_cities_title">Seleziona città</string>     <string name="search_city_hint">Cerca città o regione…</string>     <string name="time_am">AM</string>@@ -40,13 +36,9 @@     <string name="channel_stopwatch_description">Controlli cronometro</string>     <string name="action_pause">Pausa</string>     <string name="action_resume">Riprendi</string>-    <string name="action_cancel">Annulla</string>-    <string name="action_reset">Reimposta</string>     <string name="action_lap">Giro</string>-    <string name="action_stop">Interrompi</string>     <string name="alarm_settings">Impostazioni sveglia</string>     <string name="defaults_for_new_alarms">Impostazioni predefinite per le nuove sveglie</string>-    <string name="gradual_off">Disattivo</string>     <string name="timer_name_optional">Nome timer (opzionale)</string>     <string name="sound">Suono</string>     <string name="vibrate">Vibrazione</string>
clock/src/main/res/values-ja/strings.xml
diff --git a/clock/src/main/res/values-ja/strings.xml b/clock/src/main/res/values-ja/strings.xmlindex 95266c20cb..5f6765fe85 100644--- a/clock/src/main/res/values-ja/strings.xml+++ b/clock/src/main/res/values-ja/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">時計</string>     <string name="label_alarm">アラーム</string>-    <string name="label_clock">時計</string>     <string name="label_timer">タイマー</string>-    <string name="label_stopwatch">ストップウォッチ</string>     <string name="set_an_alarm">アラームをセット</string>     <string name="button_stop">停止</string>     <string name="button_snooze">スヌーズ (%1$d分)</string>@@ -29,14 +27,9 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tea">%1$s</xliff:g> が終了しました!</string>     <string name="action_pause">一時停止</string>     <string name="action_resume">再開</string>-    <string name="action_cancel">キャンセル</string>-    <string name="action_reset">リセット</string>     <string name="action_lap">ラップ</string>-    <string name="action_stop">停止</string>     <string name="label_new_timer">新しいタイマー</string>     <string name="field_label">ラベル</string>-    <string name="button_cancel">キャンセル</string>-    <string name="button_save">保存</string>     <string name="select_cities_title">都市を選択</string>     <string name="search_city_hint">都市または地域を検索…</string>     <string name="time_am">午前</string>@@ -46,10 +39,6 @@     <string name="analog_clock_widget_description">Material Youアナログ時計 - タップして時計を開く</string>     <string name="alarm_settings">アラームの設定</string>     <string name="defaults_for_new_alarms">新しいアラームのデフォルト</string>-    <string name="gradual_off">オフ</string>-    <string name="ringtone_default">デフォルト</string>-    <string name="ringtone_silent">無音</string>-    <string name="ringtone_custom">カスタム</string>     <string name="timer_name_optional">タイマーの名前 (オプション)</string>     <string name="sound">音</string>     <string name="vibrate">バイブレーション</string>
clock/src/main/res/values-pl/strings.xml
diff --git a/clock/src/main/res/values-pl/strings.xml b/clock/src/main/res/values-pl/strings.xmlindex 7d9cb8d97e..f6f4b5fd71 100644--- a/clock/src/main/res/values-pl/strings.xml+++ b/clock/src/main/res/values-pl/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Zegar</string>     <string name="label_alarm">Alarm</string>-    <string name="label_clock">Zegar</string>     <string name="label_timer">Minutnik</string>-    <string name="label_stopwatch">Stoper</string>     <string name="button_stop">STOP</string>     <string name="button_snooze">DRZEMKA (%1$d MIN)</string>     <string name="alarm_ringing_notification_title">Dzwoni alarm</string>@@ -26,8 +24,6 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tea">%1$s</xliff:g> – odliczanie zakończone!</string>     <string name="label_new_timer">Nowy minutnik</string>     <string name="field_label">Etykieta</string>-    <string name="button_cancel">Anuluj</string>-    <string name="button_save">Zapisz</string>     <string name="select_cities_title">Wybór miast</string>     <string name="search_city_hint">Wyszukaj miasto lub region…</string>     <string name="time_am">AM</string>@@ -40,13 +36,9 @@     <string name="channel_stopwatch_description">Sterowanie stoperem</string>     <string name="action_pause">Pauza</string>     <string name="action_resume">Wznów</string>-    <string name="action_cancel">Anuluj</string>-    <string name="action_reset">Resetuj</string>     <string name="action_lap">Okrążenie</string>-    <string name="action_stop">Zatrzymaj</string>     <string name="alarm_settings">Ustawienia alarmu</string>     <string name="defaults_for_new_alarms">Domyślne dla nowych alarmów</string>-    <string name="gradual_off">Wyłącz</string>     <string name="snooze_length">Długość drzemki</string>     <string name="gradually_increase_volume">Stopniowe zwiększanie głośności</string>     <string name="sound">Dzwięk</string>
clock/src/main/res/values-pt-rBR/strings.xml
diff --git a/clock/src/main/res/values-pt-rBR/strings.xml b/clock/src/main/res/values-pt-rBR/strings.xmlindex 7a96f3991f..f22d635afe 100644--- a/clock/src/main/res/values-pt-rBR/strings.xml+++ b/clock/src/main/res/values-pt-rBR/strings.xml@@ -2,12 +2,8 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Relógio</string>     <string name="label_alarm">Alarme</string>-    <string name="label_clock">Relógio</string>     <string name="label_timer">Temporizador</string>-    <string name="label_stopwatch">Cronômetro</string>-    <string name="button_save">Salvar</string>     <string name="time_pm">PM</string>-    <string name="button_cancel">Cancelar</string>     <string name="time_am">AM</string>     <string name="header_total">Total</string> </resources>
clock/src/main/res/values-pt/strings.xml
diff --git a/clock/src/main/res/values-pt/strings.xml b/clock/src/main/res/values-pt/strings.xmlindex 88a42798bd..5aab443d68 100644--- a/clock/src/main/res/values-pt/strings.xml+++ b/clock/src/main/res/values-pt/strings.xml@@ -1,12 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <resources>     <string name="label_alarm">Alarme</string>-    <string name="label_clock">Relógio</string>     <string name="label_timer">Temporizador</string>-    <string name="label_stopwatch">Cronómetro</string>     <string name="header_total">Total</string>-    <string name="button_cancel">Cancelar</string>-    <string name="button_save">Gravar</string>     <string name="time_am">AM</string>     <string name="time_pm">PM</string>     <string name="app_name">Relógio</string>
clock/src/main/res/values-sv/strings.xml
diff --git a/clock/src/main/res/values-sv/strings.xml b/clock/src/main/res/values-sv/strings.xmlindex 47fb587d7b..f674ebc978 100644--- a/clock/src/main/res/values-sv/strings.xml+++ b/clock/src/main/res/values-sv/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">Klocka</string>     <string name="label_alarm">Alarm</string>-    <string name="label_clock">Klocka</string>     <string name="label_timer">Timer</string>-    <string name="label_stopwatch">Stoppur</string>     <string name="set_an_alarm">Ställ in ett alarm</string>     <string name="button_stop">STOPPA</string>     <string name="button_snooze">SLUMRA (%1$d MIN)</string>@@ -31,14 +29,9 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tea">%1$s</xliff:g> är klar!</string>     <string name="action_pause">Pausa</string>     <string name="action_resume">Återuppta</string>-    <string name="action_cancel">Avbryt</string>-    <string name="action_reset">Återställ</string>     <string name="action_lap">Varv</string>-    <string name="action_stop">Stoppa</string>     <string name="label_new_timer">Ny timer</string>     <string name="field_label">Etikett</string>-    <string name="button_cancel">Avbryt</string>-    <string name="button_save">Spara</string>     <string name="select_cities_title">Välj städer</string>     <string name="search_city_hint">Sök stad eller region…</string>     <string name="time_am">fm</string>@@ -48,7 +41,6 @@     <string name="analog_clock_widget_description">Analog Material You-klocka – tryck för att öppna klockan</string>     <string name="alarm_settings">Alarminställningar</string>     <string name="defaults_for_new_alarms">Standardvärden för nya alarm</string>-    <string name="gradual_off">Av</string>     <string name="timer_name_optional">Timernamn (valfritt)</string>     <string name="alarm_label_hint">Alarmnamn (valfritt)</string>     <string name="sound">Ljud</string>
clock/src/main/res/values-zh-rCN/strings.xml
diff --git a/clock/src/main/res/values-zh-rCN/strings.xml b/clock/src/main/res/values-zh-rCN/strings.xmlindex 9049fe110a..65f5f06f08 100644--- a/clock/src/main/res/values-zh-rCN/strings.xml+++ b/clock/src/main/res/values-zh-rCN/strings.xml@@ -2,9 +2,7 @@ <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">     <string name="app_name">时钟</string>     <string name="label_alarm">闹钟</string>-    <string name="label_clock">时钟</string>     <string name="label_timer">定时器</string>-    <string name="label_stopwatch">秒表</string>     <string name="set_an_alarm">设置闹钟</string>     <string name="button_stop">停止</string>     <string name="button_snooze">暂停(%1$d 分钟)</string>@@ -27,8 +25,6 @@     <string name="timer_finished_text"><xliff:g id="timer_name" example="Tea">%1$s</xliff:g> 已结束!</string>     <string name="label_new_timer">新定时器</string>     <string name="field_label">标签</string>-    <string name="button_cancel">取消</string>-    <string name="button_save">保存</string>     <string name="select_cities_title">选择城市</string>     <string name="search_city_hint">搜索城市或地区…</string>     <string name="time_am">上午</string>@@ -39,13 +35,9 @@     <string name="channel_stopwatch_name">秒表</string>     <string name="channel_stopwatch_description">秒表控制</string>     <string name="action_pause">暂停</string>-    <string name="action_cancel">取消</string>     <string name="action_resume">继续</string>-    <string name="action_reset">重置</string>     <string name="action_lap">一圈</string>-    <string name="action_stop">停止</string>     <string name="defaults_for_new_alarms">新闹钟的默认设置</string>-    <string name="gradual_off">已关闭</string>     <string name="alarm_settings">闹钟设置</string>     <string name="timer_name_optional">定时器名称(可选)</string>     <string name="sound">声音</string>