InfoNotificationMsgItemProvider.smali

.class public Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;
.super Lio/rong/imkit/widget/provider/IContainerItemProvider$MessageProvider;
.source "InfoNotificationMsgItemProvider.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lio/rong/imkit/widget/provider/IContainerItemProvider$MessageProvider<",
        "Lio/rong/message/InformationNotificationMessage;",
        ">;"
    }
.end annotation

.annotation runtime Lio/rong/imkit/model/ProviderTag;
    centerInHorizontal = true
    messageContent = Lio/rong/message/InformationNotificationMessage;
    showPortrait = false
    showProgress = false
    showSummaryWithName = false
    showWarning = false
.end annotation


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Lio/rong/imkit/widget/provider/IContainerItemProvider$MessageProvider;-><init>()V

    return-void
.end method


# virtual methods
.method public bridge synthetic bindView(Landroid/view/View;ILio/rong/imlib/model/MessageContent;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    .line 1
    check-cast p3, Lio/rong/message/InformationNotificationMessage;

    invoke-virtual {p0, p1, p2, p3, p4}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;->bindView(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V

    return-void
.end method

.method public bindView(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    .line 2
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;

    if-eqz p3, :cond_1b

    .line 3
    invoke-virtual {p3}, Lio/rong/message/InformationNotificationMessage;->getMessage()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p2

    if-nez p2, :cond_1b

    .line 4
    iget-object p1, p1, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;->contentTextView:Landroid/widget/TextView;

    invoke-virtual {p3}, Lio/rong/message/InformationNotificationMessage;->getMessage()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1b
    return-void
.end method

.method public bridge synthetic getContentSummary(Landroid/content/Context;Lio/rong/imlib/model/MessageContent;)Landroid/text/Spannable;
    .registers 3

    .line 1
    check-cast p2, Lio/rong/message/InformationNotificationMessage;

    invoke-virtual {p0, p1, p2}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;->getContentSummary(Landroid/content/Context;Lio/rong/message/InformationNotificationMessage;)Landroid/text/Spannable;

    move-result-object p1

    return-object p1
.end method

.method public getContentSummary(Landroid/content/Context;Lio/rong/message/InformationNotificationMessage;)Landroid/text/Spannable;
    .registers 3

    if-eqz p2, :cond_16

    .line 3
    invoke-virtual {p2}, Lio/rong/message/InformationNotificationMessage;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_16

    .line 4
    new-instance p1, Landroid/text/SpannableString;

    invoke-virtual {p2}, Lio/rong/message/InformationNotificationMessage;->getMessage()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    return-object p1

    :cond_16
    const/4 p1, 0x0

    return-object p1
.end method

.method public bridge synthetic getContentSummary(Lio/rong/imlib/model/MessageContent;)Landroid/text/Spannable;
    .registers 2

    .line 2
    check-cast p1, Lio/rong/message/InformationNotificationMessage;

    invoke-virtual {p0, p1}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;->getContentSummary(Lio/rong/message/InformationNotificationMessage;)Landroid/text/Spannable;

    move-result-object p1

    return-object p1
.end method

.method public getContentSummary(Lio/rong/message/InformationNotificationMessage;)Landroid/text/Spannable;
    .registers 2

    const/4 p1, 0x0

    return-object p1
.end method

.method public newView(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 5

    .line 1
    invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    sget p2, Lio/rong/imkit/R$layout;->rc_item_information_notification_message:I

    const/4 v0, 0x0

    invoke-virtual {p1, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    .line 2
    new-instance p2, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;

    invoke-direct {p2, v0}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;-><init>(Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$1;)V

    .line 3
    sget v0, Lio/rong/imkit/R$id;->rc_msg:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p2, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;->contentTextView:Landroid/widget/TextView;

    .line 4
    iget-object v0, p2, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider$ViewHolder;->contentTextView:Landroid/widget/TextView;

    invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V

    .line 5
    invoke-virtual {p1, p2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    return-object p1
.end method

.method public bridge synthetic onItemClick(Landroid/view/View;ILio/rong/imlib/model/MessageContent;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    .line 1
    check-cast p3, Lio/rong/message/InformationNotificationMessage;

    invoke-virtual {p0, p1, p2, p3, p4}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;->onItemClick(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V

    return-void
.end method

.method public onItemClick(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    return-void
.end method

.method public bridge synthetic onItemLongClick(Landroid/view/View;ILio/rong/imlib/model/MessageContent;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    .line 1
    check-cast p3, Lio/rong/message/InformationNotificationMessage;

    invoke-virtual {p0, p1, p2, p3, p4}, Lio/rong/imkit/widget/provider/InfoNotificationMsgItemProvider;->onItemLongClick(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V

    return-void
.end method

.method public onItemLongClick(Landroid/view/View;ILio/rong/message/InformationNotificationMessage;Lio/rong/imkit/model/UIMessage;)V
    .registers 5

    return-void
.end method