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

Commit 12bae55f authored by android-build-team Robot's avatar android-build-team Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixed an animation issue with Smart Replies" into pi-dev

parents d218036f 73f1be93
Loading
Loading
Loading
Loading
+8 −4
Original line number Original line Diff line number Diff line
@@ -73,7 +73,14 @@ public interface MessagingMessage extends MessagingLinearLayout.MessagingChild {
        if (!Objects.equals(message.getSender(), ownMessage.getSender())) {
        if (!Objects.equals(message.getSender(), ownMessage.getSender())) {
            return false;
            return false;
        }
        }
        if (!Objects.equals(message.getTimestamp(), ownMessage.getTimestamp())) {
        boolean hasRemoteInputHistoryChanged = message.isRemoteInputHistory()
                != ownMessage.isRemoteInputHistory();
        // When the remote input history has changed, we want to regard messages equal even when
        // the timestamp changes. The main reason is that the message that the system inserts
        // will have a different time set than the one that the app will update us with and we
        // still want to reuse that message.
        if (!hasRemoteInputHistoryChanged
                && !Objects.equals(message.getTimestamp(), ownMessage.getTimestamp())) {
            return false;
            return false;
        }
        }
        if (!Objects.equals(message.getDataMimeType(), ownMessage.getDataMimeType())) {
        if (!Objects.equals(message.getDataMimeType(), ownMessage.getDataMimeType())) {
@@ -82,9 +89,6 @@ public interface MessagingMessage extends MessagingLinearLayout.MessagingChild {
        if (!Objects.equals(message.getDataUri(), ownMessage.getDataUri())) {
        if (!Objects.equals(message.getDataUri(), ownMessage.getDataUri())) {
            return false;
            return false;
        }
        }
        if (message.isRemoteInputHistory() != ownMessage.isRemoteInputHistory()) {
            return false;
        }
        return true;
        return true;
    }
    }