Skip to content

Commit 40fccad

Browse files
committed
refactor: Simplify comment in DisappearingScaleBar
1 parent 3f211be commit 40fccad

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • maps-compose-widgets/src/main/java/com/google/maps/android/compose/widgets

maps-compose-widgets/src/main/java/com/google/maps/android/compose/widgets/ScaleBar.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,7 @@ public fun DisappearingScaleBar(
254254
MutableTransitionState(true)
255255
}
256256

257-
// `LaunchedEffect` is a coroutine-based effect that is launched when the composable
258-
// enters the composition. The `key1` parameter is used to re-launch the effect
259-
// whenever the value of the key changes. In this case, we are using
260-
// `cameraPositionState.position` as the key, so the effect will be re-launched
261-
// every time the camera position changes.
257+
// This effect is re-launched every time the camera position changes.
262258
//
263259
// The effect itself makes the scale bar visible, waits for the specified duration,
264260
// and then makes it invisible again. This creates the "disappearing" effect.

0 commit comments

Comments
 (0)