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

Commit f5c01613 authored by Thomas Nguyen's avatar Thomas Nguyen Committed by Android (Google) Code Review
Browse files

Merge "Set unique message id to the one in the tracker if the tracker exists." into main

parents 4f7af344 7aa45151
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -273,8 +273,12 @@ public class SmsDispatchersController extends Handler {
            this.validityPeriod = validityPeriod;
            this.messageId = messageId;
            this.skipShortCodeCheck = skipShortCodeCheck;
            if (tracker != null) {
                this.uniqueMessageId = tracker.mUniqueMessageId;
            } else {
                this.uniqueMessageId = getNextUniqueMessageId();
            }
        }

        public static long getNextUniqueMessageId() {
            return sNextUniqueMessageId.getAndUpdate(