Compiler warning.

Change-Id: I66b16e9767369fd54611f92d66cd1b43f4e8c5a8
Avoid re-drawing progress bar too frequently.

Change-Id: I01dcd6d421c1f648b4cd8413e3baf50fd26d4c8f