Merge "Fix bug 5149918 - Can't call ProgressDialog.setProgressNumberFormat() before dialog is shown"

This commit is contained in:
Adam Powell
2011-08-23 17:11:33 -07:00
committed by Android (Google) Code Review

View File

@@ -343,7 +343,7 @@ public class ProgressDialog extends AlertDialog {
private void onProgressChanged() {
if (mProgressStyle == STYLE_HORIZONTAL) {
if (!mViewUpdateHandler.hasMessages(0)) {
if (mViewUpdateHandler != null && !mViewUpdateHandler.hasMessages(0)) {
mViewUpdateHandler.sendEmptyMessage(0);
}
}