Skip to content

fix: preserve whitespace in device hotspot SSIDs - #9

Merged
fython merged 1 commit into
mainfrom
fix/issue-8-hotspot-ssid-whitespace
Oct 13, 2026
Merged

fython merged 1 commit into
mainfrom
fix/issue-8-hotspot-ssid-whitespace

Conversation

@fython

@fython fython commented Oct 12, 2026

Copy link
Copy Markdown
Owner

The device-hotspot name dialogs trimmed legal SSID whitespace: entering "CarPlayTest " saved "CarPlayTest", so the iPhone could receive credentials for a different network. First-time setup and editing an existing hotspot now preserve the SSID exactly.

Only the two SSID inputs opt into preserving whitespace. Ordinary text inputs retain trimming, passwords remain unchanged, and the existing blank-name, UTF-8 byte-length, NUL, and password validation still runs on the complete input.

Validation:

  • Reproduced the whitespace loss with a failing UI test on the previous code.
  • Added six UI regression tests covering setup, edits, reopening, leading/trailing spaces, UTF-8 and 32-byte limits, invalid inputs, passwords, and cancellation.
  • All 478 shared/App unit tests passed; Android Lint reported no errors and the debug APK built successfully.

SSID values already trimmed by an older version must be re-entered with their complete hotspot name.

Fixes #8.

@fython
fython merged commit cf78e4d into main Oct 13, 2026
2 checks passed
@fython
fython deleted the fix/issue-8-hotspot-ssid-whitespace branch October 13, 2026 03:20
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.

[Bug] 设备热点 SSID 被 trim(),含尾部空格时卡在 Waiting for video

2 participants