You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guard Android registered location providers and transfer service refusals atomically #2205
Two current Android location lifecycle gaps remain after the background-service work:
MainActivity.onProviderDisabled checks every enabled GPS/network provider, although startLocating only registers GPS with precise permission. With approximate-only permission, disabling the requested network provider while unrequested GPS remains enabled returns early. No positions or stopped notice follow.
takeEvents reads the volatile static refusal then clears it in a separate operation. A service refusal arriving between those operations can be erased without its failed event.
Track the providers actually registered, and stop/report when none of that set remains enabled. Transfer refusal reasons atomically (or under one common lock). Add tests for approximate-only/provider removal and a refusal arriving while the prior refusal is drained; validate on Android with both permission modes.
Source verified on ce40749: apps/rustgis-mobile/java/org/rustgis/mobile/MainActivity.java:315-327,464-468.
Duplicate search: all-state location provider refusal found no dedicated issue; #1902 is the broad mobile tracker. These need Android lifecycle regression coverage, beyond a wording-only sweep fix.
Activity