mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
don't send autobug if the user has (foolishly) disabled location access
This commit is contained in:
parent
c3b3db97c8
commit
ae687f5cfe
1 changed files with 12 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue