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

Commit 3a85019c authored by JW Wang's avatar JW Wang
Browse files

Squash runnables in onBootCompleted (1/n)

Some code clean-up to makes it easier to register
OnPropertiesChangedListener there in the next patch.

Bug: 147712943
Test: atest StagedRollbackTest RollbackTest
Change-Id: I46d08fe2715b7c6a08d9a6d862dc0ab0dd3de12c
parent b85c3a8f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -511,11 +511,10 @@ class RollbackManagerServiceImpl extends IRollbackManager.Stub {

    @AnyThread
    void onBootCompleted() {
        getHandler().post(() -> updateRollbackLifetimeDurationInMillis());
        // Also posts to handler thread
        scheduleExpiration(0);

        getHandler().post(() -> {
            updateRollbackLifetimeDurationInMillis();
            runExpiration();

            // Check to see if any rollback-enabled staged sessions or staged
            // rollback sessions been applied.
            List<Rollback> enabling = new ArrayList<>();