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

Commit a5cb102c authored by Song Chun Fan's avatar Song Chun Fan Committed by Android (Google) Code Review
Browse files

Merge "[pm] fix loading progress race condition during incremental app migration" into main

parents b123cc0e 0ed20c58
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1195,8 +1195,11 @@ public class PackageSetting extends SettingBase implements PackageStateInternal
    }

    public PackageSetting setLoadingProgress(float progress) {
        // To prevent race conditions, we don't allow progress to ever go down
        if (mLoadingProgress < progress) {
            mLoadingProgress = progress;
            onChanged();
        }
        return this;
    }