Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3613385f authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not update the progress if it is the same as the last given progress.

parent 0d55daff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;