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

Commit 838d875b authored by Songchun Fan's avatar Songchun Fan Committed by Android (Google) Code Review
Browse files

Merge "[incremental] increase progress comparison precision" into sc-dev

parents 5e4da8f2 e4895f43
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -293,11 +293,11 @@ public final class IncrementalStates {
            Slog.i(TAG, "received progress update: " + progress);
        }
        mLoadingState.setProgress(progress);
        if (1 - progress < 0.001) {
        if (Math.abs(1.0f - progress) < 0.00000001f) {
            if (DEBUG) {
                Slog.i(TAG, "package is fully loaded");
            }
            mLoadingState.setProgress(1);
            mLoadingState.setProgress(1.0f);
            if (mLoadingState.isLoading()) {
                mLoadingState.adoptNewLoadingStateLocked(false);
            }