MedalInfoDialog$c.smali
.class final Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;
.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/MedalInfoDialog;->a(II)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/MedalInfoDialog;
.field final synthetic b:Landroid/text/SpannableString;
# direct methods
.method constructor <init>(Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;Landroid/text/SpannableString;)V
.registers 3
iput-object p1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->a:Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;
iput-object p2, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->b:Landroid/text/SpannableString;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onSuccess(Landroid/graphics/Bitmap;)V
.registers 7
.line 294
new-instance v0, Lsg/bigo/live/support64/component/chat/holder/a/a;
iget-object v1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->a:Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;
invoke-virtual {v1}, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;->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
const-string p1, "\\[IMAGE]"
.line 295
invoke-static {p1}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
move-result-object p1
.line 296
iget-object v1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->b:Landroid/text/SpannableString;
check-cast v1, Ljava/lang/CharSequence;
invoke-virtual {p1, v1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object p1
.line 297
:goto_19
invoke-virtual {p1}, Ljava/util/regex/Matcher;->find()Z
move-result v1
if-eqz v1, :cond_2f
.line 298
invoke-virtual {p1}, Ljava/util/regex/Matcher;->start()I
move-result v1
.line 299
invoke-virtual {p1}, Ljava/util/regex/Matcher;->end()I
move-result v2
.line 300
iget-object v3, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->b:Landroid/text/SpannableString;
const/16 v4, 0x21
invoke-virtual {v3, v0, v1, v2, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V
goto :goto_19
.line 302
:cond_2f
iget-object p1, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->a:Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;
.line 1038
iget-object p1, p1, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog;->e:Lsg/bigo/live/support64/widget/FrescoTextView;
if-eqz p1, :cond_3c
.line 302
iget-object v0, p0, Lsg/bigolive/revenue64/component/medal/ui/MedalInfoDialog$c;->b:Landroid/text/SpannableString;
check-cast v0, Ljava/lang/CharSequence;
invoke-virtual {p1, v0}, Lsg/bigo/live/support64/widget/FrescoTextView;->setText(Ljava/lang/CharSequence;)V
:cond_3c
return-void
.end method