am 3613385f: Do not update the progress if it is the same as the last given progress.

Merge commit '3613385fbc5368715e7af1a6676b7bb63fafcf09' into eclair-mr2-plus-aosp

* commit '3613385fbc5368715e7af1a6676b7bb63fafcf09':
  Do not update the progress if it is the same as the last given progress.
This commit is contained in:
Leon Scroggins
2009-11-04 15:10:05 -08:00
committed by Android Git Automerger

View File

@@ -1016,10 +1016,10 @@ class CallbackProxy extends Handler {
public void onProgressChanged(int newProgress) {
// Synchronize so that mLatestProgress is up-to-date.
synchronized (this) {
mLatestProgress = newProgress;
if (mWebChromeClient == null) {
if (mWebChromeClient == null || mLatestProgress == newProgress) {
return;
}
mLatestProgress = newProgress;
if (!mProgressUpdatePending) {
sendEmptyMessage(PROGRESS);
mProgressUpdatePending = true;