- fun initializeFavoriteIcon() {
- // Get the default favorite icon drawable.
- val favoriteIconDrawable = getDrawable(context, R.drawable.world)
-
- // Cast the favorite icon drawable to a bitmap drawable.
- val favoriteIconBitmapDrawable = (favoriteIconDrawable as BitmapDrawable?)!!
-