Changes how bluetooth state is checked for bluetooth check.

Co-authored-by: Andre K <andrekir@pm.me>
pull/469/head
legendgroupv2 2022-08-30 10:45:54 +01:00 zatwierdzone przez GitHub
rodzic e4b2649807
commit 1251c76ff0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -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)
}