tuner: fix all lint findings
- Commit
cfaa17a434bfc2b8437c8e3c6d8729b5c4e687dd- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-17 04:58 UTC (19 days ago)
- Parents
924c2e3
Fix every lint warning reported for the tuner module's own sources by :tuner:lintDev, now 0 errors / 0 warnings for tuner/** (remaining report entries are transitive library findings owned by other clusters). UnusedResources: deleted six verified-unused strings (permission_rationale, permission_action, permission_settings, instrument_title, chord_unimplemented_title, chord_unimplemented_detail) from the default and Estonian locale files; no code or dynamic lookup references them. NotificationPermission: added POST_NOTIFICATIONS to the manifest. No @SuppressLint added; no lint config or baseline changed. Verified: ./gradlew :tuner:lintDev (0 own-module errors/warnings) and :tuner:testDevUnitTest green.
Diff
tuner/src/main/AndroidManifest.xml
diff --git a/tuner/src/main/AndroidManifest.xml b/tuner/src/main/AndroidManifest.xmlindex f304b0567a..bd8c009ad7 100644--- a/tuner/src/main/AndroidManifest.xml+++ b/tuner/src/main/AndroidManifest.xml@@ -7,6 +7,7 @@ <uses-permission android:name="com.vayunmathur.permission.SENSORS_OPTOUT" /> <uses-permission android:name="android.permission.RECORD_AUDIO" />+ <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <uses-feature android:name="android.hardware.microphone"
tuner/src/main/res/values-et/strings.xml
diff --git a/tuner/src/main/res/values-et/strings.xml b/tuner/src/main/res/values-et/strings.xmlindex bb5f6cee57..fa1891ac34 100644--- a/tuner/src/main/res/values-et/strings.xml+++ b/tuner/src/main/res/values-et/strings.xml@@ -6,18 +6,13 @@ <string name="listening">Kuulamas</string> <string name="not_listening">Pole kuulamas</string> <string name="permission_title">Vajalik on õigus kasutada mikrofoni</string>- <string name="permission_rationale">Häälestaja kuulab sinu pilli mikrofoni abil. Salvestatud heli analüüs toimub vaid sinu nutiseadmes ja seda mujale ei edastata.</string>- <string name="permission_action">Luba mikrofoni kasutamine</string>- <string name="permission_settings">Ava seadistused</string> <string name="capture_unavailable">Mikrofoni avamine ei õnnestunud</string> <string name="frequency_value">%1$s Hz</string> <string name="cents_value">%1$s tsenti</string> <string name="in_tune">Hääles</string>- <string name="instrument_title">Muusikainstrument</string> <string name="instrument_guitar">Kitarr</string> <string name="instrument_ukulele">Ukulele</string> <string name="instrument_piano">Klaver</string>- <string name="chord_unimplemented_title">Akordide tuvastamine pole veel teostatud</string> <string name="interval_unison">Unisoon</string> <string name="interval_tritone">Tritoon</string> </resources>
tuner/src/main/res/values/strings.xml
diff --git a/tuner/src/main/res/values/strings.xml b/tuner/src/main/res/values/strings.xmlindex 4b96afd3c2..3df53291f3 100644--- a/tuner/src/main/res/values/strings.xml+++ b/tuner/src/main/res/values/strings.xml@@ -14,11 +14,8 @@ <!-- Title of the screen asking for microphone access. --> <string name="permission_title">Microphone access needed</string> <!-- Explains why the app needs the microphone. -->- <string name="permission_rationale">The tuner listens to your instrument through the microphone. Audio is analysed on your device and never leaves it.</string> <!-- Button that opens the system microphone permission prompt. -->- <string name="permission_action">Allow microphone</string> <!-- Button that opens this app\'s page in system settings, after a permanent denial. -->- <string name="permission_settings">Open settings</string> <!-- Shown when the microphone exists but could not be opened. --> <string name="capture_unavailable">The microphone could not be opened</string> @@ -29,16 +26,13 @@ <!-- Shown when the note is within a cent of its target. --> <string name="in_tune">In tune</string> <!-- Title of the instrument chooser. -->- <string name="instrument_title">Instrument</string> <!-- Instrument family names. These are the only names that need a code change to add. --> <string name="instrument_guitar">Guitar</string> <string name="instrument_ukulele">Ukulele</string> <string name="instrument_piano">Piano</string> <!-- Shown on the Chord tab, which is not built yet. -->- <string name="chord_unimplemented_title">Chord detection is not implemented yet</string> <!-- Explains what the Chord tab will do once it exists. -->- <string name="chord_unimplemented_detail">This tab will name the chord you play and show it on a keyboard and a fret diagram. Use the Note tab to tune one string at a time.</string> <!-- Explains why two chord names are shown at once. Some chords are literally the same notes, so only the bass note tells them apart. --> <string name="chord_ambiguous_note">These are the same notes either way. Only the bass note tells them apart, and it was not clear enough to decide.</string>