CommunityReportWriteDescFragment$c.smali

.class final Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;
.end annotation

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


# instance fields
.field final synthetic a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;


# direct methods
.method constructor <init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V
    .registers 2

    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

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

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .registers 15

    .line 168
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->e(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/EditText;

    move-result-object p1

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

    move-result-object p1

    check-cast p1, Ljava/lang/CharSequence;

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

    move-result p1

    const/4 v0, 0x0

    if-eqz p1, :cond_4a

    .line 169
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->f(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

    invoke-virtual {p1}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result p1

    if-nez p1, :cond_2f

    .line 170
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/os/Handler;

    move-result-object p1

    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Ljava/lang/Runnable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/os/Handler;->removeCallbacks(Ljava/lang/Runnable;)V

    goto :goto_38

    .line 172
    :cond_2f
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->f(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/LinearLayout;

    move-result-object p1

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

    .line 174
    :goto_38
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/os/Handler;

    move-result-object p1

    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Ljava/lang/Runnable;

    move-result-object v0

    const-wide/16 v1, 0xbb8

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void

    .line 176
    :cond_4a
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->i(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p1

    .line 1089
    iget-object p1, p1, Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;->a:Ljava/util/ArrayList;

    check-cast p1, Ljava/util/List;

    .line 176
    check-cast p1, Ljava/lang/Iterable;

    .line 343
    new-instance v1, Ljava/util/ArrayList;

    const/16 v2, 0xa

    invoke-static {p1, v2}, Lkotlin/a/k;->a(Ljava/lang/Iterable;I)I

    move-result v2

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    check-cast v1, Ljava/util/Collection;

    .line 344
    invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_67
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_79

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

    move-result-object v2

    .line 345
    check-cast v2, Lcom/imo/android/imoim/biggroup/zone/ui/gallery/BigoGalleryMedia;

    .line 176
    iget-object v2, v2, Lcom/imo/android/imoim/biggroup/zone/ui/gallery/BigoGalleryMedia;->d:Ljava/lang/String;

    invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_67

    .line 346
    :cond_79
    move-object v8, v1

    check-cast v8, Ljava/util/List;

    .line 177
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {p1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->e(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/EditText;

    move-result-object p1

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

    move-result-object p1

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

    move-result-object p1

    .line 178
    iget-object v1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    .line 2013
    iget-object v1, v1, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->a:Lcom/imo/android/imoim/community/report/a;

    const/4 v2, 0x0

    if-eqz v1, :cond_102

    .line 179
    iget-object v3, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {v3}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->j(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    move-result-object v12

    if-eqz v12, :cond_102

    .line 180
    invoke-interface {v1}, Lcom/imo/android/imoim/community/report/a;->c()Ljava/lang/String;

    move-result-object v9

    .line 181
    invoke-interface {v1}, Lcom/imo/android/imoim/community/report/a;->b()Ljava/lang/String;

    move-result-object v10

    const-string v1, "reportType"

    .line 179
    invoke-static {v9, v1}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v1, "communityId"

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

    const-string v1, "reportText"

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

    .line 2036
    iget-boolean v1, v12, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->a:Z

    if-nez v1, :cond_102

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

    move-result v1

    if-nez v1, :cond_c2

    .line 2040
    iget-object v0, v12, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->c:Landroidx/lifecycle/MutableLiveData;

    sget-object v1, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    goto :goto_102

    :cond_c2
    const/4 v1, 0x1

    .line 2043
    iput-boolean v1, v12, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->a:Z

    .line 2044
    iput-boolean v0, v12, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->b:Z

    .line 2045
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    move-object v7, v1

    check-cast v7, Ljava/util/List;

    .line 2046
    move-object v1, v8

    check-cast v1, Ljava/util/Collection;

    invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_ff

    .line 2047
    iget-object v1, v12, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->e:Landroidx/lifecycle/MutableLiveData;

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

    move-result-object v3

    invoke-virtual {v1, v3}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V

    .line 2049
    new-instance v4, Lkotlin/f/b/aa$d;

    invoke-direct {v4}, Lkotlin/f/b/aa$d;-><init>()V

    iput v0, v4, Lkotlin/f/b/aa$d;->a:I

    .line 2050
    iget v0, v4, Lkotlin/f/b/aa$d;->a:I

    invoke-interface {v8, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel$b;

    move-object v3, v1

    move-object v5, v8

    move-object v6, v12

    move-object v11, p1

    invoke-direct/range {v3 .. v11}, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel$b;-><init>(Lkotlin/f/b/aa$d;Ljava/util/List;Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    check-cast v1, Lcom/imo/android/imoim/community/report/a/e;

    invoke-virtual {v12, v0, v1}, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->a(Ljava/lang/String;Lcom/imo/android/imoim/community/report/a/e;)V

    goto :goto_102

    .line 2079
    :cond_ff
    invoke-virtual {v12, v9, v10, v2, p1}, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->a(Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)V

    .line 186
    :cond_102
    :goto_102
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {v0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->j(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    move-result-object v0

    if-eqz v0, :cond_125

    .line 2112
    iget-object v0, v0, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->g:Lcom/imo/android/imoim/community/report/a/a;

    invoke-virtual {v0}, Lcom/imo/android/imoim/community/report/a/a;->b()Lcom/imo/android/imoim/community/report/a/c;

    move-result-object v0

    if-eqz v0, :cond_125

    .line 187
    iget-object v1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    .line 3013
    iget-object v1, v1, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->a:Lcom/imo/android/imoim/community/report/a;

    if-eqz v1, :cond_11c

    .line 187
    invoke-interface {v1}, Lcom/imo/android/imoim/community/report/a;->b()Ljava/lang/String;

    move-result-object v2

    .line 188
    :cond_11c
    iget-object v1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;

    invoke-static {v1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->b(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Ljava/lang/String;

    move-result-object v1

    .line 186
    invoke-interface {v0, v2, v1, p1}, Lcom/imo/android/imoim/community/report/a/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_125
    return-void
.end method