FeedsMicSeatAdapter.smali
.class public final Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;
.super Landroidx/recyclerview/widget/RecyclerView$Adapter;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;,
Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$c;,
Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$a;,
Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$b;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/recyclerview/widget/RecyclerView$Adapter<",
"Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;",
">;"
}
.end annotation
# instance fields
.field final a:F
.field final b:F
.field public c:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;",
">;"
}
.end annotation
.end field
.field final d:Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$b;
# direct methods
.method public constructor <init>(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$b;)V
.registers 3
const-string v0, "operationAction"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 24
invoke-direct {p0}, Landroidx/recyclerview/widget/RecyclerView$Adapter;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->d:Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$b;
.line 26
invoke-static {}, Lcom/imo/android/imoim/IMO;->a()Lcom/imo/android/imoim/IMO;
move-result-object p1
check-cast p1, Landroid/content/Context;
.line 9020
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p1
.line 8040
iget p1, p1, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float p1, p1
const v0, 0x3df5c28f # 0.12f
mul-float p1, p1, v0
.line 26
iput p1, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->a:F
.line 27
invoke-static {}, Lcom/imo/android/imoim/IMO;->a()Lcom/imo/android/imoim/IMO;
move-result-object p1
check-cast p1, Landroid/content/Context;
.line 10020
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object p1
.line 9040
iget p1, p1, Landroid/util/DisplayMetrics;->widthPixels:I
int-to-float p1, p1
const v0, 0x3e4ccccd # 0.2f
mul-float p1, p1, v0
.line 27
iput p1, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->b:F
.line 29
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->c:Ljava/util/ArrayList;
return-void
.end method
.method private a(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;ILjava/util/List;)V
.registers 13
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;",
"I",
"Ljava/util/List<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
const-string v0, "holder"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "payloads"
invoke-static {p3, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1085
iget-object v0, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->c:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-ge p2, v0, :cond_1b
.line 1086
iget-object v0, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->c:Ljava/util/ArrayList;
invoke-virtual {v0, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;
goto :goto_1c
:cond_1b
const/4 v0, 0x0
.line 1119
:goto_1c
iput-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d:Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;
.line 1120
iput p2, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->e:I
const v1, 0x7f0803b9
const v2, 0x7f08055e
const/16 v3, 0x8
const/4 v4, 0x0
if-eqz v0, :cond_95
.line 1122
invoke-virtual {v0}, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->b()Z
move-result v5
if-nez v5, :cond_32
goto :goto_95
.line 2053
:cond_32
invoke-virtual {v0}, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->b()Z
move-result v5
if-eqz v5, :cond_44
invoke-virtual {v0}, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->a()J
move-result-wide v5
const-wide/16 v7, 0x0
cmp-long v0, v5, v7
if-gez v0, :cond_44
const/4 v0, 0x1
goto :goto_45
:cond_44
const/4 v0, 0x0
:goto_45
if-eqz v0, :cond_62
.line 2185
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a:Lcom/imo/android/imoim/fresco/RatioHeightImageView;
invoke-virtual {v0}, Lcom/imo/android/imoim/fresco/RatioHeightImageView;->clearColorFilter()V
.line 2186
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a:Lcom/imo/android/imoim/fresco/RatioHeightImageView;
const v5, 0x7f060113
invoke-static {v5}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I
move-result v5
invoke-virtual {v0, v5}, Lcom/imo/android/imoim/fresco/RatioHeightImageView;->setColorFilter(I)V
.line 2187
invoke-virtual {p1}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a()V
.line 2188
invoke-virtual {p1, v3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a(I)V
.line 2189
invoke-virtual {p1, v4}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d(I)V
goto :goto_b8
.line 3137
:cond_62
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d:Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;
if-nez v0, :cond_67
goto :goto_b8
.line 3138
:cond_67
iget-object v5, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a:Lcom/imo/android/imoim/fresco/RatioHeightImageView;
invoke-virtual {v5}, Lcom/imo/android/imoim/fresco/RatioHeightImageView;->clearColorFilter()V
.line 3139
invoke-virtual {p1}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a()V
.line 4021
iget-object v5, v0, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->c:Ljava/lang/Boolean;
.line 3140
sget-object v6, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
invoke-static {v5, v6}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_80
.line 3141
invoke-virtual {p1, v4}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
.line 3142
invoke-virtual {p1, v2}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b(I)V
goto :goto_8e
.line 4044
:cond_80
iget-boolean v0, v0, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->a:Z
if-eqz v0, :cond_86
const/4 v0, 0x0
goto :goto_88
:cond_86
const/16 v0, 0x8
.line 3144
:goto_88
invoke-virtual {p1, v0}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
.line 3145
invoke-virtual {p1, v1}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b(I)V
.line 3147
:goto_8e
invoke-virtual {p1, v3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a(I)V
.line 3148
invoke-virtual {p1, v3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d(I)V
goto :goto_b8
.line 1203
:cond_95
:goto_95
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b:Landroid/widget/TextView;
const-string v5, ""
check-cast v5, Ljava/lang/CharSequence;
invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 1204
invoke-virtual {p1, v4}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a(I)V
.line 1205
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a:Lcom/imo/android/imoim/fresco/RatioHeightImageView;
invoke-virtual {v0}, Lcom/imo/android/imoim/fresco/RatioHeightImageView;->clearColorFilter()V
.line 1206
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->a:Lcom/imo/android/imoim/fresco/RatioHeightImageView;
const v5, 0x7f0800f1
invoke-virtual {v0, v5}, Lcom/imo/android/imoim/fresco/RatioHeightImageView;->setImageResource(I)V
.line 1207
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c:Landroid/widget/ImageView;
check-cast v0, Landroid/view/View;
invoke-static {v0, v3}, Lcom/imo/android/imoim/util/en;->a(Landroid/view/View;I)V
.line 1208
invoke-virtual {p1, v3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d(I)V
.line 1131
:goto_b8
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->itemView:Landroid/view/View;
new-instance v5, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH$a;
invoke-direct {v5, p1, p2}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH$a;-><init>(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;I)V
check-cast v5, Landroid/view/View$OnClickListener;
invoke-virtual {v0, v5}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 54
invoke-interface {p3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object p2
:cond_c8
:goto_c8
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
move-result p3
if-eqz p3, :cond_112
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object p3
.line 55
instance-of v0, p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$c;
if-eqz v0, :cond_fd
.line 56
check-cast p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$c;
.line 4221
iget-boolean p3, p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$c;->a:Z
.line 5152
iget-object v0, p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->d:Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;
if-nez v0, :cond_df
goto :goto_c8
.line 6021
:cond_df
iget-object v0, v0, Lcom/imo/android/imoim/voiceroom/feeds/data/MicSeats;->c:Ljava/lang/Boolean;
.line 5154
sget-object v5, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
invoke-static {v0, v5}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_f0
.line 5155
invoke-virtual {p1, v4}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
.line 5156
invoke-virtual {p1, v2}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b(I)V
goto :goto_c8
:cond_f0
if-eqz p3, :cond_f4
const/4 p3, 0x0
goto :goto_f6
:cond_f4
const/16 p3, 0x8
.line 5158
:goto_f6
invoke-virtual {p1, p3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
.line 5159
invoke-virtual {p1, v1}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b(I)V
goto :goto_c8
.line 58
:cond_fd
instance-of v0, p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$a;
if-eqz v0, :cond_c8
.line 59
check-cast p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$a;
.line 6223
iget-boolean p3, p3, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$a;->a:Z
if-eqz p3, :cond_10e
.line 7165
invoke-virtual {p1, v4}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
.line 7166
invoke-virtual {p1, v2}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->b(I)V
goto :goto_c8
.line 7168
:cond_10e
invoke-virtual {p1, v3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;->c(I)V
goto :goto_c8
:cond_112
return-void
.end method
# virtual methods
.method public final getItemCount()I
.registers 2
.line 81
iget-object v0, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->c:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z
move-result v0
if-eqz v0, :cond_b
const/16 v0, 0x9
return v0
:cond_b
iget-object v0, p0, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->c:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
return v0
.end method
.method public final synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;I)V
.registers 4
.line 23
check-cast p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;
const-string v0, "holder"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1047
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/List;
invoke-direct {p0, p1, p2, v0}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->a(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;ILjava/util/List;)V
return-void
.end method
.method public final synthetic onBindViewHolder(Landroidx/recyclerview/widget/RecyclerView$ViewHolder;ILjava/util/List;)V
.registers 4
.line 23
check-cast p1, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;
invoke-direct {p0, p1, p2, p3}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;->a(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;ILjava/util/List;)V
return-void
.end method
.method public final synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.registers 5
const-string p2, "parent"
.line 23
invoke-static {p1, p2}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1038
invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
move-result-object p2
const v0, 0x7f0b0398
const/4 v1, 0x0
.line 1037
invoke-static {p2, v0, p1, v1}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/content/Context;ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object p1
.line 1043
new-instance p2, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;
const-string v0, "view"
invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p2, p0, p1}, Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter$VH;-><init>(Lcom/imo/android/imoim/voiceroom/feeds/adapter/FeedsMicSeatAdapter;Landroid/view/View;)V
.line 23
check-cast p2, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
return-object p2
.end method