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:
@@ -1016,10 +1016,10 @@ class CallbackProxy extends Handler {
|
|||||||
public void onProgressChanged(int newProgress) {
|
public void onProgressChanged(int newProgress) {
|
||||||
// Synchronize so that mLatestProgress is up-to-date.
|
// Synchronize so that mLatestProgress is up-to-date.
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
mLatestProgress = newProgress;
|
if (mWebChromeClient == null || mLatestProgress == newProgress) {
|
||||||
if (mWebChromeClient == null) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mLatestProgress = newProgress;
|
||||||
if (!mProgressUpdatePending) {
|
if (!mProgressUpdatePending) {
|
||||||
sendEmptyMessage(PROGRESS);
|
sendEmptyMessage(PROGRESS);
|
||||||
mProgressUpdatePending = true;
|
mProgressUpdatePending = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user