fix crashlytics bug - exposed because UIState lifecycle is different than activity

1.2-legacy
Kevin Hester 2020-03-01 15:58:46 -08:00
rodzic 4d75e7e882
commit e2ceaf3a2d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -181,6 +181,7 @@ class MainActivity : AppCompatActivity(), Logging,
val prefs = getSharedPreferences("ui-prefs", Context.MODE_PRIVATE)
UIState.ownerName = prefs.getString("owner", "")!!
UIState.meshService = null
// Ensures Bluetooth is available on the device and it is enabled. If not,
// displays a dialog requesting user permission to enable Bluetooth.