We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
That's strange, in the Kotlin rewrite it looks like this:
https://github.com/harry1453/android-bluetooth-serial/blob/a2075b9444dae1ed6b934d23da78262d48bfb994/androidBluetoothSerial/src/main/java/com/harrysoft/androidbluetoothserial/BluetoothManager.kt#L78
And is quite clearly nullable.
Sorry, something went wrong.
No branches or pull requests
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:
But Android studio gives me a hint, that bluetoothManager is never null
The text was updated successfully, but these errors were encountered: