CommunityReportWriteDescFragment.smali

.class public final Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;
.super Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$a;
    }
.end annotation


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

.field public static final c:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$a;


# instance fields
.field private d:Landroid/widget/EditText;

.field private e:Landroid/widget/TextView;

.field private f:Landroid/widget/TextView;

.field private g:Landroidx/recyclerview/widget/RecyclerView;

.field private h:Landroid/widget/FrameLayout;

.field private i:Landroid/widget/LinearLayout;

.field private final j:Landroid/os/Handler;

.field private final k:Ljava/lang/Runnable;

.field private l:Landroid/text/TextWatcher;

.field private final m:Lkotlin/f;

.field private n:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

.field private o:Ljava/lang/String;

.field private p:Lcom/imo/android/imoim/publish/e;

.field private q:Ljava/util/HashMap;


# 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/community/report/fragment/CommunityReportWriteDescFragment;

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

    move-result-object v2

    const-string v3, "imgAttachmentAdapter"

    const-string v4, "getImgAttachmentAdapter()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;"

    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/community/report/fragment/CommunityReportWriteDescFragment;->b:[Lkotlin/k/g;

    new-instance v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$a;-><init>(Lkotlin/f/b/j;)V

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

    return-void
.end method

.method public constructor <init>()V
    .registers 3

    .line 48
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;-><init>()V

    .line 67
    new-instance v0, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->j:Landroid/os/Handler;

    .line 68
    new-instance v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$f;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$f;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

    check-cast v0, Ljava/lang/Runnable;

    iput-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->k:Ljava/lang/Runnable;

    .line 72
    sget-object v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$g;->a:Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$g;

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

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

    move-result-object v0

    iput-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->m:Lkotlin/f;

    return-void
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/publish/e;
    .registers 1

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->p:Lcom/imo/android/imoim/publish/e;

    return-object p0
.end method

.method public static final synthetic b(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Ljava/lang/String;
    .registers 1

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->o:Ljava/lang/String;

    return-object p0
.end method

.method public static final synthetic c(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/FrameLayout;
    .registers 2

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h:Landroid/widget/FrameLayout;

    if-nez p0, :cond_9

    const-string v0, "layoutSubmit"

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

    :cond_9
    return-object p0
.end method

.method private final c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->m:Lkotlin/f;

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

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    return-object v0
.end method

.method public static final synthetic d(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/TextView;
    .registers 2

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->e:Landroid/widget/TextView;

    if-nez p0, :cond_9

    const-string v0, "tvReportContentWordNum"

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

    :cond_9
    return-object p0
.end method

.method private final d()V
    .registers 8

    .line 304
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object v0

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

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    .line 305
    iget-object v1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->f:Landroid/widget/TextView;

    if-nez v1, :cond_13

    const-string v2, "tvImageAttachmentCount"

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

    :cond_13
    sget-object v2, Lkotlin/f/b/ad;->a:Lkotlin/f/b/ad;

    const/4 v2, 0x3

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

    const v4, 0x73080082

    const/4 v5, 0x0

    new-array v6, v5, [Ljava/lang/Object;

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

    move-result-object v4

    aput-object v4, v3, v5

    const/4 v4, 0x1

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

    move-result-object v0

    aput-object v0, v3, v4

    const/4 v0, 0x2

    const/4 v4, 0x5

    .line 309
    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v3, v0

    .line 305
    invoke-static {v3, v2}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;

    move-result-object v0

    const-string v2, "%s(%d/%d)"

    invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    const-string v2, "java.lang.String.format(format, *args)"

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

    check-cast v0, Ljava/lang/CharSequence;

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

    return-void
.end method

.method public static final synthetic e(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/EditText;
    .registers 2

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d:Landroid/widget/EditText;

    if-nez p0, :cond_9

    const-string v0, "etReportContent"

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

    :cond_9
    return-object p0
.end method

.method public static final synthetic f(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/widget/LinearLayout;
    .registers 2

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->i:Landroid/widget/LinearLayout;

    if-nez p0, :cond_9

    const-string v0, "layoutNoInputTips"

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

    :cond_9
    return-object p0
.end method

.method public static final synthetic g(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Landroid/os/Handler;
    .registers 1

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->j:Landroid/os/Handler;

    return-object p0
.end method

.method public static final synthetic h(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Ljava/lang/Runnable;
    .registers 1

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->k:Ljava/lang/Runnable;

    return-object p0
.end method

.method public static final synthetic i(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;
    .registers 1

    .line 48
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p0

    return-object p0
.end method

.method public static final synthetic j(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;
    .registers 1

    .line 48
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->n:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    return-object p0
.end method

.method public static final synthetic k(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V
    .registers 1

    .line 48
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d()V

    return-void
.end method


# virtual methods
.method public final b()V
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->q:Ljava/util/HashMap;

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Ljava/util/HashMap;->clear()V

    :cond_7
    return-void
.end method

.method public final onActivityResult(IILandroid/content/Intent;)V
    .registers 6

    .line 268
    invoke-super {p0, p1, p2, p3}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onActivityResult(IILandroid/content/Intent;)V

    const/16 p2, 0x3e8

    if-eq p1, p2, :cond_7c

    const/16 p2, 0x7d0

    if-eq p1, p2, :cond_1b

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

    move-result-object p1

    const-string p2, "ignore request "

    invoke-virtual {p2, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string p2, "CommunityReportWriteDescFragment"

    .line 8071
    invoke-static {p2, p1}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_1b
    if-eqz p3, :cond_7b

    const-string p1, "editor_del_result"

    .line 282
    invoke-virtual {p3, p1}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object p1

    if-eqz p1, :cond_7b

    .line 283
    move-object p2, p1

    check-cast p2, Ljava/util/Collection;

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

    move-result p2

    xor-int/lit8 p2, p2, 0x1

    if-eqz p2, :cond_7b

    .line 284
    new-instance p2, Ljava/util/ArrayList;

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

    .line 285
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p3

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

    .line 285
    check-cast p3, Ljava/lang/Iterable;

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

    move-result-object p3

    :cond_41
    :goto_41
    invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_61

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

    move-result-object v0

    check-cast v0, Lcom/imo/android/imoim/biggroup/zone/ui/gallery/BigoGalleryMedia;

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

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_5d

    iget-object v1, v0, Lcom/imo/android/imoim/biggroup/zone/ui/gallery/BigoGalleryMedia;->a:Ljava/lang/String;

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_41

    .line 287
    :cond_5d
    invoke-virtual {p2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_41

    .line 290
    :cond_61
    check-cast p2, Ljava/util/Collection;

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

    move-result p1

    xor-int/lit8 p1, p1, 0x1

    if-eqz p1, :cond_7b

    .line 291
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p1

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

    .line 291
    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->removeAll(Ljava/util/Collection;)Z

    .line 292
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;->notifyDataSetChanged()V

    :cond_7b
    return-void

    :cond_7c
    if-nez p3, :cond_7f

    return-void

    .line 274
    :cond_7f
    invoke-static {p3}, Lcom/imo/android/imoim/biggroup/zone/ui/gallery/a;->a(Landroid/content/Intent;)Ljava/util/List;

    move-result-object p1

    const-string p2, "BigoGallery.obtainResult(data)"

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

    .line 275
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p2

    if-eqz p2, :cond_8f

    return-void

    .line 278
    :cond_8f
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p2

    const-string p3, "dataList"

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

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

    check-cast p1, Ljava/util/Collection;

    invoke-virtual {p3, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 6079
    invoke-virtual {p2}, Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;->notifyDataSetChanged()V

    .line 279
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d()V

    return-void
.end method

.method public final onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .registers 5

    const-string p3, "inflater"

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

    const p3, 0x73060011

    const/4 v0, 0x0

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

    move-result-object p1

    const-string p2, "rootView"

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

    const p2, 0x73050062

    .line 1252
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.id.et_report_content)"

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

    check-cast p2, Landroid/widget/EditText;

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d:Landroid/widget/EditText;

    const p2, 0x73050175

    .line 1253
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.\u2026_report_content_word_num)"

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

    check-cast p2, Landroid/widget/TextView;

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->e:Landroid/widget/TextView;

    const p2, 0x73050176

    .line 1254
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.\u2026t_image_attachment_count)"

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

    check-cast p2, Landroid/widget/TextView;

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->f:Landroid/widget/TextView;

    const p2, 0x73050118

    .line 1255
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.\u2026_report_image_attachment)"

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

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

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g:Landroidx/recyclerview/widget/RecyclerView;

    const p2, 0x730500cf

    .line 1256
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.id.layout_report_submit)"

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

    check-cast p2, Landroid/widget/FrameLayout;

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h:Landroid/widget/FrameLayout;

    const p2, 0x730500cc

    .line 1257
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    const-string p3, "rootView.findViewById(R.id.layout_no_input_tips)"

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

    check-cast p2, Landroid/widget/LinearLayout;

    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->i:Landroid/widget/LinearLayout;

    return-object p1
.end method

.method public final onDestroy()V
    .registers 4

    .line 261
    invoke-super {p0}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onDestroy()V

    .line 262
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->l:Landroid/text/TextWatcher;

    if-eqz v0, :cond_13

    .line 263
    iget-object v1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d:Landroid/widget/EditText;

    if-nez v1, :cond_10

    const-string v2, "etReportContent"

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

    :cond_10
    invoke-virtual {v1, v0}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    :cond_13
    return-void
.end method

.method public final onDestroyView()V
    .registers 3

    .line 314
    invoke-super {p0}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onDestroyView()V

    .line 315
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->j:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 316
    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->b()V

    return-void
.end method

.method public final onSaveInstanceState(Landroid/os/Bundle;)V
    .registers 4

    const-string v0, "outState"

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

    .line 319
    invoke-super {p0, p1}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 320
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->o:Ljava/lang/String;

    if-eqz v0, :cond_11

    const-string v1, "INTENT_KEY_REPORT_CODE"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    :cond_11
    return-void
.end method

.method public final onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
    .registers 8

    const-string v0, "view"

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

    .line 93
    invoke-super {p0, p1, p2}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V

    .line 94
    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->getArguments()Landroid/os/Bundle;

    move-result-object p1

    const/4 p2, 0x0

    if-eqz p1, :cond_16

    const-string v0, "INTENT_KEY_REPORT_CODE"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_17

    :cond_16
    move-object p1, p2

    :goto_17
    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->o:Ljava/lang/String;

    .line 2239
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h:Landroid/widget/FrameLayout;

    const-string v0, "layoutSubmit"

    if-nez p1, :cond_22

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

    :cond_22
    const v1, 0x3e99999a    # 0.3f

    invoke-virtual {p1, v1}, Landroid/widget/FrameLayout;->setAlpha(F)V

    .line 2241
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g:Landroidx/recyclerview/widget/RecyclerView;

    const-string v1, "rvImageAttachment"

    if-nez p1, :cond_31

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

    :cond_31
    new-instance v2, Landroidx/recyclerview/widget/LinearLayoutManager;

    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->getContext()Landroid/content/Context;

    move-result-object v3

    const/4 v4, 0x0

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

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

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

    .line 2242
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g:Landroidx/recyclerview/widget/RecyclerView;

    if-nez p1, :cond_47

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

    :cond_47
    new-instance v2, Lcom/imo/android/imoim/community/report/fragment/ImageItemDecoration;

    invoke-direct {v2}, Lcom/imo/android/imoim/community/report/fragment/ImageItemDecoration;-><init>()V

    check-cast v2, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;

    invoke-virtual {p1, v2}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V

    .line 2243
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->g:Landroidx/recyclerview/widget/RecyclerView;

    if-nez p1, :cond_58

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

    :cond_58
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object v1

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

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

    .line 2244
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->e:Landroid/widget/TextView;

    if-nez p1, :cond_6a

    const-string v1, "tvReportContentWordNum"

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

    :cond_6a
    const-string v1, "0/300"

    check-cast v1, Ljava/lang/CharSequence;

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

    .line 2245
    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->getContext()Landroid/content/Context;

    move-result-object p1

    if-eqz p1, :cond_7c

    new-instance p2, Lcom/imo/android/imoim/publish/e;

    invoke-direct {p2, p1}, Lcom/imo/android/imoim/publish/e;-><init>(Landroid/content/Context;)V

    :cond_7c
    iput-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->p:Lcom/imo/android/imoim/publish/e;

    if-eqz p2, :cond_83

    .line 2246
    invoke-virtual {p2, v4}, Lcom/imo/android/imoim/publish/e;->setCancelable(Z)V

    .line 2247
    :cond_83
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d()V

    .line 3148
    new-instance p1, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$b;

    invoke-direct {p1, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$b;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

    check-cast p1, Landroid/text/TextWatcher;

    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->l:Landroid/text/TextWatcher;

    .line 3166
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->d:Landroid/widget/EditText;

    if-nez p1, :cond_98

    const-string p2, "etReportContent"

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

    :cond_98
    iget-object p2, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->l:Landroid/text/TextWatcher;

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

    .line 3167
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->h:Landroid/widget/FrameLayout;

    if-nez p1, :cond_a4

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

    :cond_a4
    new-instance p2, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;

    invoke-direct {p2, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$c;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

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

    invoke-virtual {p1, p2}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 3194
    invoke-direct {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->c()Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;

    move-result-object p1

    new-instance p2, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$d;

    invoke-direct {p2, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$d;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

    check-cast p2, Lcom/imo/android/imoim/community/report/adapter/attachment/a/a;

    .line 4028
    iput-object p2, p1, Lcom/imo/android/imoim/community/report/adapter/attachment/ReportAttachmentAdapter;->b:Lcom/imo/android/imoim/community/report/adapter/attachment/a/a;

    .line 3234
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->p:Lcom/imo/android/imoim/publish/e;

    if-eqz p1, :cond_c8

    new-instance p2, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$e;

    invoke-direct {p2, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$e;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

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

    .line 4062
    iput-object p2, p1, Lcom/imo/android/imoim/publish/e;->a:Landroid/view/View$OnClickListener;

    .line 5013
    :cond_c8
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->a:Lcom/imo/android/imoim/community/report/a;

    if-eqz p1, :cond_ed

    .line 4102
    new-instance p2, Landroidx/lifecycle/ViewModelProvider;

    .line 4103
    move-object v0, p0

    check-cast v0, Landroidx/lifecycle/ViewModelStoreOwner;

    .line 4104
    new-instance v1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModelFactory;

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

    move-result-object v2

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

    move-result-object p1

    invoke-direct {v1, v2, p1}, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModelFactory;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    check-cast v1, Landroidx/lifecycle/ViewModelProvider$Factory;

    .line 4102
    invoke-direct {p2, v0, v1}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V

    .line 4106
    const-class p1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    .line 4105
    invoke-virtual {p2, p1}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;

    move-result-object p1

    check-cast p1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->n:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    .line 4109
    :cond_ed
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->n:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    if-eqz p1, :cond_103

    .line 5033
    iget-object p1, p1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->f:Landroidx/lifecycle/MutableLiveData;

    if-eqz p1, :cond_103

    .line 4109
    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->getViewLifecycleOwner()Landroidx/lifecycle/LifecycleOwner;

    move-result-object p2

    new-instance v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$h;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$h;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

    check-cast v0, Landroidx/lifecycle/Observer;

    invoke-virtual {p1, p2, v0}, Landroidx/lifecycle/MutableLiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V

    .line 4122
    :cond_103
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->n:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    if-eqz p1, :cond_119

    .line 6029
    iget-object p1, p1, Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;->d:Landroidx/lifecycle/LiveData;

    if-eqz p1, :cond_119

    .line 4122
    invoke-virtual {p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->getViewLifecycleOwner()Landroidx/lifecycle/LifecycleOwner;

    move-result-object p2

    new-instance v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$i;

    invoke-direct {v0, p0}, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment$i;-><init>(Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;)V

    check-cast v0, Landroidx/lifecycle/Observer;

    invoke-virtual {p1, p2, v0}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V

    :cond_119
    return-void
.end method

.method public final onViewStateRestored(Landroid/os/Bundle;)V
    .registers 3

    .line 324
    invoke-super {p0, p1}, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->onViewStateRestored(Landroid/os/Bundle;)V

    .line 325
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->o:Ljava/lang/String;

    check-cast v0, Ljava/lang/CharSequence;

    if-eqz v0, :cond_12

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

    move-result v0

    if-nez v0, :cond_10

    goto :goto_12

    :cond_10
    const/4 v0, 0x0

    goto :goto_13

    :cond_12
    :goto_12
    const/4 v0, 0x1

    :goto_13
    if-eqz v0, :cond_21

    if-eqz p1, :cond_1e

    const-string v0, "INTENT_KEY_REPORT_CODE"

    .line 326
    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_1f

    :cond_1e
    const/4 p1, 0x0

    :goto_1f
    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportWriteDescFragment;->o:Ljava/lang/String;

    :cond_21
    return-void
.end method