[Accessibility] Scale passcode PIN and keypad text - #156
Draft
joashrajin wants to merge 1 commit into
Draft
joashrajin wants to merge 1 commit into
joashrajin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix
Simplenote's app-level passcode styles override the embedded PasscodeLock text sizes with
24dpkeypad text and34dpPIN text. Becausedpdoes not respond to the system font scale, those controls remain fixed when a user increases text size.Keep the numeric sizes unchanged and switch the two dimensions to
sp. Both passcode activities use the shared keyboard resource, whose phone andsw600dpvariants consume these styles. Authentication, keypad actions, layout structure, prompt text, and fingerprint behavior are unchanged.Test
trunkand the fix; the top-level compiled test class was byte-identical (SHA-2562ae0a8c0ffa9790437409aad1393a6a2deaa6166f57086a7392ed590a57f992c):360dp × 640dpwith font scale 1.3 on API 23 and font scale 2 on API 35, plus thesw600dplandscape layout at960dp × 600dpand font scale 2. The tested controls remained contained, with PIN and digit text unellipsized on one line.24sp/34spand bind them through the passcode styles. All archives passed ZIP integrity checks. The debug APK verified with v1/v2 Android Debug signing; the local release APK and AAB are unsigned.:Simplenote:lintDebugfrom scratch: 70/70 tasks, 0 errors, 263 existing warnings, and 1 hint. The two modified resources retain pre-existingUnusedResourceswarnings; the new test has no finding.The focused fixture inflates and measures resources with exact mdpi specifications. It does not launch either passcode Activity, apply real window insets, run on an emulator/device, or cover every locale, display size, or custom font scale.
Review
Please focus on retaining the existing 24/34 default-scale sizes while allowing the PIN and digit keys to follow platform font scaling.
A complete scan of 125 open fork PRs and 8 open upstream PRs found no exact changed-path overlap. Fork PR #56 changes the passcode layouts and runtime safe-area handling; it is path-disjoint and complementary, but its inset/device coverage remains relevant when the slices are integrated.
Release
Passcode PIN and keypad text now scale with the system font-size setting.