BasePanelComponent.smali
.class public abstract Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;
.super Lcom/imo/hd/component/BaseActivityComponent;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/b;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/b;",
"D::",
"Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/a/b;",
">",
"Lcom/imo/hd/component/BaseActivityComponent<",
"TT;>;",
"Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/b;"
}
.end annotation
# static fields
.field static final synthetic b:[Lkotlin/k/g;
.field public static final d:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$a;
# instance fields
.field final c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter<",
"TD;>;"
}
.end annotation
.end field
.field private e:Landroid/view/ViewGroup;
.field private f:Landroid/view/View;
.field private g:Landroidx/cardview/widget/CardView;
.field private h:Landroidx/recyclerview/widget/RecyclerView;
.field private final i:Lkotlin/f;
.field private final j:Lkotlin/f;
.field private final k:I
# direct methods
.method static constructor <clinit>()V
.registers 6
const-class v0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;
const/4 v1, 0x2
new-array v1, v1, [Lkotlin/k/g;
new-instance v2, Lkotlin/f/b/z;
invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;
move-result-object v3
const-string v4, "showPanelAnim"
const-string v5, "getShowPanelAnim()Landroid/view/animation/Animation;"
invoke-direct {v2, v3, v4, v5}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;
move-result-object v2
check-cast v2, Lkotlin/k/g;
const/4 v3, 0x0
aput-object v2, v1, v3
new-instance v2, Lkotlin/f/b/z;
invoke-static {v0}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;
move-result-object v0
const-string v3, "hidePanelAnim"
const-string v4, "getHidePanelAnim()Landroid/view/animation/Animation;"
invoke-direct {v2, v0, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v2}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;
move-result-object v0
check-cast v0, Lkotlin/k/g;
const/4 v2, 0x1
aput-object v0, v1, v2
sput-object v1, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->b:[Lkotlin/k/g;
new-instance v0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$a;-><init>(Lkotlin/f/b/j;)V
sput-object v0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->d:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$a;
return-void
.end method
.method public constructor <init>(Lcom/imo/android/core/component/c;I)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/imo/android/core/component/c<",
"*>;I)V"
}
.end annotation
const-string v0, "help"
invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 25
invoke-direct {p0, p1}, Lcom/imo/hd/component/BaseActivityComponent;-><init>(Lcom/imo/android/core/component/c;)V
iput p2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->k:I
.line 35
new-instance p1, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
invoke-direct {p1}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
.line 37
new-instance p1, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$d;
invoke-direct {p1, p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$d;-><init>(Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;)V
check-cast p1, Lkotlin/f/a/a;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->i:Lkotlin/f;
.line 38
new-instance p1, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$b;
invoke-direct {p1, p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$b;-><init>(Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;)V
check-cast p1, Lkotlin/f/a/a;
invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->j:Lkotlin/f;
return-void
.end method
.method public static final synthetic a(Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;)Landroid/view/View;
.registers 1
.line 25
iget-object p0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
return-object p0
.end method
.method private l()Z
.registers 2
.line 112
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_c
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I
move-result v0
if-nez v0, :cond_c
const/4 v0, 0x1
return v0
:cond_c
const/4 v0, 0x0
return v0
.end method
.method private final m()V
.registers 4
.line 116
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
if-eqz v0, :cond_44
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-nez v0, :cond_9
goto :goto_44
.line 120
:cond_9
sget-object v0, Lcom/imo/android/imoim/changebg/background/chatroom/b;->a:Lcom/imo/android/imoim/changebg/background/chatroom/b;
invoke-static {}, Lcom/imo/android/imoim/changebg/background/chatroom/b;->b()Z
move-result v0
const/4 v1, -0x1
if-eqz v0, :cond_29
.line 121
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
.line 5032
iput-object v1, v0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;->c:Ljava/lang/Integer;
.line 122
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->g:Landroidx/cardview/widget/CardView;
if-eqz v0, :cond_3f
const v1, 0x7f0600e0
invoke-static {v1}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I
move-result v1
invoke-virtual {v0, v1}, Landroidx/cardview/widget/CardView;->setCardBackgroundColor(I)V
goto :goto_3f
.line 124
:cond_29
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
const v2, 0x7f0600f0
invoke-static {v2}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
.line 6032
iput-object v2, v0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;->c:Ljava/lang/Integer;
.line 125
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->g:Landroidx/cardview/widget/CardView;
if-eqz v0, :cond_3f
invoke-virtual {v0, v1}, Landroidx/cardview/widget/CardView;->setCardBackgroundColor(I)V
.line 127
:cond_3f
:goto_3f
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
invoke-virtual {v0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;->notifyDataSetChanged()V
:cond_44
:goto_44
return-void
.end method
# virtual methods
.method public final b()V
.registers 1
return-void
.end method
.method public c()V
.registers 1
return-void
.end method
.method protected g()V
.registers 1
return-void
.end method
.method public h()V
.registers 8
.line 76
invoke-direct {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->l()Z
move-result v0
if-eqz v0, :cond_7
return-void
.line 78
:cond_7
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
const/4 v1, 0x0
if-eqz v0, :cond_10
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-nez v0, :cond_ba
.line 1049
:cond_10
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->a_:Lcom/imo/android/core/component/c/a;
check-cast v0, Lcom/imo/android/core/a/b;
iget v2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->k:I
invoke-interface {v0, v2}, Lcom/imo/android/core/a/b;->a(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/view/ViewGroup;
iput-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
.line 1051
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
check-cast v0, Landroid/content/Context;
const v2, 0x7f0b03dd
.line 1053
iget-object v3, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
const/4 v4, 0x1
.line 1050
invoke-static {v0, v2, v3, v4}, Lsg/bigo/mobile/android/aab/c/b;->a(Landroid/content/Context;ILandroid/view/ViewGroup;Z)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
const/4 v2, 0x0
if-eqz v0, :cond_3d
const v3, 0x7f090d3c
.line 1056
invoke-virtual {v0, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/cardview/widget/CardView;
goto :goto_3e
:cond_3d
move-object v0, v2
:goto_3e
iput-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->g:Landroidx/cardview/widget/CardView;
.line 1058
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
check-cast v0, Landroid/content/Context;
.line 3020
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
move-result-object v0
.line 2040
iget v0, v0, Landroid/util/DisplayMetrics;->widthPixels:I
.line 1060
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v3
check-cast v3, Landroid/content/Context;
const/16 v5, 0x5a
invoke-static {v3, v5}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I
move-result v3
div-int/2addr v0, v3
const/4 v3, 0x4
invoke-static {v0, v3}, Ljava/lang/Math;->max(II)I
move-result v0
.line 1061
invoke-static {v0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v3
const-string v5, "spanCount="
invoke-virtual {v5, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
const-string v5, "BasePanelComponent"
.line 3071
invoke-static {v5, v3}, Lcom/imo/android/imoim/util/bt;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 1063
iget-object v3, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v3, :cond_7e
const v2, 0x7f090d3b
invoke-virtual {v3, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v2
check-cast v2, Landroidx/recyclerview/widget/RecyclerView;
:cond_7e
iput-object v2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
if-eqz v2, :cond_89
.line 1064
iget-object v3, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->c:Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/PanelAdapter;
check-cast v3, Landroidx/recyclerview/widget/RecyclerView$Adapter;
invoke-virtual {v2, v3}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
.line 1065
:cond_89
iget-object v2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
if-eqz v2, :cond_9d
new-instance v3, Landroidx/recyclerview/widget/GridLayoutManager;
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v5
check-cast v5, Landroid/content/Context;
invoke-direct {v3, v5, v0, v4, v1}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;IIZ)V
check-cast v3, Landroidx/recyclerview/widget/RecyclerView$LayoutManager;
invoke-virtual {v2, v3}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
.line 1066
:cond_9d
iget-object v2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
if-eqz v2, :cond_b7
new-instance v3, Lcom/imo/android/imoim/widgets/GridItemDividerDecoration;
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v5
check-cast v5, Landroid/content/Context;
const/16 v6, 0xf
invoke-static {v5, v6}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I
move-result v5
invoke-direct {v3, v0, v5, v4, v1}, Lcom/imo/android/imoim/widgets/GridItemDividerDecoration;-><init>(IIIZ)V
check-cast v3, Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;
invoke-virtual {v2, v3}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
.line 1068
:cond_b7
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->g()V
.line 81
:cond_ba
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
if-eqz v0, :cond_f5
iget-object v2, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v2, :cond_f5
if-eqz v0, :cond_c7
.line 82
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setVisibility(I)V
.line 83
:cond_c7
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_ce
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
.line 84
:cond_ce
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_d5
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
.line 85
:cond_d5
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_e4
.line 4000
iget-object v1, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->i:Lkotlin/f;
invoke-interface {v1}, Lkotlin/f;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/animation/Animation;
.line 85
invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
.line 86
:cond_e4
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->e:Landroid/view/ViewGroup;
if-eqz v0, :cond_f2
new-instance v1, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$c;
invoke-direct {v1, p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent$c;-><init>(Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;)V
check-cast v1, Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 88
:cond_f2
invoke-direct {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->m()V
:cond_f5
return-void
.end method
.method public final i()V
.registers 3
.line 93
invoke-direct {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->l()Z
move-result v0
if-eqz v0, :cond_1c
.line 94
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_d
invoke-virtual {v0}, Landroid/view/View;->clearAnimation()V
.line 95
:cond_d
iget-object v0, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->f:Landroid/view/View;
if-eqz v0, :cond_1c
.line 5000
iget-object v1, p0, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->j:Lkotlin/f;
invoke-interface {v1}, Lkotlin/f;->getValue()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/view/animation/Animation;
.line 95
invoke-virtual {v0, v1}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
:cond_1c
return-void
.end method
.method public final j()V
.registers 1
.line 100
invoke-direct {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->m()V
return-void
.end method
.method public final k()Z
.registers 2
.line 104
invoke-direct {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->l()Z
move-result v0
if-eqz v0, :cond_b
.line 105
invoke-virtual {p0}, Lcom/imo/android/imoim/biggroup/chatroom/featurepanel/game/BasePanelComponent;->i()V
const/4 v0, 0x1
return v0
:cond_b
const/4 v0, 0x0
return v0
.end method