mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Changes how bluetooth state is checked for bluetooth check.
Co-authored-by: Andre K <andrekir@pm.me>
This commit is contained in:
parent
e4b2649807
commit
1251c76ff0
1 changed files with 1 additions and 4 deletions
|
|
@ -506,10 +506,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
|
|||
private fun checkBTEnabled(
|
||||
warningReason: String = getString(R.string.requires_bluetooth)
|
||||
) {
|
||||
|
||||
var btAdapter = BluetoothAdapter.getDefaultAdapter();
|
||||
|
||||
if (!(btAdapter.isEnabled())) {
|
||||
if (bluetoothViewModel.enabled.value == false) {
|
||||
warn("We need bluetooth")
|
||||
showSnackbar(warningReason)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue