Skip to content

Commit

Permalink
fix(MaterialSliderHelper): return null value if view is not a slider.
Browse files Browse the repository at this point in the history
  • Loading branch information
asafkorem committed Sep 27, 2023
1 parent efd053a commit 4401837
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ private const val CLASS_MATERIAL_SLIDER = "com.google.android.material.slider.Sl
open class MaterialSliderHelper(protected val view: View) {
fun getValueIfSlider(): Double? {
if (!isSlider()) {
null
return null
}

return getValue()
}

Expand Down

0 comments on commit 4401837

Please sign in to comment.