ConversationFragment$11.smali

.class Lio/rong/imkit/fragment/ConversationFragment$11;
.super Ljava/lang/Object;
.source "ConversationFragment.java"

# interfaces
.implements Lio/rong/imkit/widget/provider/MessageItemLongClickAction$Filter;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lio/rong/imkit/fragment/ConversationFragment;->addReferenceLongClickAction()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lio/rong/imkit/fragment/ConversationFragment;


# direct methods
.method constructor <init>(Lio/rong/imkit/fragment/ConversationFragment;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lio/rong/imkit/fragment/ConversationFragment$11;->this$0:Lio/rong/imkit/fragment/ConversationFragment;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public filter(Lio/rong/imkit/model/UIMessage;)Z
    .registers 10

    .line 1
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getMessage()Lio/rong/imlib/model/Message;

    move-result-object v0

    invoke-virtual {v0}, Lio/rong/imlib/model/Message;->getSentStatus()Lio/rong/imlib/model/Message$SentStatus;

    move-result-object v0

    sget-object v1, Lio/rong/imlib/model/Message$SentStatus;->FAILED:Lio/rong/imlib/model/Message$SentStatus;

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eq v0, v1, :cond_10

    const/4 v0, 0x1

    goto :goto_11

    :cond_10
    const/4 v0, 0x0

    .line 2
    :goto_11
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getConversationType()Lio/rong/imlib/model/Conversation$ConversationType;

    move-result-object v1

    sget-object v4, Lio/rong/imlib/model/Conversation$ConversationType;->ENCRYPTED:Lio/rong/imlib/model/Conversation$ConversationType;

    invoke-virtual {v1, v4}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_44

    .line 3
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getConversationType()Lio/rong/imlib/model/Conversation$ConversationType;

    move-result-object v1

    sget-object v4, Lio/rong/imlib/model/Conversation$ConversationType;->APP_PUBLIC_SERVICE:Lio/rong/imlib/model/Conversation$ConversationType;

    invoke-virtual {v1, v4}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_44

    .line 4
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getConversationType()Lio/rong/imlib/model/Conversation$ConversationType;

    move-result-object v1

    sget-object v4, Lio/rong/imlib/model/Conversation$ConversationType;->PUBLIC_SERVICE:Lio/rong/imlib/model/Conversation$ConversationType;

    invoke-virtual {v1, v4}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_44

    .line 5
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getConversationType()Lio/rong/imlib/model/Conversation$ConversationType;

    move-result-object v1

    sget-object v4, Lio/rong/imlib/model/Conversation$ConversationType;->CUSTOMER_SERVICE:Lio/rong/imlib/model/Conversation$ConversationType;

    invoke-virtual {v1, v4}, Ljava/lang/Enum;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_42

    goto :goto_44

    :cond_42
    const/4 v1, 0x0

    goto :goto_45

    :cond_44
    :goto_44
    const/4 v1, 0x1

    .line 6
    :goto_45
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object v4

    invoke-virtual {v4}, Lio/rong/imlib/model/MessageContent;->isDestruct()Z

    move-result v4

    .line 7
    iget-object v5, p0, Lio/rong/imkit/fragment/ConversationFragment$11;->this$0:Lio/rong/imkit/fragment/ConversationFragment;

    # getter for: Lio/rong/imkit/fragment/ConversationFragment;->mRongExtension:Lio/rong/imkit/RongExtension;
    invoke-static {v5}, Lio/rong/imkit/fragment/ConversationFragment;->access$400(Lio/rong/imkit/fragment/ConversationFragment;)Lio/rong/imkit/RongExtension;

    move-result-object v5

    if-eqz v5, :cond_63

    iget-object v5, p0, Lio/rong/imkit/fragment/ConversationFragment$11;->this$0:Lio/rong/imkit/fragment/ConversationFragment;

    # getter for: Lio/rong/imkit/fragment/ConversationFragment;->mRongExtension:Lio/rong/imkit/RongExtension;
    invoke-static {v5}, Lio/rong/imkit/fragment/ConversationFragment;->access$400(Lio/rong/imkit/fragment/ConversationFragment;)Lio/rong/imkit/RongExtension;

    move-result-object v5

    invoke-virtual {v5}, Lio/rong/imkit/RongExtension;->isFireStatus()Z

    move-result v5

    if-eqz v5, :cond_63

    const/4 v5, 0x1

    goto :goto_64

    :cond_63
    const/4 v5, 0x0

    .line 8
    :goto_64
    iget-object v6, p0, Lio/rong/imkit/fragment/ConversationFragment$11;->this$0:Lio/rong/imkit/fragment/ConversationFragment;

    invoke-virtual {v6}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v6

    if-eqz v6, :cond_7d

    .line 9
    iget-object v6, p0, Lio/rong/imkit/fragment/ConversationFragment$11;->this$0:Lio/rong/imkit/fragment/ConversationFragment;

    invoke-virtual {v6}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v6

    invoke-virtual {v6}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v6

    sget v7, Lio/rong/imkit/R$bool;->rc_enable_reference_message:I

    invoke-virtual {v6, v7}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result v6

    goto :goto_7e

    :cond_7d
    const/4 v6, 0x0

    .line 10
    :goto_7e
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object v7

    instance-of v7, v7, Lio/rong/message/TextMessage;

    if-nez v7, :cond_a9

    .line 11
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object v7

    instance-of v7, v7, Lio/rong/message/ImageMessage;

    if-nez v7, :cond_a9

    .line 12
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object v7

    instance-of v7, v7, Lio/rong/message/FileMessage;

    if-nez v7, :cond_a9

    .line 13
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object v7

    instance-of v7, v7, Lio/rong/message/RichContentMessage;

    if-nez v7, :cond_a9

    .line 14
    invoke-virtual {p1}, Lio/rong/imkit/model/UIMessage;->getContent()Lio/rong/imlib/model/MessageContent;

    move-result-object p1

    instance-of p1, p1, Lio/rong/message/ReferenceMessage;

    if-eqz p1, :cond_a7

    goto :goto_a9

    :cond_a7
    const/4 p1, 0x0

    goto :goto_aa

    :cond_a9
    :goto_a9
    const/4 p1, 0x1

    :goto_aa
    if-eqz v0, :cond_ba

    if-eqz v6, :cond_ba

    if-eqz p1, :cond_ba

    if-nez v1, :cond_ba

    xor-int/lit8 p1, v4, 0x1

    xor-int/lit8 v0, v5, 0x1

    and-int/2addr p1, v0

    if-eqz p1, :cond_ba

    const/4 v2, 0x1

    :cond_ba
    return v2
.end method