mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-07-16 00:57:30 +02:00
add no offline data status indicator
This commit is contained in:
@@ -70,6 +70,8 @@ class SimpleTileHttpClient extends http.BaseClient {
|
||||
// Check if we're in offline mode
|
||||
if (AppState.instance.offlineMode) {
|
||||
debugPrint('[SimpleTileService] Offline mode - not attempting OSM fetch for $z/$x/$y');
|
||||
// Report that we couldn't serve this tile offline
|
||||
NetworkStatus.instance.reportOfflineMiss();
|
||||
return http.StreamedResponse(
|
||||
Stream.value(<int>[]),
|
||||
404,
|
||||
|
||||
Reference in New Issue
Block a user