flavienlaurent/NotBoringActionBar — pull request #14 by carlonzo (2014-08-20 12:10:34+00:00)
Title: clamp function is wrong

you have to pick the maximum value between "min" and the minimum between "max" and "value"

refer here: http://stackoverflow.com/a/16659144/2008214