File tree Expand file tree Collapse file tree
balloon/src/main/java/com/skydoves/balloon Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,16 +138,11 @@ class Balloon(
138138 }
139139 layoutParams = params
140140 alpha = builder.alpha
141- when {
142- builder.arrowDrawable != null -> {
143- setImageDrawable(builder.arrowDrawable)
144- }
145- builder.arrowColor != NO_INT_VALUE -> {
146- ImageViewCompat .setImageTintList(this , ColorStateList .valueOf(builder.arrowColor))
147- }
148- else -> {
149- ImageViewCompat .setImageTintList(this , ColorStateList .valueOf(builder.backgroundColor))
150- }
141+ builder.arrowDrawable?.let { setImageDrawable(it) }
142+ if (builder.arrowColor != NO_INT_VALUE ) {
143+ ImageViewCompat .setImageTintList(this , ColorStateList .valueOf(builder.arrowColor))
144+ } else {
145+ ImageViewCompat .setImageTintList(this , ColorStateList .valueOf(builder.backgroundColor))
151146 }
152147 }
153148 }
You can’t perform that action at this time.
0 commit comments