kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
Changes how bluetooth state is checked for bluetooth check.
Co-authored-by: Andre K <andrekir@pm.me>pull/469/head
rodzic
e4b2649807
commit
1251c76ff0
|
@ -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)
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue