save ifDrawText state

save mIfDrawText state and restore
Thanks for your PR, a suggestion, could you please  move the function content to setProgressTextVisibility. and change the getIfDrawText function name to getProgressTextVisibility. I think this will be much better.