invalidate when pinned state changed

Fixes https://github.com/f2prateek/progressbutton/issues/34
Merge pull request #35 from frostymarvelous/master

invalidate when pinned state changed