Skip to content

General: Show Auto Connect compatibility notice only when relevant#512

Merged
d4rken merged 1 commit into
mainfrom
feat/autoconnect-info-box
Apr 14, 2026
Merged

General: Show Auto Connect compatibility notice only when relevant#512
d4rken merged 1 commit into
mainfrom
feat/autoconnect-info-box

Conversation

@d4rken

@d4rken d4rken commented Apr 14, 2026

Copy link
Copy Markdown
Member

What changed

The Auto Connect setting description no longer includes the vague "May not work on newer Android versions" caveat. Instead, a dedicated info box appears below the setting when it is enabled on Android 12 or newer, explaining the restriction more clearly.

Technical Context

  • Auto Connect uses reflection on the hidden BluetoothHeadset.connect() API, which Android 12+ (API 31) blocks with a SecurityException due to MODIFY_PHONE_STATE enforcement
  • The info box uses the existing SettingsInfoBox composable (same pattern as the ear detection and popup info boxes on the same screen)
  • Visibility is gated on reactions.autoConnect && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S — a static SDK check rather than the runtime isNudgeAvailable flag, so users see the warning before their first failed attempt
  • Locale translations for the removed caveat sentence and the new info box string are not included — they will be updated separately

@d4rken d4rken added enhancement Add a new feature of improve an existing feature labels Apr 14, 2026
@d4rken d4rken merged commit da64406 into main Apr 14, 2026
10 checks passed
@d4rken d4rken deleted the feat/autoconnect-info-box branch April 14, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add a new feature of improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant