shouldAutoUseOfflineBasemap

fun shouldAutoUseOfflineBasemap(networkAvailable: Boolean, hasOfflineBasemap: Boolean): Boolean(source)

Whether the map should switch itself onto an offline-capable basemap right now, with no toggle for the user to remember to flip.

Ported from the sibling iOS app's OfflineMapFallbackPolicy: there, the decision also considers a manual "always use offline" toggle the user can set. Android has no such toggle — the raster-basemap picker already lets a user permanently select a local source, which the Google flavor's MapViewModel treats as "the user took the wheel" and never auto-switches away from. So the two live conditions here are the ones iOS combines with a network check: is the network down, and is there anywhere to fall back to.