don't send autobug if the user has (foolishly) disabled location access

1.2-legacy
geeksville 2020-09-15 10:04:35 -07:00
rodzic c3b3db97c8
commit ae687f5cfe
1 zmienionych plików z 12 dodań i 5 usunięć

Wyświetl plik

@ -278,11 +278,18 @@ class MeshService : Service(), Logging {
warnUserAboutLocation()
}
is ApiException ->
if (exception.statusCode == 17) {
// error: cancelled by user
errormsg("User cancelled location access", exception)
} else {
Exceptions.report(exception)
when (exception.statusCode) {
17 ->
// error: cancelled by user
errormsg("User cancelled location access", exception)
8502 ->
// error: cancelled by user
errormsg(
"Settings-change-unavailable, user disabled location access (globally?)",
exception
)
else ->
Exceptions.report(exception)
}
else ->
Exceptions.report(exception)