MedalNotifyDialog$b.smali

.class final Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lsg/bigo/live/support64/widget/FrescoTextView$a;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;->a(Lsg/bigo/live/support64/widget/FrescoTextView;Lsg/bigolive/revenue64/component/medal/data/MedalInfoBean;)V
.end annotation

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


# instance fields
.field final synthetic a:Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;

.field final synthetic b:Lsg/bigo/live/support64/widget/FrescoTextView;

.field final synthetic c:I

.field final synthetic d:Ljava/lang/String;


# direct methods
.method constructor <init>(Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;Lsg/bigo/live/support64/widget/FrescoTextView;ILjava/lang/String;)V
    .registers 5

    iput-object p1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->a:Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;

    iput-object p2, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->b:Lsg/bigo/live/support64/widget/FrescoTextView;

    iput p3, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->c:I

    iput-object p4, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->d:Ljava/lang/String;

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

    return-void
.end method


# virtual methods
.method public final onSuccess(Landroid/graphics/Bitmap;)V
    .registers 8

    .line 172
    new-instance v0, Lsg/bigo/live/support64/component/chat/holder/a/a;

    iget-object v1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->a:Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;

    invoke-virtual {v1}, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lsg/bigo/live/support64/component/chat/holder/a/a;-><init>(Landroid/content/Context;Landroid/graphics/Bitmap;)V

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

    iget-object v1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->d:Ljava/lang/String;

    check-cast v1, Ljava/lang/CharSequence;

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

    const-string v1, "\\[IMAGE]"

    .line 174
    invoke-static {v1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v1

    .line 175
    move-object v2, p1

    check-cast v2, Ljava/lang/CharSequence;

    invoke-virtual {v1, v2}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v1

    .line 176
    :goto_21
    invoke-virtual {v1}, Ljava/util/regex/Matcher;->find()Z

    move-result v3

    if-eqz v3, :cond_3a

    .line 177
    invoke-virtual {v1}, Ljava/util/regex/Matcher;->start()I

    move-result v3

    .line 178
    invoke-virtual {v1}, Ljava/util/regex/Matcher;->end()I

    move-result v4

    const/16 v5, 0x21

    .line 179
    invoke-virtual {p1, v0, v3, v4, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 180
    iget-object v3, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalNotifyDialog$b;->b:Lsg/bigo/live/support64/widget/FrescoTextView;

    invoke-virtual {v3, v2}, Lsg/bigo/live/support64/widget/FrescoTextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_21

    :cond_3a
    return-void
.end method