Skip to content

BluetoothManager.getInstance() never null #13

@gbkwiatt

Description

@gbkwiatt

It;s probably because I am new to Android / Kotlin.

Trying to make a use of that module, So far working fine with list and bluetooth enabled.
I have part of code that checks the instance as in readme:

private var bluetoothManager: BluetoothManager? =BluetoothManager.getInstance()
  override fun onCreate(savedInstanceState: Bundle?) {
    if (bluetoothManager == null) {}
}

But Android studio gives me a hint, that bluetoothManager is never null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions