BaseMarker.kt: removed unneeded cast

This commit is contained in:
Junwei Bai 2024-10-17 22:36:46 +11:00
parent c7065e103b
commit e85d59e52a

View file

@ -46,7 +46,7 @@ class BaseMarker {
val drawable: Drawable = context.resources.getDrawable(drawableResId)
icon =
if (drawable is BitmapDrawable) {
(drawable as BitmapDrawable).bitmap
drawable.bitmap
} else {
val bitmap =
Bitmap.createBitmap(