Skip to content

feat: add autoconnect min RSSI setting and auto-connect logic - #28

Merged
duhow merged 3 commits into
mainfrom
copilot/define-autoconnect-minimal-rssi-setting
Apr 19, 2026
Merged

duhow merged 3 commits into
mainfrom
copilot/define-autoconnect-minimal-rssi-setting

Conversation

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the "auto-connect minimal RSSI" feature:

  1. AppSettings.kt – new SharedPreferences-backed class holding the autoconnectMinRssi setting (default -40 dBm).

  2. Settings menu + dialog – a new Settings entry in the overflow menu opens an AlertDialog with a signed-integer EditText so the user can change the auto-connect RSSI threshold at any time. Invalid values (non-negative numbers or empty input) are rejected with a Toast.

  3. Auto-connect logic – inside the BLE scan onDeviceFound callback, after a device is registered, the app now checks:

    • The device is FTMS (non-virtual devices only appear via the scan callback)
    • Its RSSI is ≥ the configured threshold
    • No FTMS connection is already active and the state machine is Idle

    If all conditions are met, connectFtmsDevice() is called automatically. Only one FTMS device can auto-connect per scan session.

  4. String resources – new keys added to values/strings.xml, values-es/strings.xml, and values-ca/strings.xml to maintain language parity.

  5. Changelog – 5.txt updated with user-facing description of the new feature.

@duhow

duhow commented Apr 19, 2026

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

…nnect-minimal-rssi-setting

# Conflicts:
#	app/src/main/res/values-ca/strings.xml
#	app/src/main/res/values-es/strings.xml
#	fastlane/metadata/android/en-US/changelogs/5.txt

Co-authored-by: duhow <[email protected]>

Copilot AI commented Apr 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Resolved in 2bf4736. The conflicts were in values-ca/strings.xml, values-es/strings.xml, and changelogs/5.txt — both sets of changes (wake lock notification strings + settings strings) are now preserved.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Debug APK artifact is ready for commit 2bf4736 .
💾 Download APK artifact here.
Workflow run: https://github.com/duhow/ftms-bridge/actions/runs/24626897909

@duhow
duhow marked this pull request as ready for review April 19, 2026 10:45
@duhow
duhow merged commit 8d6ccd9 into main Apr 19, 2026
1 check passed
@duhow
duhow deleted the copilot/define-autoconnect-minimal-rssi-setting branch April 19, 2026 10:47
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.

2 participants