Skip to content

Commit

Permalink
fix map padding
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Aug 11, 2024
1 parent 44abe04 commit 2af87f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ dependencies {
automotiveImplementation("androidx.car.app:app-automotive:$carAppVersion")

// AnyMaps
val anyMapsVersion = "3e6c71410f"
val anyMapsVersion = "cf24eb00fa"
implementation("com.github.ev-map.AnyMaps:anymaps-base:$anyMapsVersion")
googleImplementation("com.github.ev-map.AnyMaps:anymaps-google:$anyMapsVersion")
googleImplementation("com.google.android.gms:play-services-maps:19.0.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class MapSurfaceCallback(val ctx: CarContext, val lifecycleScope: LifecycleCorou

private fun updateVisibleArea() {
visibleArea?.let {
map?.setPadding(0, it.top, width - it.right, height - it.bottom)
map?.setPadding(it.left, it.top, width - it.right, height - it.bottom)
}
}

Expand Down

0 comments on commit 2af87f4

Please sign in to comment.