mirror of
https://github.com/home-assistant/android
synced 2024-09-06 17:23:32 +00:00
Add bluetooth skippable intents in case sensor is not enabled (#3240)
This commit is contained in:
parent
1638c0f99e
commit
ca8059da65
|
@ -3,6 +3,7 @@ package io.homeassistant.companion.android.sensors
|
|||
import android.annotation.SuppressLint
|
||||
import android.app.NotificationManager
|
||||
import android.app.PendingIntent
|
||||
import android.bluetooth.BluetoothAdapter
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.media.AudioManager
|
||||
|
@ -109,7 +110,10 @@ class SensorReceiver : SensorReceiverBase() {
|
|||
AudioManager.ACTION_SPEAKERPHONE_STATE_CHANGED to AudioSensorManager.speakerphoneState.id,
|
||||
AudioManager.RINGER_MODE_CHANGED_ACTION to AudioSensorManager.audioSensor.id,
|
||||
"com.google.android.clockwork.actions.WET_MODE_STARTED" to WetModeSensorManager.wetModeSensor.id,
|
||||
"com.google.android.clockwork.actions.WET_MODE_ENDED" to WetModeSensorManager.wetModeSensor.id
|
||||
"com.google.android.clockwork.actions.WET_MODE_ENDED" to WetModeSensorManager.wetModeSensor.id,
|
||||
"android.bluetooth.device.action.ACL_CONNECTED" to BluetoothSensorManager.bluetoothConnection.id,
|
||||
"android.bluetooth.device.action.ACL_DISCONNECTED" to BluetoothSensorManager.bluetoothConnection.id,
|
||||
BluetoothAdapter.ACTION_STATE_CHANGED to BluetoothSensorManager.bluetoothState.id
|
||||
)
|
||||
|
||||
override fun getSensorSettingsIntent(
|
||||
|
|
Loading…
Reference in a new issue