Todd-Davies / ProgressWheel

A progress wheel for android, intended for use instead of the standard progress bar.
MIT License
2.64k stars 709 forks source link

Changed redraw-mechanism to avoid memory leaks due to spin-handler. #43

Closed birajpatel closed 10 years ago

birajpatel commented 10 years ago

Hi Todd,

ProgressWheel is a great library, but one problem which I observed was, you have implemented a Spin-Handler which keeps posting messages for redraw even though the Activity/Fragment is closed, To fix this issue I checked into android's native progress-bar implementation, and I came across very interesting way of redrawing the view after some delay,please refer link below. http://developer.android.com/reference/android/view/View.html#postInvalidateDelayed(long)

It will be great improvement to ProgressWheel's performance, Please accept my pull-request.

Todd-Davies commented 10 years ago

Nice work, thanks!