a.smali
.class public abstract Lcom/imo/android/imoim/widgets/modulelayout/child/a;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/widgets/modulelayout/child/ChildLoadFailAdapter$a;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/widgets/modulelayout/child/a$a;
}
.end annotation
# static fields
.field public static final g:Lcom/imo/android/imoim/widgets/modulelayout/child/a$a;
# instance fields
.field private a:I
.field public d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
.field public e:J
.field public f:I
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lcom/imo/android/imoim/widgets/modulelayout/child/a$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/imo/android/imoim/widgets/modulelayout/child/a$a;-><init>(Lkotlin/f/b/j;)V
sput-object v0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->g:Lcom/imo/android/imoim/widgets/modulelayout/child/a$a;
return-void
.end method
.method public constructor <init>()V
.registers 1
.line 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a()V
.registers 1
return-void
.end method
.method public a(I)V
.registers 9
.line 49
invoke-virtual {p0}, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->m()Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 52
:cond_7
iput p1, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->f:I
.line 53
iget-object p1, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
if-nez p1, :cond_12
const-string v0, "parentFragment"
invoke-static {v0}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_12
const-string v0, "childFragment"
invoke-static {p0, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1170
iget-wide v0, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->f:J
.line 2019
iget-wide v2, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->e:J
cmp-long v4, v0, v2
if-nez v4, :cond_c6
.line 1173
invoke-virtual {p1, p0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->a(Lcom/imo/android/imoim/widgets/modulelayout/child/a;)I
move-result v0
.line 2024
iget v1, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->f:I
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x1
if-eq v1, v4, :cond_3e
const/4 v5, 0x2
if-eq v1, v5, :cond_39
const/4 v5, 0x3
if-eq v1, v5, :cond_31
return-void
.line 1185
:cond_31
new-instance v1, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildLoadingAdapter;
invoke-direct {v1, v3, v4, v2}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildLoadingAdapter;-><init>(IILkotlin/f/b/j;)V
check-cast v1, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;
goto :goto_42
.line 1183
:cond_39
invoke-virtual {p0}, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->b()Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;
move-result-object v1
goto :goto_42
.line 1178
:cond_3e
invoke-virtual {p0}, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->b()Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;
move-result-object v1
:goto_42
if-eqz v1, :cond_47
.line 3014
iget v5, v1, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->e:I
goto :goto_48
:cond_47
const/4 v5, -0x1
:goto_48
if-gez v5, :cond_4e
if-eqz v1, :cond_4e
.line 4014
iput v0, v1, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->e:I
.line 1196
:cond_4e
iget-object p1, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->h:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;
if-eqz p1, :cond_c6
if-ltz v0, :cond_c6
.line 5048
iget-object v5, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->a:Ljava/util/List;
check-cast v5, Ljava/util/Collection;
invoke-static {v5}, Lcom/imo/android/imoim/util/common/i;->b(Ljava/util/Collection;)I
move-result v5
if-lt v0, v5, :cond_83
.line 5049
iget-object v3, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->a:Ljava/util/List;
check-cast v3, Ljava/util/Collection;
invoke-static {v3}, Lcom/imo/android/imoim/util/common/i;->b(Ljava/util/Collection;)I
move-result v3
:goto_66
if-ge v3, v0, :cond_70
.line 5050
iget-object v4, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->a:Ljava/util/List;
invoke-interface {v4, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v3, v3, 0x1
goto :goto_66
.line 5052
:cond_70
iget-object v2, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->a:Ljava/util/List;
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
if-eqz v1, :cond_c6
.line 5054
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->c(I)I
move-result v0
invoke-virtual {v1}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->getItemCount()I
move-result v1
invoke-virtual {p1, v0, v1}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->notifyItemRangeInserted(II)V
return-void
.line 5057
:cond_83
iget-object v2, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->a:Ljava/util/List;
invoke-interface {v2, v0, v1}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;
.line 5058
iget-object v5, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->b:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter$ChildAdapterObserver;
const-string v6, "ModuleLayout"
if-eqz v1, :cond_9c
.line 5277
:try_start_91
check-cast v5, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v1, v5}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->registerAdapterDataObserver(Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;)V
:try_end_96
.catch Ljava/lang/Exception; {:try_start_91 .. :try_end_96} :catch_97
goto :goto_9c
:catch_97
const-string v5, "registerAdapterDataObserver Exception"
.line 6079
invoke-static {v6, v5, v4}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 5059
:cond_9c
:goto_9c
iget-object v5, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->b:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter$ChildAdapterObserver;
if-eqz v2, :cond_ab
.line 6297
:try_start_a0
check-cast v5, Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;
invoke-virtual {v2, v5}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->unregisterAdapterDataObserver(Landroidx/recyclerview/widget/RecyclerView$AdapterDataObserver;)V
:try_end_a5
.catch Ljava/lang/Exception; {:try_start_a0 .. :try_end_a5} :catch_a6
goto :goto_ab
:catch_a6
const-string v5, "unregisterChildAdapterObserver Exception"
.line 7079
invoke-static {v6, v5, v4}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V
.line 5061
:cond_ab
:goto_ab
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->c(I)I
move-result v0
if-eqz v2, :cond_b6
.line 5062
invoke-virtual {v2}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->getItemCount()I
move-result v2
goto :goto_b7
:cond_b6
const/4 v2, 0x0
:goto_b7
if-eqz v1, :cond_bd
invoke-virtual {v1}, Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;->getItemCount()I
move-result v3
:cond_bd
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
move-result v1
const-string v2, "notify"
.line 5060
invoke-virtual {p1, v0, v1, v2}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentAdapter;->notifyItemRangeChanged(IILjava/lang/Object;)V
:cond_c6
return-void
.end method
.method public varargs a(Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;I[Ljava/lang/Object;)V
.registers 5
const-string v0, "fragment"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "data"
invoke-static {p3, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 33
iput-object p1, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
.line 34
iput p2, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->a:I
.line 1030
iget-wide p1, p1, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->f:J
.line 35
iput-wide p1, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->e:J
return-void
.end method
.method public abstract b()Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter;
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/imo/android/imoim/widgets/modulelayout/child/ChildAdapter<",
"*>;"
}
.end annotation
.end method
.method public c()V
.registers 1
return-void
.end method
.method public d()V
.registers 1
return-void
.end method
.method public f()V
.registers 1
return-void
.end method
.method public g()V
.registers 1
return-void
.end method
.method public final l()Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
.registers 3
.line 17
iget-object v0, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
if-nez v0, :cond_9
const-string v1, "parentFragment"
invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_9
return-object v0
.end method
.method public final m()Z
.registers 4
.line 76
iget-object v0, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
const-string v1, "parentFragment"
if-nez v0, :cond_9
invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_9
invoke-virtual {v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
const/4 v2, 0x1
if-eqz v0, :cond_26
iget-object v0, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
if-nez v0, :cond_17
invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_17
invoke-virtual {v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-eqz v0, :cond_24
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->isFinishing()Z
move-result v0
if-ne v0, v2, :cond_24
goto :goto_26
:cond_24
const/4 v0, 0x0
return v0
:cond_26
:goto_26
return v2
.end method
.method public final n()Landroid/app/Activity;
.registers 3
.line 80
iget-object v0, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
if-nez v0, :cond_9
const-string v1, "parentFragment"
invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_9
invoke-virtual {v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
check-cast v0, Landroid/app/Activity;
return-object v0
.end method
.method public final o()Landroidx/lifecycle/LifecycleOwner;
.registers 3
.line 118
iget-object v0, p0, Lcom/imo/android/imoim/widgets/modulelayout/child/a;->d:Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;
if-nez v0, :cond_9
const-string v1, "parentFragment"
invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V
:cond_9
invoke-virtual {v0}, Lcom/imo/android/imoim/widgets/modulelayout/parent/ParentFragment;->getViewLifecycleOwner()Landroidx/lifecycle/LifecycleOwner;
move-result-object v0
const-string v1, "parentFragment.viewLifecycleOwner"
invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method