Skip to content

Commit 835bb5c

Browse files
committed
Revert "Display glow effect only while tiles are downloaded"
This reverts commit 23a20d9.
1 parent 0280f6b commit 835bb5c

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

openmapview/src/main/kotlin/de/afarber/openmapview/MapController.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -826,13 +826,6 @@ class MapController(
826826
onTileLoadedCallback = callback
827827
}
828828

829-
/**
830-
* Returns whether tiles are currently being downloaded.
831-
*
832-
* @return true if any tiles are actively downloading, false otherwise
833-
*/
834-
fun isDownloadingTiles(): Boolean = downloadingTiles.isNotEmpty()
835-
836829
/**
837830
* Updates the temporary pan offset during a drag gesture.
838831
*

openmapview/src/main/kotlin/de/afarber/openmapview/OpenMapView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class OpenMapView
105105
controller.setOnTileLoadedCallback {
106106
invalidate()
107107
}
108+
attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled
108109
}
109110

110111
override fun dispatchDraw(canvas: Canvas) {
@@ -113,7 +114,7 @@ class OpenMapView
113114
if (uiSettings.isZoomControlsEnabled) {
114115
zoomControlsOverlay.draw(canvas, width, height)
115116
}
116-
attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled && controller.isDownloadingTiles()
117+
attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled
117118
attributionOverlay.draw(canvas, width, height)
118119
}
119120

0 commit comments

Comments
 (0)