EditCommentComponent.smali

.class public final Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;
.super Lsg/bigo/core/component/AbstractComponent;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/imo/android/imoim/feeds/ui/detail/components/comment/e;
.implements Lcom/masala/share/eventbus/c$a;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lsg/bigo/core/component/AbstractComponent<",
        "Lsg/bigo/core/mvp/presenter/a;",
        "Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;",
        "Lcom/imo/android/imoim/feeds/ui/detail/e;",
        ">;",
        "Landroid/view/View$OnClickListener;",
        "Lcom/imo/android/imoim/feeds/ui/detail/components/comment/e;",
        "Lcom/masala/share/eventbus/c$a;"
    }
.end annotation


# static fields
.field static final synthetic a:[Lkotlin/k/g;


# instance fields
.field private final A:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;

.field b:Z

.field c:Landroid/widget/EditText;

.field d:Landroid/widget/ImageView;

.field private final i:Ljava/lang/String;

.field private final j:I

.field private k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

.field private l:I

.field private m:Z

.field private n:Z

.field private o:Landroid/view/View;

.field private p:Landroid/view/View;

.field private q:Landroid/widget/LinearLayout;

.field private r:Landroid/widget/ImageView;

.field private s:Landroid/widget/LinearLayout;

.field private t:Ljava/lang/String;

.field private u:J

.field private v:J

.field private w:Landroid/view/View;

.field private final x:Lkotlin/f;

.field private y:I

.field private z:Z


# direct methods
.method static constructor <clinit>()V
    .registers 5

    const/4 v0, 0x1

    new-array v0, v0, [Lkotlin/k/g;

    new-instance v1, Lkotlin/f/b/z;

    const-class v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v2

    const-string v3, "viewModel"

    const-string v4, "getViewModel()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/viewmodel/CommentPanelViewModel;"

    invoke-direct {v1, v2, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v1}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v1

    check-cast v1, Lkotlin/k/g;

    const/4 v2, 0x0

    aput-object v1, v0, v2

    sput-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a:[Lkotlin/k/g;

    return-void
.end method

.method public constructor <init>(Lsg/bigo/core/component/c;Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lsg/bigo/core/component/c<",
            "+",
            "Lsg/bigo/core/component/c/a;",
            ">;",
            "Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;",
            ")V"
        }
    .end annotation

    const-string v0, "help"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "videoActionProvider"

    invoke-static {p2, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 77
    invoke-direct {p0, p1}, Lsg/bigo/core/component/AbstractComponent;-><init>(Lsg/bigo/core/component/c;)V

    iput-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->A:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;

    const-string p1, "EditCommentCpt"

    .line 80
    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    const/16 p1, 0x8c

    .line 85
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->j:I

    .line 87
    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    .line 109
    new-instance p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$g;

    invoke-direct {p1, p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$g;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V

    check-cast p1, Lkotlin/f/a/a;

    invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->x:Lkotlin/f;

    const/4 p1, 0x1

    .line 116
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    return-void
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)I
    .registers 1

    .line 76
    iget p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->j:I

    return p0
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;Lcom/masala/share/proto/model/VideoCommentItem;)V
    .registers 8

    if-eqz p1, :cond_9

    .line 15579
    iget v0, p1, Lcom/masala/share/proto/model/VideoCommentItem;->sendStatus:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    goto :goto_a

    :cond_9
    const/4 v0, 0x0

    :goto_a
    const/4 v1, 0x0

    if-nez v0, :cond_e

    goto :goto_69

    .line 15580
    :cond_e
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-nez v2, :cond_69

    .line 15581
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f:Lsg/bigo/core/component/a/d;

    sget-object v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 16076
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->m()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v2

    .line 15581
    check-cast v2, Lsg/bigo/core/component/a/b;

    new-instance v3, Landroid/util/SparseArray;

    invoke-direct {v3}, Landroid/util/SparseArray;-><init>()V

    const/4 v4, 0x6

    invoke-virtual {v3, v4, p1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    invoke-interface {v0, v2, v3}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V

    const v0, 0x7e0b00b4

    new-array v2, v1, [Ljava/lang/Object;

    .line 15582
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 17026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    .line 15583
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m()V

    .line 15584
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    if-eqz v0, :cond_45

    .line 15585
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_BOTTOM:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    goto :goto_4a

    .line 15587
    :cond_45
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    .line 15589
    :goto_4a
    invoke-direct {p0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c(Z)V

    .line 15590
    iget-wide v2, p1, Lcom/masala/share/proto/model/VideoCommentItem;->commentId:J

    const-wide/16 v4, 0x0

    cmp-long v0, v2, v4

    if-lez v0, :cond_5a

    .line 15591
    iget-wide v2, p1, Lcom/masala/share/proto/model/VideoCommentItem;->commentId:J

    iput-wide v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->v:J

    goto :goto_61

    .line 15593
    :cond_5a
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    const-string v0, "commentId is 0"

    invoke-static {p1, v0}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 15595
    :goto_61
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    if-eqz p0, :cond_68

    invoke-virtual {p0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    :cond_68
    return-void

    :cond_69
    :goto_69
    if-nez v0, :cond_6c

    return-void

    .line 15597
    :cond_6c
    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_ad

    .line 15598
    iget p1, p1, Lcom/masala/share/proto/model/VideoCommentItem;->failCode:I

    const/4 v0, 0x3

    if-eq p1, v0, :cond_99

    const/4 v0, 0x4

    if-eq p1, v0, :cond_8a

    const p1, 0x7e0b00b3

    new-array v0, v1, [Ljava/lang/Object;

    .line 15606
    invoke-static {p1, v0}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    .line 20026
    invoke-static {p1, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    goto :goto_a7

    :cond_8a
    const p1, 0x7e0b00b1

    new-array v0, v1, [Ljava/lang/Object;

    .line 15603
    invoke-static {p1, v0}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    .line 19026
    invoke-static {p1, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    goto :goto_a7

    :cond_99
    const p1, 0x7e0b00b0

    new-array v0, v1, [Ljava/lang/Object;

    .line 15600
    invoke-static {p1, v0}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

    .line 18026
    invoke-static {p1, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    .line 15609
    :goto_a7
    invoke-direct {p0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c(Z)V

    .line 15611
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n()V

    :cond_ad
    return-void
.end method

.method private final a(Z)V
    .registers 4

    .line 288
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_1b

    if-eqz p1, :cond_e

    .line 289
    iget-boolean v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    if-nez v1, :cond_e

    .line 290
    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/AppBaseActivity;->a(Landroid/widget/EditText;)V

    return-void

    :cond_e
    if-nez p1, :cond_1b

    .line 291
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    if-eqz p1, :cond_1b

    .line 292
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    check-cast p1, Landroid/view/View;

    invoke-static {p1}, Lcom/imo/android/imoim/feeds/ui/AppBaseActivity;->hideKeyboard(Landroid/view/View;)V

    :cond_1b
    return-void
.end method

.method private final b(I)V
    .registers 8

    .line 414
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->q:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_1c

    int-to-float p1, p1

    .line 415
    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getTranslationY()F

    move-result v1

    sub-float v1, p1, v1

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v1

    float-to-double v1, v1

    const-wide v3, 0x3f847ae147ae147bL    # 0.01

    cmpl-double v5, v1, v3

    if-lez v5, :cond_1c

    .line 416
    invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setTranslationY(F)V

    :cond_1c
    return-void
.end method

.method public static final synthetic b(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V
    .registers 1

    .line 76
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->l()V

    return-void
.end method

.method private final b(Z)V
    .registers 7

    const/4 v0, 0x1

    const/4 v1, 0x0

    if-eqz p1, :cond_36

    .line 503
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v2, :cond_2e

    .line 504
    invoke-virtual {v2}, Landroid/widget/EditText;->getSelectionEnd()I

    move-result v3

    .line 505
    invoke-virtual {v2, v1}, Landroid/widget/EditText;->setSingleLine(Z)V

    const/4 v4, 0x5

    .line 506
    invoke-virtual {v2, v4}, Landroid/widget/EditText;->setMaxLines(I)V

    .line 507
    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

    if-eqz v4, :cond_23

    invoke-interface {v4}, Ljava/lang/CharSequence;->length()I

    move-result v4

    if-nez v4, :cond_22

    goto :goto_23

    :cond_22
    const/4 v0, 0x0

    :cond_23
    :goto_23
    if-nez v0, :cond_2e

    .line 508
    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    check-cast v0, Landroid/text/Spannable;

    invoke-static {v0, v3}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 511
    :cond_2e
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    if-eqz v0, :cond_82

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_82

    .line 513
    :cond_36
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v2, :cond_61

    .line 514
    invoke-virtual {v2}, Landroid/widget/EditText;->getSelectionEnd()I

    move-result v3

    .line 515
    invoke-virtual {v2, v0}, Landroid/widget/EditText;->setMaxLines(I)V

    .line 516
    invoke-virtual {v2, v0}, Landroid/widget/EditText;->setSingleLine(Z)V

    .line 517
    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v4

    check-cast v4, Ljava/lang/CharSequence;

    if-eqz v4, :cond_55

    invoke-interface {v4}, Ljava/lang/CharSequence;->length()I

    move-result v4

    if-nez v4, :cond_53

    goto :goto_55

    :cond_53
    const/4 v4, 0x0

    goto :goto_56

    :cond_55
    :goto_55
    const/4 v4, 0x1

    :goto_56
    if-nez v4, :cond_61

    .line 518
    invoke-virtual {v2}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    check-cast v2, Landroid/text/Spannable;

    invoke-static {v2, v3}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 521
    :cond_61
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    if-eqz v2, :cond_82

    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v3, :cond_6e

    invoke-virtual {v3}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    goto :goto_6f

    :cond_6e
    const/4 v3, 0x0

    :goto_6f
    check-cast v3, Ljava/lang/CharSequence;

    if-eqz v3, :cond_7b

    invoke-interface {v3}, Ljava/lang/CharSequence;->length()I

    move-result v3

    if-nez v3, :cond_7a

    goto :goto_7b

    :cond_7a
    const/4 v0, 0x0

    :cond_7b
    :goto_7b
    if-eqz v0, :cond_7f

    const/16 v1, 0x8

    :cond_7f
    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 523
    :cond_82
    :goto_82
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b:Z

    return-void
.end method

.method public static final synthetic c(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V
    .registers 1

    .line 76
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k()V

    return-void
.end method

.method private final c(Z)V
    .registers 4

    .line 528
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    if-eqz v0, :cond_9

    xor-int/lit8 v1, p1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 529
    :cond_9
    iput-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->z:Z

    return-void
.end method

.method private d()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/viewmodel/CommentPanelViewModel;
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->x:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/viewmodel/CommentPanelViewModel;

    return-object v0
.end method

.method public static final synthetic d(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)Lcom/imo/android/imoim/feeds/ui/detail/e;
    .registers 1

    .line 76
    iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast p0, Lcom/imo/android/imoim/feeds/ui/detail/e;

    return-object p0
.end method

.method private final e()V
    .registers 6

    .line 131
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_5

    return-void

    .line 134
    :cond_5
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f:Lsg/bigo/core/component/a/d;

    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 1017
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    .line 134
    check-cast v1, Lsg/bigo/core/component/a/b;

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V

    .line 135
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/detail/e;

    const v1, 0x7e080041

    invoke-interface {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/e;->a(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->o:Landroid/view/View;

    if-eqz v0, :cond_34

    const v1, 0x7e08006f

    .line 642
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_2c

    goto :goto_35

    :cond_2c
    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type android.view.View"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_34
    move-object v0, v2

    :goto_35
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    const-string v1, "null cannot be cast to non-null type android.widget.LinearLayout"

    if-eqz v0, :cond_4d

    const v3, 0x7e0800de

    .line 643
    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_47

    check-cast v0, Landroid/widget/LinearLayout;

    goto :goto_4e

    :cond_47
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4d
    move-object v0, v2

    :goto_4e
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->q:Landroid/widget/LinearLayout;

    .line 138
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_68

    const v3, 0x7e08015b

    .line 644
    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_60

    check-cast v0, Landroid/widget/EditText;

    goto :goto_69

    :cond_60
    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type android.widget.EditText"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_68
    move-object v0, v2

    :goto_69
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    .line 139
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    const-string v3, "null cannot be cast to non-null type android.widget.ImageView"

    if-eqz v0, :cond_83

    const v4, 0x7e0800b8

    .line 645
    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_7d

    check-cast v0, Landroid/widget/ImageView;

    goto :goto_84

    :cond_7d
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v3}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_83
    move-object v0, v2

    :goto_84
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    .line 140
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_9c

    const v4, 0x7e0800cc

    .line 646
    invoke-virtual {v0, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_96

    check-cast v0, Landroid/widget/ImageView;

    goto :goto_9d

    :cond_96
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v3}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_9c
    move-object v0, v2

    :goto_9d
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    const/4 v3, 0x0

    if-eqz v0, :cond_a5

    .line 141
    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setEnabled(Z)V

    .line 142
    :cond_a5
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d:Landroid/widget/ImageView;

    if-eqz v0, :cond_af

    move-object v4, p0

    check-cast v4, Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v4}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 143
    :cond_af
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_b9

    move-object v4, p0

    check-cast v4, Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v4}, Landroid/widget/EditText;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 144
    :cond_b9
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_c7

    new-instance v4, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$a;

    invoke-direct {v4, p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$a;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V

    check-cast v4, Landroid/text/TextWatcher;

    invoke-virtual {v0, v4}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 168
    :cond_c7
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->c()Z

    move-result v0

    if-eqz v0, :cond_df

    .line 169
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_d4

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 170
    :cond_d4
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_e8

    move-object v3, p0

    check-cast v3, Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_e8

    .line 172
    :cond_df
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_e8

    const/16 v3, 0x8

    invoke-virtual {v0, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 174
    :cond_e8
    :goto_e8
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_ff

    const v2, 0x7e0800ef

    .line 647
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_f9

    move-object v2, v0

    check-cast v2, Landroid/widget/LinearLayout;

    goto :goto_ff

    :cond_f9
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_ff
    :goto_ff
    iput-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    .line 175
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h()V

    const/4 v0, 0x1

    .line 176
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    const/16 v0, 0x12d

    .line 177
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    return-void
.end method

.method private final f()V
    .registers 3

    .line 398
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_a

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

    move-result v0

    if-eqz v0, :cond_1c

    .line 399
    :cond_a
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    const/4 v1, 0x0

    if-eqz v0, :cond_12

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 400
    :cond_12
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->o:Landroid/view/View;

    if-eqz v0, :cond_19

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 402
    :cond_19
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h()V

    :cond_1c
    return-void
.end method

.method private final g()V
    .registers 3

    .line 407
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    const/16 v1, 0x8

    if-eqz v0, :cond_c

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

    move-result v0

    if-eq v0, v1, :cond_1a

    .line 408
    :cond_c
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz v0, :cond_13

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 409
    :cond_13
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->o:Landroid/view/View;

    if-eqz v0, :cond_1a

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_1a
    return-void
.end method

.method private final h()V
    .registers 9

    .line 422
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->c()Z

    move-result v0

    if-nez v0, :cond_10

    .line 423
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_f

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_f
    return-void

    .line 426
    :cond_10
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->d()I

    move-result v0

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->a(I)Ljava/util/List;

    move-result-object v0

    .line 427
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->e()I

    move-result v1

    int-to-double v1, v1

    const-wide/high16 v3, 0x3fe0000000000000L    # 0.5

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    double-to-int v1, v1

    .line 428
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v2, :cond_2e

    invoke-virtual {v2}, Landroid/widget/LinearLayout;->removeAllViews()V

    .line 429
    :cond_2e
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_32
    :goto_32
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    const/4 v3, 0x0

    if-eqz v2, :cond_a9

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/Number;

    invoke-virtual {v2}, Ljava/lang/Number;->intValue()I

    move-result v2

    .line 430
    new-instance v4, Landroid/widget/TextView;

    iget-object v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    const-string v6, "mActivityServiceWrapper"

    invoke-static {v5, v6}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v5, Lcom/imo/android/imoim/feeds/ui/detail/e;

    invoke-interface {v5}, Lcom/imo/android/imoim/feeds/ui/detail/e;->b()Landroid/content/Context;

    move-result-object v5

    invoke-direct {v4, v5}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 431
    new-instance v5, Landroid/view/ViewGroup$LayoutParams;

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->e()I

    move-result v6

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->f()I

    move-result v7

    invoke-direct {v5, v6, v7}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

    .line 432
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const/16 v5, 0x51

    .line 433
    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setGravity(I)V

    .line 434
    invoke-virtual {v4, v3, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 435
    sget v5, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v6, 0x10

    if-lt v5, v6, :cond_76

    .line 436
    invoke-virtual {v4, v3, v3, v3, v3}, Landroid/widget/TextView;->setPaddingRelative(IIII)V

    :cond_76
    int-to-float v5, v1

    .line 438
    invoke-virtual {v4, v3, v5}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 439
    invoke-static {v2}, Ljava/lang/Character;->toChars(I)[C

    move-result-object v2

    const-string v3, "Character.toChars(item)"

    invoke-static {v2, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    new-instance v3, Ljava/lang/String;

    invoke-direct {v3, v2}, Ljava/lang/String;-><init>([C)V

    check-cast v3, Ljava/lang/CharSequence;

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

    .line 440
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setTag(Ljava/lang/Object;)V

    const/high16 v2, -0x1000000

    .line 441
    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 442
    move-object v2, p0

    check-cast v2, Landroid/view/View$OnClickListener;

    invoke-virtual {v4, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 443
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v2, :cond_32

    check-cast v4, Landroid/view/View;

    invoke-virtual {v2, v4}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    goto :goto_32

    .line 445
    :cond_a9
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_b0

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_b0
    return-void
.end method

.method private final i()V
    .registers 6

    .line 449
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->j()V

    .line 450
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    if-nez v0, :cond_8

    return-void

    :cond_8
    if-eqz v0, :cond_f

    .line 453
    invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    goto :goto_10

    :cond_f
    const/4 v0, 0x0

    .line 454
    :goto_10
    iget v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->l:I

    if-nez v1, :cond_28

    invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/masala/share/utils/l;->b(Landroid/content/Context;)I

    move-result v1

    int-to-double v1, v1

    const-wide v3, 0x3fd7ae147ae147aeL    # 0.37

    invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v1, v1, v3

    double-to-int v1, v1

    :cond_28
    neg-int v2, v1

    .line 455
    invoke-direct {p0, v2}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(I)V

    if-eqz v0, :cond_30

    .line 456
    iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 457
    :cond_30
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    if-eqz v0, :cond_38

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 458
    :cond_38
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_41

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :cond_41
    const/4 v0, 0x1

    .line 459
    invoke-direct {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(Z)V

    return-void
.end method

.method private final j()V
    .registers 8

    .line 463
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    if-eqz v0, :cond_5

    return-void

    .line 466
    :cond_5
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v0, Lcom/imo/android/imoim/feeds/ui/detail/e;

    const v1, 0x7e080145

    invoke-interface {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/e;->a(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/view/ViewStub;

    .line 467
    invoke-static {v0}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/view/ViewStub;)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    const/4 v1, 0x0

    if-eqz v0, :cond_2f

    const v2, 0x7e080132

    .line 648
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_27

    check-cast v0, Landroidx/recyclerview/widget/RecyclerView;

    goto :goto_30

    :cond_27
    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type androidx.recyclerview.widget.RecyclerView"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2f
    move-object v0, v1

    :goto_30
    const/16 v2, 0x8

    const-string v3, "mActivityServiceWrapper"

    if-eqz v0, :cond_53

    .line 469
    new-instance v4, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/EmoticonAdapter;

    move-object v5, p0

    check-cast v5, Landroid/view/View$OnClickListener;

    iget-object v6, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    invoke-static {v6, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v6, Lcom/imo/android/imoim/feeds/ui/detail/e;

    invoke-interface {v6}, Lcom/imo/android/imoim/feeds/ui/detail/e;->b()Landroid/content/Context;

    move-result-object v6

    invoke-static {v6}, Lcom/masala/share/utils/l;->a(Landroid/content/Context;)I

    move-result v6

    div-int/2addr v6, v2

    invoke-direct {v4, v5, v6}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/EmoticonAdapter;-><init>(Landroid/view/View$OnClickListener;I)V

    check-cast v4, Landroidx/recyclerview/widget/RecyclerView$Adapter;

    invoke-virtual {v0, v4}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V

    :cond_53
    if-eqz v0, :cond_59

    const/4 v4, 0x1

    .line 470
    invoke-virtual {v0, v4}, Landroidx/recyclerview/widget/RecyclerView;->setHasFixedSize(Z)V

    :cond_59
    if-eqz v0, :cond_70

    .line 471
    new-instance v4, Landroidx/recyclerview/widget/GridLayoutManager;

    iget-object v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    invoke-static {v5, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v5, Lcom/imo/android/imoim/feeds/ui/detail/e;

    invoke-interface {v5}, Lcom/imo/android/imoim/feeds/ui/detail/e;->b()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v4, v3, v2}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V

    check-cast v4, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;

    invoke-virtual {v0, v4}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V

    .line 472
    :cond_70
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    const-string v2, "null cannot be cast to non-null type android.view.View"

    if-eqz v0, :cond_86

    const v1, 0x7e08015c

    .line 649
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    if-eqz v1, :cond_80

    goto :goto_86

    :cond_80
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 473
    :cond_86
    :goto_86
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    if-eqz v0, :cond_a3

    const v3, 0x7e08006c

    .line 650
    invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_9d

    if-eqz v0, :cond_a3

    .line 473
    sget-object v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$b;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$b;

    check-cast v2, Landroid/view/View$OnTouchListener;

    invoke-virtual {v0, v2}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    goto :goto_a3

    .line 650
    :cond_9d
    new-instance v0, Lkotlin/TypeCastException;

    invoke-direct {v0, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_a3
    :goto_a3
    if-eqz v1, :cond_ab

    .line 474
    move-object v0, p0

    check-cast v0, Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_ab
    if-eqz v1, :cond_b4

    .line 475
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$c;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$c;

    check-cast v0, Landroid/view/View$OnLongClickListener;

    invoke-virtual {v1, v0}, Landroid/view/View;->setOnLongClickListener(Landroid/view/View$OnLongClickListener;)V

    :cond_b4
    if-eqz v1, :cond_c0

    .line 476
    new-instance v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$d;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$d;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V

    check-cast v0, Landroid/view/View$OnTouchListener;

    invoke-virtual {v1, v0}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    :cond_c0
    return-void
.end method

.method private final k()V
    .registers 5

    .line 484
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_43

    .line 485
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    check-cast v1, Ljava/lang/CharSequence;

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

    move-result v1

    if-nez v1, :cond_43

    .line 486
    invoke-virtual {v0}, Landroid/widget/EditText;->hasFocus()Z

    move-result v1

    if-nez v1, :cond_2f

    .line 487
    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 488
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    check-cast v1, Landroid/text/Spannable;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v2

    if-nez v2, :cond_28

    invoke-static {}, Lkotlin/f/b/o;->a()V

    :cond_28
    invoke-interface {v2}, Landroid/text/Editable;->length()I

    move-result v2

    invoke-static {v1, v2}, Landroid/text/Selection;->setSelection(Landroid/text/Spannable;I)V

    .line 490
    :cond_2f
    new-instance v1, Landroid/view/KeyEvent;

    const/4 v2, 0x0

    const/16 v3, 0x43

    invoke-direct {v1, v2, v3}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    .line 491
    new-instance v1, Landroid/view/KeyEvent;

    const/4 v2, 0x1

    invoke-direct {v1, v2, v3}, Landroid/view/KeyEvent;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    :cond_43
    return-void
.end method

.method private final l()V
    .registers 8

    .line 533
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->z:Z

    if-eqz v0, :cond_c

    .line 534
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    const-string v1, "publishing, skip.."

    invoke-static {v0, v1}, Lsg/bigo/log/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    return-void

    .line 537
    :cond_c
    invoke-static {}, Lsg/bigo/common/p;->b()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_22

    const v0, 0x7e0b0094

    new-array v2, v1, [Ljava/lang/Object;

    .line 538
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 11026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void

    .line 541
    :cond_22
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_2b

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    goto :goto_2c

    :cond_2b
    const/4 v0, 0x0

    :goto_2c
    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lsg/bigo/svcapi/util/Utils;->filterMultiNewLine(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 542
    move-object v2, v0

    check-cast v2, Ljava/lang/CharSequence;

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

    move-result v3

    if-nez v3, :cond_100

    const-string v3, "msg"

    invoke-static {v0, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    if-eqz v0, :cond_f8

    invoke-static {v2}, Lkotlin/m/p;->b(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    check-cast v3, Ljava/lang/CharSequence;

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

    move-result v3

    if-eqz v3, :cond_56

    goto/16 :goto_100

    .line 546
    :cond_56
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    iget v4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->j:I

    if-le v3, v4, :cond_6d

    const v0, 0x7e0b0030

    new-array v2, v1, [Ljava/lang/Object;

    .line 547
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 13026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void

    .line 550
    :cond_6d
    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->t:Ljava/lang/String;

    check-cast v3, Ljava/lang/CharSequence;

    invoke-static {v2, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_86

    const v0, 0x7e0b00b2

    new-array v2, v1, [Ljava/lang/Object;

    .line 551
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 14026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void

    .line 554
    :cond_86
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v2

    iget-wide v4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->u:J

    sub-long/2addr v2, v4

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    const-wide/16 v5, 0x5

    invoke-virtual {v4, v5, v6}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J

    move-result-wide v4

    cmp-long v6, v2, v4

    if-gez v6, :cond_a8

    const v0, 0x7e0b00b1

    new-array v2, v1, [Ljava/lang/Object;

    .line 555
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 15026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void

    .line 558
    :cond_a8
    new-instance v1, Lcom/masala/share/proto/model/VideoCommentItem;

    invoke-direct {v1}, Lcom/masala/share/proto/model/VideoCommentItem;-><init>()V

    .line 559
    invoke-static {v0}, Lcom/imo/android/imoim/feeds/g/g;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 560
    iput-object v0, v1, Lcom/masala/share/proto/model/VideoCommentItem;->comment:Ljava/lang/String;

    .line 561
    iput-object v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->comMsg:Ljava/lang/String;

    .line 562
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/utils/d;->a()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->nickName:Ljava/lang/String;

    .line 563
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/utils/d;->b()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->avatarUrl:Ljava/lang/String;

    .line 564
    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->A:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;

    invoke-interface {v2}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;->w()Lcom/masala/share/proto/VideoPost;

    move-result-object v2

    if-eqz v2, :cond_d5

    .line 565
    iget-wide v3, v2, Lcom/masala/share/proto/VideoPost;->a:J

    iput-wide v3, v1, Lcom/masala/share/proto/model/VideoCommentItem;->postId:J

    .line 566
    iget-object v2, v2, Lcom/masala/share/proto/VideoPost;->b:Lcom/masala/share/uid/Uid;

    invoke-virtual {v2}, Lcom/masala/share/uid/Uid;->b()I

    move-result v2

    iput v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->postUid:I

    .line 568
    :cond_d5
    invoke-static {}, Lcom/masala/share/utils/e/b;->a()I

    move-result v2

    int-to-long v2, v2

    iput-wide v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->uid:J

    .line 569
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->commentTime:J

    const/4 v2, 0x1

    .line 570
    iput v2, v1, Lcom/masala/share/proto/model/VideoCommentItem;->sendStatus:I

    .line 572
    invoke-direct {p0, v2}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c(Z)V

    .line 573
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->d()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/viewmodel/CommentPanelViewModel;

    move-result-object v2

    invoke-virtual {v2, v1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/commentPanel/viewmodel/CommentPanelViewModel;->c(Lcom/masala/share/proto/model/VideoCommentItem;)V

    .line 574
    iput-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->t:Ljava/lang/String;

    .line 575
    invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->u:J

    return-void

    .line 542
    :cond_f8
    new-instance v0, Lkotlin/TypeCastException;

    const-string v1, "null cannot be cast to non-null type kotlin.CharSequence"

    invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_100
    :goto_100
    const v0, 0x7e0b002f

    new-array v2, v1, [Ljava/lang/Object;

    .line 543
    invoke-static {v0, v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    check-cast v0, Ljava/lang/CharSequence;

    .line 12026
    invoke-static {v0, v1}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void
.end method

.method private final m()V
    .registers 3

    .line 617
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_b

    const-string v1, ""

    check-cast v1, Ljava/lang/CharSequence;

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_b
    return-void
.end method

.method private final n()V
    .registers 4

    const-wide/16 v0, 0x0

    .line 624
    iput-wide v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->v:J

    const/4 v2, 0x0

    .line 625
    iput-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->t:Ljava/lang/String;

    .line 626
    iput-wide v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->u:J

    return-void
.end method


# virtual methods
.method public final J_()V
    .registers 1

    return-void
.end method

.method public final a(I)V
    .registers 5

    const/4 v0, 0x1

    new-array v0, v0, [Lkotlin/m;

    .line 638
    iget v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    const-string v2, "comment_edit_refer"

    invoke-static {v2, v1}, Lkotlin/s;->a(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/m;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    invoke-static {v0}, Lkotlin/a/af;->c([Lkotlin/m;)Ljava/util/HashMap;

    move-result-object v0

    .line 639
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    check-cast v1, Lcom/imo/android/imoim/feeds/ui/detail/e;

    check-cast v0, Ljava/util/Map;

    invoke-interface {v1, p1, v0}, Lcom/imo/android/imoim/feeds/ui/detail/e;->a(ILjava/util/Map;)V

    return-void
.end method

.method public final a(Landroidx/lifecycle/LifecycleOwner;)V
    .registers 4

    .line 126
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object v0

    move-object v1, p0

    check-cast v1, Lcom/masala/share/eventbus/c$a;

    invoke-interface {v0, v1}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;)V

    .line 127
    invoke-super {p0, p1}, Lsg/bigo/core/component/AbstractComponent;->a(Landroidx/lifecycle/LifecycleOwner;)V

    return-void
.end method

.method public final a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V
    .registers 9

    const-string v0, "state"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 214
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-ne p1, v0, :cond_a

    return-void

    .line 217
    :cond_a
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "setState:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, "  cur:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 218
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->e()V

    .line 219
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_KEYBOARD:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    const/4 v1, 0x4

    const/4 v2, 0x2

    if-eq p1, v0, :cond_34

    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-ne p1, v0, :cond_3d

    .line 220
    :cond_34
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    if-eqz v0, :cond_3a

    const/4 v0, 0x4

    goto :goto_3b

    :cond_3a
    const/4 v0, 0x2

    :goto_3b
    iput v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    .line 223
    :cond_3d
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    const/4 v3, 0x1

    if-eq p1, v0, :cond_5e

    .line 224
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_49

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setFocusable(Z)V

    .line 225
    :cond_49
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_50

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    .line 226
    :cond_50
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_57

    invoke-virtual {v0, v3}, Landroid/widget/EditText;->setCursorVisible(Z)V

    .line 227
    :cond_57
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_5e

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 229
    :cond_5e
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/b;->a:[I

    invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->ordinal()I

    move-result v4

    aget v0, v0, v4

    const/4 v4, 0x3

    const/4 v5, 0x0

    if-eq v0, v3, :cond_d6

    const v6, 0x7e07006d

    if-eq v0, v2, :cond_a7

    if-eq v0, v4, :cond_8e

    if-eq v0, v1, :cond_75

    goto/16 :goto_10f

    .line 266
    :cond_75
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f()V

    .line 267
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_86

    const v1, 0x7e07006e

    invoke-static {v1}, Lsg/bigo/mobile/android/aab/c/b;->a(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 268
    :cond_86
    invoke-direct {p0, v5}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Z)V

    .line 269
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i()V

    goto/16 :goto_10f

    .line 259
    :cond_8e
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f()V

    .line 261
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_98

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 262
    :cond_98
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_a3

    invoke-static {v6}, Lsg/bigo/mobile/android/aab/c/b;->a(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 263
    :cond_a3
    invoke-direct {p0, v3}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Z)V

    goto :goto_10f

    .line 246
    :cond_a7
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f()V

    .line 247
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->w:Landroid/view/View;

    if-eqz v0, :cond_b3

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 248
    :cond_b3
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->s:Landroid/widget/LinearLayout;

    if-eqz v0, :cond_ba

    invoke-virtual {v0, v5}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 249
    :cond_ba
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    if-eqz v0, :cond_c2

    .line 250
    invoke-direct {p0, v5}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Z)V

    goto :goto_c5

    .line 252
    :cond_c2
    invoke-direct {p0, v5}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(I)V

    .line 254
    :goto_c5
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->r:Landroid/widget/ImageView;

    if-eqz v0, :cond_d0

    invoke-static {v6}, Lsg/bigo/mobile/android/aab/c/b;->a(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 255
    :cond_d0
    invoke-direct {p0, v5}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(Z)V

    .line 256
    iput v4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    goto :goto_10f

    .line 232
    :cond_d6
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    if-eqz v0, :cond_de

    .line 233
    invoke-direct {p0, v5}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Z)V

    goto :goto_e1

    .line 235
    :cond_de
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->g()V

    .line 237
    :goto_e1
    new-instance v0, Landroid/util/SparseArray;

    invoke-direct {v0}, Landroid/util/SparseArray;-><init>()V

    .line 238
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v1, :cond_f5

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    if-eqz v1, :cond_f5

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    goto :goto_f6

    :cond_f5
    const/4 v1, 0x0

    :goto_f6
    invoke-virtual {v0, v4, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 239
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->f:Lsg/bigo/core/component/a/d;

    sget-object v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 10046
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->g()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v2

    .line 239
    check-cast v2, Lsg/bigo/core/component/a/b;

    invoke-interface {v1, v2, v0}, Lsg/bigo/core/component/a/d;->a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V

    .line 241
    iput-boolean v5, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    .line 242
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->a()V

    .line 243
    iput v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->y:I

    .line 272
    :goto_10f
    iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    return-void
.end method

.method public final synthetic a(Lsg/bigo/core/component/a/b;Landroid/util/SparseArray;)V
    .registers 8

    .line 76
    check-cast p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    .line 4188
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 5021
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->b()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v0

    .line 4188
    invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    const-string v1, "null cannot be cast to non-null type kotlin.Int"

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-eqz v0, :cond_4d

    if-eqz p2, :cond_19

    invoke-virtual {p2, v4}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    :cond_19
    if-eqz v2, :cond_47

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result p1

    .line 5361
    iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v0

    const-string v1, "onKeyboardShow: "

    invoke-virtual {v1, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {p2, v0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 5362
    iput-boolean v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    .line 5363
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->l:I

    neg-int p1, p1

    .line 5364
    invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(I)V

    .line 5365
    invoke-direct {p0, v3}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(Z)V

    .line 5366
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_KEYBOARD:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-eq p1, p2, :cond_46

    .line 5367
    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_KEYBOARD:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    :cond_46
    return-void

    .line 4188
    :cond_47
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 4189
    :cond_4d
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 6031
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->d()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v0

    .line 4189
    invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_94

    .line 6377
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->i:Ljava/lang/String;

    const-string p2, "onKeyboardHide"

    invoke-static {p1, p2}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 6378
    iput-boolean v4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m:Z

    .line 6380
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-eq p1, p2, :cond_6b

    .line 6381
    invoke-direct {p0, v4}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(I)V

    .line 6384
    :cond_6b
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-ne p1, p2, :cond_7e

    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->p:Landroid/view/View;

    if-eqz p1, :cond_7e

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

    move-result p1

    if-nez p1, :cond_7e

    .line 6385
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->g()V

    .line 6388
    :cond_7e
    iget-object p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-eq p1, p2, :cond_93

    .line 6389
    iget-boolean p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    if-eqz p1, :cond_8e

    .line 6390
    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_BOTTOM:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    return-void

    .line 6392
    :cond_8e
    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    :cond_93
    return-void

    .line 4190
    :cond_94
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 7026
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->c()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v0

    .line 4190
    invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_bb

    if-eqz p2, :cond_a6

    invoke-virtual {p2, v4}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v2

    :cond_a6
    if-eqz v2, :cond_b5

    check-cast v2, Ljava/lang/Integer;

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result p1

    .line 7372
    iput p1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->l:I

    neg-int p1, p1

    .line 7373
    invoke-direct {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->b(I)V

    return-void

    .line 4190
    :cond_b5
    new-instance p1, Lkotlin/TypeCastException;

    invoke-direct {p1, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 4191
    :cond_bb
    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 8041
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->f()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object p2

    .line 4191
    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_cb

    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->l()V

    return-void

    .line 4192
    :cond_cb
    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 8051
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->h()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object p2

    .line 4192
    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_dd

    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_KEYBOARD:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    return-void

    .line 4193
    :cond_dd
    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 9036
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->e()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object p2

    .line 4193
    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_ef

    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    return-void

    .line 4194
    :cond_ef
    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 9056
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->i()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object p2

    .line 4194
    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_103

    .line 4195
    sget-object p1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_BOTTOM:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    .line 4196
    iput-boolean v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    return-void

    .line 4198
    :cond_103
    sget-object p2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 9081
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->n()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object p2

    .line 4198
    invoke-static {p1, p2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_115

    .line 4199
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->m()V

    .line 4200
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n()V

    :cond_115
    return-void
.end method

.method public final a(Lsg/bigo/core/component/b/c;)V
    .registers 3

    const-string v0, "manager"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 210
    const-class v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/e;

    invoke-interface {p1, v0}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;)V

    return-void
.end method

.method public final b()V
    .registers 4

    .line 122
    invoke-static {}, Lcom/masala/share/eventbus/b;->a()Lcom/masala/share/eventbus/c;

    move-result-object v0

    move-object v1, p0

    check-cast v1, Lcom/masala/share/eventbus/c$a;

    const-string v2, "local_event_delete_comment"

    filled-new-array {v2}, [Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/masala/share/eventbus/c;->a(Lcom/masala/share/eventbus/c$a;[Ljava/lang/String;)V

    return-void
.end method

.method public final b(Lsg/bigo/core/component/b/c;)V
    .registers 4

    const-string v0, "manager"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 206
    const-class v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/e;

    move-object v1, p0

    check-cast v1, Lsg/bigo/core/component/b/b;

    invoke-interface {p1, v0, v1}, Lsg/bigo/core/component/b/c;->a(Ljava/lang/Class;Lsg/bigo/core/component/b/b;)V

    return-void
.end method

.method public final c()Z
    .registers 4

    .line 276
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    const/4 v1, 0x1

    if-nez v0, :cond_11

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-eq v0, v2, :cond_11

    .line 277
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->HIDE:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    return v1

    .line 280
    :cond_11
    iget-boolean v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n:Z

    if-eqz v0, :cond_21

    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object v2, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_BOTTOM:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-eq v0, v2, :cond_21

    .line 281
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_BOTTOM:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    return v1

    :cond_21
    const/4 v0, 0x0

    return v0
.end method

.method public final onBusEvent(Ljava/lang/String;Landroid/os/Bundle;)V
    .registers 6

    const-string v0, "local_event_delete_comment"

    .line 630
    invoke-static {v0, p1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1b

    if-eqz p2, :cond_1b

    const-wide/16 v0, 0x0

    const-string p1, "key_comment_id"

    .line 631
    invoke-virtual {p2, p1, v0, v1}, Landroid/os/Bundle;->getLong(Ljava/lang/String;J)J

    move-result-wide p1

    iget-wide v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->v:J

    cmp-long v2, p1, v0

    if-nez v2, :cond_1b

    .line 632
    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->n()V

    :cond_1b
    return-void
.end method

.method public final onClick(Landroid/view/View;)V
    .registers 8

    const/4 v0, 0x0

    if-eqz p1, :cond_c

    .line 300
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    goto :goto_d

    :cond_c
    move-object v1, v0

    :goto_d
    const/4 v2, 0x1

    if-nez v1, :cond_11

    goto :goto_38

    .line 301
    :cond_11
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    const v4, 0x7e0800b8

    if-ne v3, v4, :cond_38

    .line 302
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    if-ne v0, v1, :cond_2c

    const/16 v0, 0x132

    .line 303
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    .line 304
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_KEYBOARD:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    goto/16 :goto_c5

    :cond_2c
    const/16 v0, 0x12f

    .line 306
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    .line 307
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;->SHOW_EMOJI:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/h;)V

    goto/16 :goto_c5

    :cond_38
    :goto_38
    if-nez v1, :cond_3b

    goto :goto_7b

    .line 310
    :cond_3b
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v3

    const v4, 0x7e0800cc

    if-ne v3, v4, :cond_7b

    .line 311
    iget-object v1, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->A:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;

    invoke-interface {v1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/g;->w()Lcom/masala/share/proto/VideoPost;

    move-result-object v1

    if-eqz v1, :cond_52

    iget-wide v0, v1, Lcom/masala/share/proto/VideoPost;->a:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    :cond_52
    if-eqz v0, :cond_59

    .line 312
    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    goto :goto_5b

    :cond_59
    const-wide/16 v0, 0x0

    .line 314
    :goto_5b
    sget-object v3, Lcom/imo/android/imoim/feeds/ui/home/profileauthority/b;->a:Lcom/imo/android/imoim/feeds/ui/home/profileauthority/b;

    iget-object v3, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->h:Lsg/bigo/core/component/c/a;

    const-string v4, "mActivityServiceWrapper"

    invoke-static {v3, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v3, Lcom/imo/android/imoim/feeds/ui/detail/e;

    invoke-interface {v3}, Lcom/imo/android/imoim/feeds/ui/detail/e;->b()Landroid/content/Context;

    move-result-object v3

    const/4 v4, 0x2

    new-instance v5, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$e;

    invoke-direct {v5, p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$e;-><init>(Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;)V

    check-cast v5, Lkotlin/f/a/a;

    invoke-static {v3, v0, v1, v4, v5}, Lcom/imo/android/imoim/feeds/ui/home/profileauthority/b;->a(Landroid/content/Context;JBLkotlin/f/a/a;)V

    const/16 v0, 0x131

    .line 317
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    goto :goto_c5

    :cond_7b
    :goto_7b
    if-nez v1, :cond_7e

    goto :goto_8b

    .line 319
    :cond_7e
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const v3, 0x7e08015c

    if-ne v0, v3, :cond_8b

    invoke-direct {p0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->k()V

    goto :goto_c5

    :cond_8b
    :goto_8b
    if-nez v1, :cond_8e

    goto :goto_c5

    .line 320
    :cond_8e
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    const v1, 0x7e08015b

    if-ne v0, v1, :cond_c5

    .line 322
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_c0

    invoke-virtual {v0}, Landroid/widget/EditText;->hasFocus()Z

    move-result v0

    if-nez v0, :cond_c0

    .line 323
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_a8

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setFocusable(Z)V

    .line 324
    :cond_a8
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_af

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    .line 325
    :cond_af
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_b6

    invoke-virtual {v0, v2}, Landroid/widget/EditText;->setCursorVisible(Z)V

    .line 326
    :cond_b6
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_bd

    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 327
    :cond_bd
    invoke-direct {p0, v2}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(Z)V

    :cond_c0
    const/16 v0, 0x12e

    .line 329
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    .line 333
    :cond_c5
    :goto_c5
    instance-of v0, p1, Landroid/widget/TextView;

    if-eqz v0, :cond_15b

    check-cast p1, Landroid/widget/TextView;

    invoke-virtual {p1}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_e7

    invoke-virtual {p1}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->b()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_15b

    :cond_e7
    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_f6

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v0

    if-nez v0, :cond_f5

    goto :goto_f6

    :cond_f5
    const/4 v2, 0x0

    :cond_f6
    :goto_f6
    if-nez v2, :cond_15b

    .line 334
    iget-object v0, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->c:Landroid/widget/EditText;

    if-eqz v0, :cond_148

    .line 335
    invoke-virtual {v0}, Landroid/widget/EditText;->hasFocus()Z

    move-result v2

    if-nez v2, :cond_105

    .line 336
    invoke-virtual {v0}, Landroid/widget/EditText;->requestFocus()Z

    .line 338
    :cond_105
    invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v2

    .line 339
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    if-eqz v3, :cond_114

    invoke-interface {v3}, Landroid/text/Editable;->length()I

    move-result v3

    goto :goto_115

    :cond_114
    const/4 v3, 0x0

    .line 340
    :goto_115
    iget v4, p0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->j:I

    sub-int/2addr v4, v3

    invoke-interface {v2}, Ljava/lang/CharSequence;->length()I

    move-result v3

    if-ge v4, v3, :cond_126

    .line 341
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$f;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent$f;

    check-cast v1, Lkotlin/f/a/a;

    invoke-static {v0, v1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->a(Ljava/lang/Object;Lkotlin/f/a/a;)V

    goto :goto_148

    .line 345
    :cond_126
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v3

    check-cast v3, Ljava/lang/CharSequence;

    invoke-static {v3}, Landroid/text/Selection;->getSelectionStart(Ljava/lang/CharSequence;)I

    move-result v3

    if-gez v3, :cond_136

    .line 347
    invoke-virtual {v0, v2}, Landroid/widget/EditText;->append(Ljava/lang/CharSequence;)V

    goto :goto_13f

    .line 349
    :cond_136
    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    if-eqz v0, :cond_13f

    invoke-interface {v0, v3, v2}, Landroid/text/Editable;->insert(ILjava/lang/CharSequence;)Landroid/text/Editable;

    .line 351
    :cond_13f
    :goto_13f
    sget-object v0, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;

    invoke-static {v2, v1}, Ljava/lang/Character;->codePointAt(Ljava/lang/CharSequence;I)I

    move-result v0

    invoke-static {v0}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/a;->b(I)V

    .line 354
    :cond_148
    :goto_148
    invoke-virtual {p1}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object p1

    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/emoticon/b;->b()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_15b

    const/16 p1, 0x130

    .line 355
    invoke-virtual {p0, p1}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/EditCommentComponent;->a(I)V

    :cond_15b
    return-void
.end method

.method public final synthetic u()[Lsg/bigo/core/component/a/b;
    .registers 4

    const/16 v0, 0x8

    new-array v0, v0, [Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    .line 1181
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 2021
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->b()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x0

    aput-object v1, v0, v2

    .line 1181
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 2031
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->d()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x1

    aput-object v1, v0, v2

    .line 1181
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 3026
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->c()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x2

    aput-object v1, v0, v2

    .line 1182
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 3041
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->f()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x3

    aput-object v1, v0, v2

    .line 1182
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 3051
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->h()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x4

    aput-object v1, v0, v2

    .line 1182
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 4036
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->e()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x5

    aput-object v1, v0, v2

    .line 1183
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 4056
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->i()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x6

    aput-object v1, v0, v2

    .line 1183
    sget-object v1, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->a:Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a$a;

    .line 4081
    invoke-static {}, Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;->n()Lcom/imo/android/imoim/feeds/ui/detail/components/comment/a;

    move-result-object v1

    const/4 v2, 0x7

    aput-object v1, v0, v2

    .line 76
    check-cast v0, [Lsg/bigo/core/component/a/b;

    return-object v0
.end method