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

Commit 1a030c4a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Always record the latest PIDF + timestamp upon PUBLISH" into sc-dev

parents 736ed110 976f0b45
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -903,10 +903,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.