Skip to content

Clean up unused and duplicate resources - #278

Merged
trypsynth merged 3 commits into
masterfrom
lint-cleanup
Oct 26, 2026
Merged

trypsynth merged 3 commits into
masterfrom
lint-cleanup

Conversation

@trypsynth

Copy link
Copy Markdown
Owner

Fixes about half of the lint warnings that aren't in the baseline (380 to 191). Resources only, no code changes.

  • Remove resources nothing uses. 22 of the 26 resources lint reported as unused, with their translations: strings and arrays left from features Backtalk dropped (the Play Store entry, the TalkBack updated notification, the reading control added dialogs, the battery state template and others), and the unused preference_dialog_edittext layout. Four are kept: show_play_store, which overlayable.xml declares; the phonetic letters title and summary, which the watch settings use; and pref_speech_control_key, which SpeechControl.kt names. I checked the removed names against code, XML, and getIdentifier lookups.
  • Polish: drop the xmlns:xliff declaration repeated on 49 strings in values-pl/strings_backtalk.xml. The root element already declares it.
  • Simplified Chinese: remove 119 copies of translatable="false" resources that are identical to the English value, such as key command letters, preference values and symbols. They changed nothing at runtime. The 140 zh-rCN entries that do differ, mostly braille display key names translated into Chinese, are kept, because removing them would show Chinese users English.

:lintPhoneDebug, assembleDebug and :talkback:testPhoneDebugUnitTest pass.

Lint reported 26 unused resources. This removes 22 of them and their translations: strings and
arrays left from features Backtalk dropped, such as the Play Store entry, the TalkBack updated
notification and the reading control added dialogs, and an unused dialog layout.

Kept: show_play_store, which overlayable.xml declares, the phonetic letters strings, which the watch
settings use, and pref_speech_control_key, which SpeechControl.kt names.
… the English

119 zh-rCN entries repeated resources marked translatable="false" with the same value, such as
key commands, preference values and symbols, so they changed nothing and lint warned about each.
The zh-rCN entries that differ, such as braille display key names in Chinese, are kept.
@trypsynth
trypsynth merged commit 56a7d8b into master Oct 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant