We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3697c05 commit 5b136d1Copy full SHA for 5b136d1
1 file changed
andcolorpicker/src/main/java/codes/side/andcolorpicker/view/picker/ColorSeekBar.kt
@@ -109,8 +109,8 @@ abstract class ColorSeekBar<C : Color> @JvmOverloads constructor(
109
*/
110
private fun setupBackground() {
111
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
112
- background = background.mutate()
113
- .also {
+ background?.let { originalBackground ->
+ background = originalBackground.mutate().also {
114
if (it is RippleDrawable) {
115
// TODO: Set ripple size for pre-M too
116
// TODO: Make ripple size configurable?
@@ -120,6 +120,7 @@ abstract class ColorSeekBar<C : Color> @JvmOverloads constructor(
120
}
121
122
123
+ }
124
125
126
0 commit comments