c.smali
.class public Lcom/bignerdranch/expandablerecyclerview/c;
.super Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.source "SourceFile"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/bignerdranch/expandablerecyclerview/c$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<P::",
"Lcom/bignerdranch/expandablerecyclerview/model/b<",
"TC;>;C:",
"Ljava/lang/Object;",
">",
"Landroidx/recyclerview/widget/RecyclerView$ViewHolder;",
"Landroid/view/View$OnClickListener;"
}
.end annotation
# instance fields
.field public a:Lcom/bignerdranch/expandablerecyclerview/c$a;
.field public b:Z
.field public c:Lcom/bignerdranch/expandablerecyclerview/model/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"TP;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/view/View;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;-><init>(Landroid/view/View;)V
const/4 p1, 0x0
.line 2
iput-boolean p1, p0, Lcom/bignerdranch/expandablerecyclerview/c;->b:Z
return-void
.end method
# virtual methods
.method public final a()V
.registers 8
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Lcom/bignerdranch/expandablerecyclerview/c;->d(Z)V
const/4 v1, 0x1
.line 2
invoke-virtual {p0, v1}, Lcom/bignerdranch/expandablerecyclerview/c;->c(Z)V
.line 3
iget-object v2, p0, Lcom/bignerdranch/expandablerecyclerview/c;->a:Lcom/bignerdranch/expandablerecyclerview/c$a;
if-eqz v2, :cond_4b
.line 4
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I
move-result v3
check-cast v2, Lcom/bignerdranch/expandablerecyclerview/b$a;
.line 5
iget-object v2, v2, Lcom/bignerdranch/expandablerecyclerview/b$a;->a:Lcom/bignerdranch/expandablerecyclerview/b;
.line 6
iget-object v4, v2, Lcom/bignerdranch/expandablerecyclerview/b;->a:Ljava/util/ArrayList;
invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bignerdranch/expandablerecyclerview/model/a;
.line 7
iget-boolean v5, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
if-nez v5, :cond_21
goto :goto_4b
.line 8
:cond_21
iput-boolean v0, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
.line 9
iget-object v0, v2, Lcom/bignerdranch/expandablerecyclerview/b;->d:Ljava/util/HashMap;
.line 10
iget-object v5, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
.line 11
sget-object v6, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
invoke-virtual {v0, v5, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 12
invoke-virtual {v4}, Lcom/bignerdranch/expandablerecyclerview/model/a;->a()Ljava/util/List;
move-result-object v0
if-eqz v0, :cond_4b
.line 13
check-cast v0, Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
add-int/lit8 v4, v0, -0x1
:goto_3a
if-ltz v4, :cond_47
.line 14
iget-object v5, v2, Lcom/bignerdranch/expandablerecyclerview/b;->a:Ljava/util/ArrayList;
add-int v6, v3, v4
add-int/2addr v6, v1
invoke-virtual {v5, v6}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
add-int/lit8 v4, v4, -0x1
goto :goto_3a
:cond_47
add-int/2addr v3, v1
.line 15
invoke-virtual {v2, v3, v0}, Landroidx/recyclerview/widget/RecyclerView$h;->notifyItemRangeRemoved(II)V
:cond_4b
:goto_4b
return-void
.end method
.method public final b()V
.registers 10
const/4 v0, 0x1
.line 1
invoke-virtual {p0, v0}, Lcom/bignerdranch/expandablerecyclerview/c;->d(Z)V
const/4 v1, 0x0
.line 2
invoke-virtual {p0, v1}, Lcom/bignerdranch/expandablerecyclerview/c;->c(Z)V
.line 3
iget-object v2, p0, Lcom/bignerdranch/expandablerecyclerview/c;->a:Lcom/bignerdranch/expandablerecyclerview/c$a;
if-eqz v2, :cond_5c
.line 4
invoke-virtual {p0}, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->getAdapterPosition()I
move-result v3
check-cast v2, Lcom/bignerdranch/expandablerecyclerview/b$a;
.line 5
iget-object v2, v2, Lcom/bignerdranch/expandablerecyclerview/b$a;->a:Lcom/bignerdranch/expandablerecyclerview/b;
check-cast v2, Lcom/shopee/app/ui/base/l0;
invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
if-ltz v3, :cond_5c
.line 6
iget-object v4, v2, Lcom/bignerdranch/expandablerecyclerview/b;->a:Ljava/util/ArrayList;
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
move-result v4
if-ge v3, v4, :cond_5c
.line 7
iget-object v4, v2, Lcom/bignerdranch/expandablerecyclerview/b;->a:Ljava/util/ArrayList;
invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lcom/bignerdranch/expandablerecyclerview/model/a;
.line 8
iget-boolean v5, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
if-eqz v5, :cond_30
goto :goto_5c
.line 9
:cond_30
iput-boolean v0, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->d:Z
.line 10
iget-object v5, v2, Lcom/bignerdranch/expandablerecyclerview/b;->d:Ljava/util/HashMap;
.line 11
iget-object v6, v4, Lcom/bignerdranch/expandablerecyclerview/model/a;->a:Lcom/bignerdranch/expandablerecyclerview/model/b;
.line 12
sget-object v7, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
invoke-virtual {v5, v6, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 13
invoke-virtual {v4}, Lcom/bignerdranch/expandablerecyclerview/model/a;->a()Ljava/util/List;
move-result-object v4
if-eqz v4, :cond_5c
.line 14
check-cast v4, Ljava/util/ArrayList;
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
move-result v5
:goto_47
if-ge v1, v5, :cond_58
.line 15
iget-object v6, v2, Lcom/bignerdranch/expandablerecyclerview/b;->a:Ljava/util/ArrayList;
add-int v7, v3, v1
add-int/2addr v7, v0
invoke-virtual {v4, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v8
invoke-virtual {v6, v7, v8}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V
add-int/lit8 v1, v1, 0x1
goto :goto_47
:cond_58
add-int/2addr v3, v0
.line 16
invoke-virtual {v2, v3, v5}, Landroidx/recyclerview/widget/RecyclerView$h;->notifyItemRangeInserted(II)V
:cond_5c
:goto_5c
return-void
.end method
.method public c(Z)V
.registers 2
return-void
.end method
.method public d(Z)V
.registers 2
iput-boolean p1, p0, Lcom/bignerdranch/expandablerecyclerview/c;->b:Z
return-void
.end method
.method public onClick(Landroid/view/View;)V
.registers 2
.line 1
iget-boolean p1, p0, Lcom/bignerdranch/expandablerecyclerview/c;->b:Z
if-eqz p1, :cond_8
.line 2
invoke-virtual {p0}, Lcom/bignerdranch/expandablerecyclerview/c;->a()V
goto :goto_b
.line 3
:cond_8
invoke-virtual {p0}, Lcom/bignerdranch/expandablerecyclerview/c;->b()V
:goto_b
return-void
.end method