mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 05:43:55 +01:00
BaseMarker.kt: removed unneeded cast
This commit is contained in:
parent
c7065e103b
commit
e85d59e52a
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class BaseMarker {
|
||||||
val drawable: Drawable = context.resources.getDrawable(drawableResId)
|
val drawable: Drawable = context.resources.getDrawable(drawableResId)
|
||||||
icon =
|
icon =
|
||||||
if (drawable is BitmapDrawable) {
|
if (drawable is BitmapDrawable) {
|
||||||
(drawable as BitmapDrawable).bitmap
|
drawable.bitmap
|
||||||
} else {
|
} else {
|
||||||
val bitmap =
|
val bitmap =
|
||||||
Bitmap.createBitmap(
|
Bitmap.createBitmap(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue