From b8326870e1f3960b169746b0473326060bb6cf54 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 24 Jun 2016 15:28:10 -0700 Subject: [PATCH] [core] Increment completedTileCount when appropriate (#5475) --- platform/default/mbgl/storage/offline_download.cpp | 2 ++ test/storage/offline_download.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/platform/default/mbgl/storage/offline_download.cpp b/platform/default/mbgl/storage/offline_download.cpp index bad23cadb..6ff605167 100644 --- a/platform/default/mbgl/storage/offline_download.cpp +++ b/platform/default/mbgl/storage/offline_download.cpp @@ -240,6 +240,7 @@ void OfflineDownload::ensureResource(const Resource& resource, std::functionsecond; if (resource.kind == Resource::Kind::Tile) { + status.completedTileCount += 1; status.completedTileSize += offlineResponse->second; } @@ -273,6 +274,7 @@ void OfflineDownload::ensureResource(const Resource& resource, std::function