refactor: use getter with IntentFilter

This commit is contained in:
andrekir 2023-07-09 08:19:30 -03:00
parent 64a4051e0f
commit 6bd3683743

View file

@ -15,7 +15,7 @@ import javax.inject.Inject
class BluetoothBroadcastReceiver @Inject constructor(
private val bluetoothRepository: BluetoothRepository
) : BroadcastReceiver() {
internal val intentFilter = IntentFilter().apply {
internal val intentFilter get() = IntentFilter().apply {
addAction(BluetoothAdapter.ACTION_STATE_CHANGED)
addAction(BluetoothDevice.ACTION_BOND_STATE_CHANGED)
}