CommunityReportReasonSelectFragment.smali

.class public final Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;
.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/CommunityReportReasonSelectFragment$a;
    }
.end annotation


# static fields
.field public static final b:Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment$a;


# instance fields
.field private c:Landroidx/recyclerview/widget/RecyclerView;

.field private d:Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;

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

.field private f:Ljava/util/HashMap;


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

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

    const/4 v1, 0x0

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

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

    return-void
.end method

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

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

    return-void
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;)Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;
    .registers 2

    .line 28
    iget-object p0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->e:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    if-nez p0, :cond_9

    const-string v0, "reportViewModel"

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

    :cond_9
    return-object p0
.end method

.method public static final synthetic a(Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;Ljava/lang/String;)V
    .registers 10

    .line 2073
    sget-object v0, Lcom/imo/android/imoim/IMO;->d:Lcom/imo/android/imoim/managers/c;

    const-string v1, "IMO.accounts"

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

    invoke-virtual {v0}, Lcom/imo/android/imoim/managers/c;->i()Ljava/lang/String;

    move-result-object v0

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

    const/4 v2, 0x0

    if-eqz v1, :cond_15

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

    move-result-object v1

    goto :goto_16

    :cond_15
    move-object v1, v2

    .line 4013
    :goto_16
    iget-object v3, p0, Lcom/imo/android/imoim/community/report/fragment/BaseCommunityReportFragment;->a:Lcom/imo/android/imoim/community/report/a;

    if-eqz v3, :cond_1e

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

    move-result-object v2

    .line 2076
    :cond_1e
    move-object v3, v0

    check-cast v3, Ljava/lang/CharSequence;

    const/4 v4, 0x1

    const/4 v5, 0x0

    if-eqz v3, :cond_2e

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

    move-result v3

    if-nez v3, :cond_2c

    goto :goto_2e

    :cond_2c
    const/4 v3, 0x0

    goto :goto_2f

    :cond_2e
    :goto_2e
    const/4 v3, 0x1

    :goto_2f
    const-string v6, "CommunityReportReasonSelectFragment"

    if-nez v3, :cond_a8

    move-object v3, v1

    check-cast v3, Ljava/lang/CharSequence;

    if-eqz v3, :cond_41

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

    move-result v3

    if-nez v3, :cond_3f

    goto :goto_41

    :cond_3f
    const/4 v3, 0x0

    goto :goto_42

    :cond_41
    :goto_41
    const/4 v3, 0x1

    :goto_42
    if-nez v3, :cond_a8

    move-object v3, v2

    check-cast v3, Ljava/lang/CharSequence;

    if-eqz v3, :cond_52

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

    move-result v3

    if-nez v3, :cond_50

    goto :goto_52

    :cond_50
    const/4 v3, 0x0

    goto :goto_53

    :cond_52
    :goto_52
    const/4 v3, 0x1

    :goto_53
    if-eqz v3, :cond_56

    goto :goto_a8

    .line 2080
    :cond_56
    sget-object v3, Lkotlin/f/b/ad;->a:Lkotlin/f/b/ad;

    const/4 v3, 0x4

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

    aput-object v2, v7, v5

    aput-object v0, v7, v4

    const/4 v0, 0x2

    aput-object v1, v7, v0

    const/4 v0, 0x3

    aput-object p1, v7, v0

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

    move-result-object v0

    const-string v1, "CommunityReport_%s_%s_%s_%s"

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

    move-result-object v0

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

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

    .line 2081
    invoke-static {v6}, Lcom/imo/android/common/b/a;->a(Ljava/lang/String;)Landroid/content/SharedPreferences;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/imo/android/common/b/a;->a(Landroid/content/SharedPreferences;Ljava/lang/String;)J

    move-result-wide v0

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

    move-result-wide v2

    sub-long/2addr v2, v0

    .line 2084
    invoke-static {v2, v3}, Ljava/lang/Math;->abs(J)J

    move-result-wide v0

    const-wide/32 v2, 0x5265c00

    cmp-long v4, v0, v2

    if-gez v4, :cond_a0

    const-string p0, "report less than one day"

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

    const p0, 0x73080081

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

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

    move-result-object p0

    check-cast p0, Ljava/lang/CharSequence;

    .line 6026
    invoke-static {p0, v5}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V

    return-void

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

    if-eqz p0, :cond_a7

    .line 2089
    invoke-interface {p0, p1}, Lcom/imo/android/imoim/community/report/a;->a(Ljava/lang/String;)V

    :cond_a7
    return-void

    :cond_a8
    :goto_a8
    const-string p0, "uid or communityId or reportType is null"

    .line 4079
    invoke-static {v6, p0, v4}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)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/CommunityReportReasonSelectFragment;->f: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 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, 0x7306000f

    const/4 v0, 0x0

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

    move-result-object p1

    const p2, 0x73050119

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

    move-result-object p2

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

    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/CommunityReportReasonSelectFragment;->c:Landroidx/recyclerview/widget/RecyclerView;

    return-object p1
.end method

.method public final synthetic onDestroyView()V
    .registers 1

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

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

    return-void
.end method

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

    const-string v0, "view"

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

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

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

    if-eqz p1, :cond_32

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

    .line 54
    move-object v0, p0

    check-cast v0, Landroidx/lifecycle/ViewModelStoreOwner;

    .line 55
    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 53
    invoke-direct {p2, v0, v1}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V

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

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

    move-result-object p1

    const-string p2, "ViewModelProvider(\n     \u2026ortViewModel::class.java)"

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

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

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

    .line 59
    :cond_32
    new-instance p1, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;

    invoke-direct {p1}, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;-><init>()V

    iput-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->d:Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;

    const-string p2, "adapter"

    if-nez p1, :cond_40

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

    :cond_40
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->e:Lcom/imo/android/imoim/community/report/viewmodel/CommunityReportViewModel;

    if-nez v0, :cond_49

    const-string v1, "reportViewModel"

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

    .line 1108
    :cond_49
    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;->a()Ljava/util/List;

    move-result-object v0

    const-string v1, "datas"

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

    .line 2041
    iget-object v1, p1, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    .line 2042
    iget-object v1, p1, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;->a:Ljava/util/List;

    check-cast v0, Ljava/util/Collection;

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

    .line 2043
    invoke-virtual {p1}, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;->notifyDataSetChanged()V

    .line 61
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->d:Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;

    if-nez p1, :cond_6a

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

    :cond_6a
    new-instance v0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment$b;

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

    check-cast v0, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter$b;

    .line 2047
    iput-object v0, p1, Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;->b:Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter$b;

    .line 68
    iget-object p1, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->c:Landroidx/recyclerview/widget/RecyclerView;

    if-nez p1, :cond_7c

    const-string v0, "rvReason"

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

    :cond_7c
    iget-object v0, p0, Lcom/imo/android/imoim/community/report/fragment/CommunityReportReasonSelectFragment;->d:Lcom/imo/android/imoim/community/report/adapter/ReportSelectReasonAdapter;

    if-nez v0, :cond_83

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

    :cond_83
    check-cast v0, Landroidx/recyclerview/widget/RecyclerView$Adapter;

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

    return-void
.end method