setDuration

#27 · open · 1 comments

View on GitHub ↗

Mojtaba-Shafaei

`setDuration()` needs a positive and greater than Zero number, however, all durations are negative or zero. Android studio error: code = `setDuration(Snacky.LENGTH_LONG)` error = > Must be one of: BaseTransientBottomBar.LENGTH_INDEFINITE, BaseTransientBottomBar.LENGTH_SHORT, BaseTransientBottomBar.LENGTH_LONG or value must be ≥ 1 (was -2)

Comments

matecode

Hi! Thank you for your filling an issue. I don't get you point. Is this an error you get during build? Or just AndroidStudio complaining about a wrong value? I just found out that an annotation is wrong, but that should not fail compiling... I will correct the annotation and make an hotfix release soon.