Skip to content

Add an option to only ring when earphone connected #631

Description

@Willie169

Feature idea

Add an option globally and per-alarm to make them only ring when earphone connected. This is useful when in library where ringing is prohibited.

One alarm that has this is the proprietary Earphone alarm.

I think this can be implemented by logging android.bluetooth.BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED, android.bluetooth.BluetoothAdapter.ACTION_STATE_CHANGED, android.content.Intent.ACTION_HEADSET_PLUG, and context.getSystemService(android.content.Context.AUDIO_SERVICE).ACTION_AUDIO_BECOMING_NOISY. If BluetoothAdapter.STATE_CONNECTED is the latest one logged Bluetooth event then now it's Bluetooth connected, otherwise it's not. Similar for headset plug.

Checklist

  • I searched for existing issues (open and closed) before filing this report.
  • I have read and understood the contribution guidelines.
  • I have provided all required details. I understand that the feature request will be dismissed otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    alarmAlarm issue or improvementenhancementNew feature or requestsettingSetting issue or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions