File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
maps-compose/src/main/java/com/google/maps/android/compose Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,6 @@ import androidx.core.graphics.applyCanvas
3333import androidx.core.graphics.createBitmap
3434import com.google.android.gms.maps.model.BitmapDescriptor
3535import com.google.android.gms.maps.model.BitmapDescriptorFactory
36- import kotlinx.coroutines.Dispatchers
37- import kotlinx.coroutines.withContext
3836
3937@MapsComposeExperimentalApi
4038@Composable
@@ -65,9 +63,7 @@ public fun rememberComposeBitmapDescriptor(
6563 }
6664
6765 LaunchedEffect (* keys) {
68- bitmapDescriptor = withContext(Dispatchers .IO ) {
69- renderComposableToBitmapDescriptor(composeView)
70- }
66+ bitmapDescriptor = renderComposableToBitmapDescriptor(composeView)
7167 }
7268
7369 return bitmapDescriptor
You can’t perform that action at this time.
0 commit comments