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

Commit 976f0b45 authored by Brad Ebinger's avatar Brad Ebinger
Browse files

Always record the latest PIDF + timestamp upon PUBLISH

When PUBLISH completes, always record the latest PIDF and timestamp
info instead of leaving early if the PUBLISH state didnt change.

Bug: 190753196
Test: manual
Change-Id: I528b6465aa010de4ecdd909f1095d2c9f1299401
parent 4b733da9
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -900,10 +900,11 @@ public class PublishControllerImpl implements PublishController {
            }
            logd("publish state changes from " + mPublishState + " to " + newPublishState +
                    ", time=" + updatedTimestamp);
            if (mPublishState == newPublishState) return;
            mPublishState = newPublishState;
            mPublishStateUpdatedTime = updatedTimestamp;
            mPidfXml = pidfXml;
            // Bail early and do not update listeners if the publish state didn't change.
            if (mPublishState == newPublishState) return;
            mPublishState = newPublishState;
        }

        // Trigger the publish state changed in handler thread since it may take time.