Skip to content

feat(settings): Only show homoglyph setting for Cyrillic locales#4559

Merged
jamesarich merged 3 commits into
mainfrom
feat/cyrillic-setting
Feb 14, 2026
Merged

feat(settings): Only show homoglyph setting for Cyrillic locales#4559
jamesarich merged 3 commits into
mainfrom
feat/cyrillic-setting

Conversation

@jamesarich

Copy link
Copy Markdown
Collaborator

The homoglyph character encoding setting is now only displayed to users whose device language is set to one that uses the Cyrillic alphabet (e.g., Russian, Ukrainian, etc.).

This change refactors the switch into a new HomoglyphSetting composable. Unit tests have been added using Robolectric to verify its visibility logic based on the current locale. The build configuration was updated to enable Android resources in unit tests.

This is a followup to #4491 to only display the setting if a supported locale is being used.

The homoglyph character encoding setting is now only displayed to users whose device language is set to one that uses the Cyrillic alphabet (e.g., Russian, Ukrainian, etc.).

This change refactors the switch into a new `HomoglyphSetting` composable. Unit tests have been added using Robolectric to verify its visibility logic based on the current locale. The build configuration was updated to enable Android resources in unit tests.

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@github-actions github-actions Bot added the enhancement New feature or request label Feb 14, 2026
@codecov

codecov Bot commented Feb 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 14.38%. Comparing base (0f03492) to head (3fbf594).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
.../org/meshtastic/feature/settings/SettingsScreen.kt 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4559      +/-   ##
==========================================
- Coverage   14.57%   14.38%   -0.20%     
==========================================
  Files         427      427              
  Lines       14616    14818     +202     
  Branches     2428     2452      +24     
==========================================
  Hits         2131     2131              
- Misses      12181    12384     +203     
+ Partials      304      303       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…n BleOtaTransportErrorTest

- Wrap transport.close() in try-finally to prevent coroutine leaks on assertion failures
- Improve assertion messages to print actual exception on failure
- Reduce simulation delay to speed up test execution
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
@jamesarich jamesarich added this pull request to the merge queue Feb 14, 2026
Merged via the queue into main with commit fb1bdb2 Feb 14, 2026
7 of 8 checks passed
@jamesarich jamesarich deleted the feat/cyrillic-setting branch February 14, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant