From 5629519a077d6a3de7f1ccd72494d7837f06b7a8 Mon Sep 17 00:00:00 2001 From: Tobias Zwick Date: Fri, 15 May 2020 19:55:43 +0200 Subject: [PATCH] fetch a little more quests automatically and fetch more if there are not enough in a 200m radius (#1829) --- .../data/download/MobileDataAutoDownloadStrategy.kt | 6 +++--- .../data/download/WifiAutoDownloadStrategy.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/download/MobileDataAutoDownloadStrategy.kt b/app/src/main/java/de/westnordost/streetcomplete/data/download/MobileDataAutoDownloadStrategy.kt index 4b8a2d35da..6785aa1e7a 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/download/MobileDataAutoDownloadStrategy.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/data/download/MobileDataAutoDownloadStrategy.kt @@ -12,8 +12,8 @@ class MobileDataAutoDownloadStrategy @Inject constructor( questTypesProvider: OrderedVisibleQuestTypesProvider ) : AActiveRadiusStrategy(visibleQuestsSource, downloadedTilesDao, questTypesProvider) { - override val questTypeDownloadCount = 4 - override val minQuestsInActiveRadiusPerKm2 = 8 - override val activeRadii = intArrayOf(300) + override val questTypeDownloadCount = 5 + override val minQuestsInActiveRadiusPerKm2 = 12 + override val activeRadii = intArrayOf(200) override val downloadRadius = 600 } diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/download/WifiAutoDownloadStrategy.kt b/app/src/main/java/de/westnordost/streetcomplete/data/download/WifiAutoDownloadStrategy.kt index 8f3b6e6367..909f00644a 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/download/WifiAutoDownloadStrategy.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/data/download/WifiAutoDownloadStrategy.kt @@ -22,10 +22,10 @@ class WifiAutoDownloadStrategy @Inject constructor( * However, Overpass is as limited as always, so the number of quest types we download is * limited as before */ - override val questTypeDownloadCount = 8 + override val questTypeDownloadCount = 5 override val minQuestsInActiveRadiusPerKm2 = 12 - // checks if either in 600 or 300m radius, there are enough quests. - override val activeRadii = intArrayOf(600, 300) + // checks if either in 600 or 200m radius, there are enough quests. + override val activeRadii = intArrayOf(600, 200) override val downloadRadius = 1200 }