ImoHonorComponent.smali
.class public Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;
.super Lcom/imo/android/imoim/profile/component/BaseProfileComponent;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$HonorViewHolder;,
Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/imo/android/imoim/profile/component/BaseProfileComponent<",
"Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;",
">;"
}
.end annotation
# instance fields
.field public b:Landroidx/lifecycle/MutableLiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/MutableLiveData<",
"Ljava/util/List<",
"Lcom/imo/android/imoim/profile/honor/h;",
">;>;"
}
.end annotation
.end field
.field private c:Ljava/lang/String;
.field private d:Ljava/lang/String;
.field private e:Ljava/lang/String;
.field private f:Ljava/lang/String;
.field private g:Landroid/view/View;
.field private h:Landroidx/recyclerview/widget/RecyclerView;
.field private i:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/imo/android/imoim/profile/honor/h;",
">;"
}
.end annotation
.end field
.field private j:Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
.field private k:Landroidx/lifecycle/LiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/LiveData<",
"Lcom/imo/android/imoim/profile/viewmodel/b;",
">;"
}
.end annotation
.end field
.field private l:Landroid/content/SharedPreferences;
.field private m:Lcom/google/android/material/appbar/AppBarLayout;
.field private n:Z
# direct methods
.method public constructor <init>(Lcom/imo/android/core/component/c;Landroid/view/View;ZLandroidx/lifecycle/LiveData;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/imo/android/core/component/c;",
"Landroid/view/View;",
"Z",
"Landroidx/lifecycle/LiveData<",
"Lcom/imo/android/imoim/profile/viewmodel/b;",
">;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
"Ljava/lang/String;",
")V"
}
.end annotation
.line 77
invoke-direct {p0, p1, p2, p3}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;-><init>(Lcom/imo/android/core/component/c;Landroid/view/View;Z)V
.line 67
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->i:Ljava/util/List;
.line 71
new-instance p1, Landroidx/lifecycle/MutableLiveData;
invoke-direct {p1}, Landroidx/lifecycle/MutableLiveData;-><init>()V
iput-object p1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->b:Landroidx/lifecycle/MutableLiveData;
.line 73
sget-object p1, Lcom/imo/android/imoim/setting/IMOSettingsDelegate;->INSTANCE:Lcom/imo/android/imoim/setting/IMOSettingsDelegate;
invoke-virtual {p1}, Lcom/imo/android/imoim/setting/IMOSettingsDelegate;->getImoProfileRefactor()Z
move-result p1
iput-boolean p1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->n:Z
.line 78
iput-object p4, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->k:Landroidx/lifecycle/LiveData;
.line 79
iput-object p5, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->c:Ljava/lang/String;
.line 80
iput-object p6, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->d:Ljava/lang/String;
.line 81
iput-object p7, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->e:Ljava/lang/String;
.line 82
invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
const-string p2, "imo_honor"
const/4 p3, 0x0
invoke-virtual {p1, p2, p3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object p1
iput-object p1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->l:Landroid/content/SharedPreferences;
.line 83
iput-object p8, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->f:Ljava/lang/String;
return-void
.end method
.method static synthetic a(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;Ljava/lang/String;)Ljava/lang/String;
.registers 2
.line 55
iput-object p1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->e:Ljava/lang/String;
return-object p1
.end method
.method static synthetic a(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->L:Z
return p0
.end method
.method static synthetic b(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 2034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic c(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Ljava/lang/String;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->c:Ljava/lang/String;
return-object p0
.end method
.method static synthetic d(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 3034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic e(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 4034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic f(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Ljava/lang/String;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->d:Ljava/lang/String;
return-object p0
.end method
.method static synthetic g(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Ljava/lang/String;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->e:Ljava/lang/String;
return-object p0
.end method
.method static synthetic h(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroid/view/View;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->g:Landroid/view/View;
return-object p0
.end method
.method static synthetic i(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/lifecycle/MutableLiveData;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->b:Landroidx/lifecycle/MutableLiveData;
return-object p0
.end method
.method static synthetic j(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->L:Z
return p0
.end method
.method static synthetic k(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Ljava/util/List;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->i:Ljava/util/List;
return-object p0
.end method
.method static synthetic l(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->j:Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
return-object p0
.end method
.method static synthetic m(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->L:Z
return p0
.end method
.method static synthetic n(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 5034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic o(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 6034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic p(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroid/content/SharedPreferences;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->l:Landroid/content/SharedPreferences;
return-object p0
.end method
.method static synthetic q(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->n:Z
return p0
.end method
.method static synthetic r(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 7034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic s(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Lcom/google/android/material/appbar/AppBarLayout;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->m:Lcom/google/android/material/appbar/AppBarLayout;
return-object p0
.end method
.method static synthetic t(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)V
.registers 9
.line 7283
iget-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a_:Lcom/imo/android/core/component/c/a;
check-cast v0, Lcom/imo/android/core/a/b;
invoke-interface {v0}, Lcom/imo/android/core/a/b;->c()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {v0}, Landroidx/fragment/app/FragmentActivity;->getIntent()Landroid/content/Intent;
move-result-object v0
if-eqz v0, :cond_55
const-string v1, "key_action_type"
.line 7288
invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object v7
.line 7289
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const-string v1, "show_gift_wall"
.line 7290
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const-string v1, "show_gift_wall_share"
.line 7291
invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 7292
invoke-static {v7}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_55
invoke-interface {v0, v7}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_30
goto :goto_55
.line 7296
:cond_30
iget-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->e:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_41
const/4 p0, 0x1
const-string v0, "ImoHonorComponent"
const-string v1, "anonId is empty"
.line 8079
invoke-static {v0, v1, p0}, Lcom/imo/android/imoim/util/bt;->a(Ljava/lang/String;Ljava/lang/String;Z)V
return-void
.line 7301
:cond_41
iget-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a_:Lcom/imo/android/core/component/c/a;
check-cast v0, Lcom/imo/android/core/a/b;
invoke-interface {v0}, Lcom/imo/android/core/a/b;->c()Landroidx/fragment/app/FragmentActivity;
move-result-object v2
iget-object v3, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->c:Ljava/lang/String;
iget-object v5, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->e:Ljava/lang/String;
iget-object v6, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->f:Ljava/lang/String;
const-string v4, "hnr.room.gift"
invoke-static/range {v2 .. v7}, Lcom/imo/android/imoim/profile/honor/ImoHonorDetailDialog;->a(Landroidx/fragment/app/FragmentActivity;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
nop
:cond_55
:goto_55
return-void
.end method
.method static synthetic u(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 9034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic v(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->L:Z
return p0
.end method
.method static synthetic w(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 10034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic x(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/fragment/app/FragmentActivity;
.registers 1
.line 11034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object p0
return-object p0
.end method
.method static synthetic y(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Landroidx/lifecycle/LiveData;
.registers 1
.line 55
iget-object p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->k:Landroidx/lifecycle/LiveData;
return-object p0
.end method
.method static synthetic z(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)Z
.registers 1
.line 55
iget-boolean p0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->L:Z
return p0
.end method
# virtual methods
.method public final b()V
.registers 1
return-void
.end method
.method public final c()V
.registers 8
const v0, 0x7f0906a8
.line 93
invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/google/android/material/appbar/AppBarLayout;
iput-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->m:Lcom/google/android/material/appbar/AppBarLayout;
const v0, 0x7f0906cf
.line 94
invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a(I)Landroid/view/View;
move-result-object v0
iput-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->g:Landroid/view/View;
const v0, 0x7f090c48
.line 95
invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a(I)Landroid/view/View;
move-result-object v0
new-instance v1, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$1;
invoke-direct {v1, p0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$1;-><init>(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
const v0, 0x7f0906ce
.line 109
invoke-virtual {p0, v0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->a(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
iput-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
.line 110
new-instance v0, Landroidx/recyclerview/widget/GridLayoutManager;
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
const/4 v2, 0x5
invoke-direct {v0, v1, v2}, Landroidx/recyclerview/widget/GridLayoutManager;-><init>(Landroid/content/Context;I)V
.line 111
iget-object v1, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v1, v0}, Landroidx/recyclerview/widget/RecyclerView;->setLayoutManager(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)V
.line 112
new-instance v0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;-><init>(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;B)V
iput-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->j:Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$a;
.line 113
iget-object v3, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
invoke-virtual {v3, v0}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
.line 115
iget-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->h:Landroidx/recyclerview/widget/RecyclerView;
new-instance v3, Lcom/imo/android/imoim/views/GridSpacingItemDecoration;
.line 116
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v4
const/16 v5, 0xf
invoke-static {v4, v5}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I
move-result v4
.line 117
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v5
const/16 v6, 0x14
invoke-static {v5, v6}, Lcom/imo/xui/util/b;->a(Landroid/content/Context;I)I
move-result v5
invoke-direct {v3, v2, v4, v5, v1}, Lcom/imo/android/imoim/views/GridSpacingItemDecoration;-><init>(IIIZ)V
.line 115
invoke-virtual {v0, v3}, Landroidx/recyclerview/widget/RecyclerView;->addItemDecoration(Landroidx/recyclerview/widget/RecyclerView$ItemDecoration;)V
.line 119
iget-object v0, p0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;->k:Landroidx/lifecycle/LiveData;
.line 1034
invoke-virtual {p0}, Lcom/imo/android/imoim/profile/component/BaseProfileComponent;->x()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
.line 119
new-instance v2, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$2;
invoke-direct {v2, p0}, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent$2;-><init>(Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;)V
invoke-virtual {v0, v1, v2}, Landroidx/lifecycle/LiveData;->observe(Landroidx/lifecycle/LifecycleOwner;Landroidx/lifecycle/Observer;)V
return-void
.end method
.method public final d()Ljava/lang/Class;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Class<",
"Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;",
">;"
}
.end annotation
.line 233
const-class v0, Lcom/imo/android/imoim/profile/honor/ImoHonorComponent;
return-object v0
.end method