120 lines
4.1 KiB
Smali
120 lines
4.1 KiB
Smali
.class public Lcom/discord/widgets/guilds/list/WidgetGuildsList;
|
|
.super Lcom/discord/utilities/app/AppFragment;
|
|
.source "WidgetGuildsList.java"
|
|
|
|
|
|
# instance fields
|
|
.field private adapter:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Lcom/discord/utilities/app/AppFragment;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic access$lambda$0(Lcom/discord/widgets/guilds/list/WidgetGuildsList;Lcom/discord/models/application/ModelAppGuildList;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->configureUI(Lcom/discord/models/application/ModelAppGuildList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private configureUI(Lcom/discord/models/application/ModelAppGuildList;)V
|
|
.locals 2
|
|
.param p1, "list" # Lcom/discord/models/application/ModelAppGuildList;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/application/ModelAppGuildList;->getItems()Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;->setData(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()Ljava/lang/Integer;
|
|
.locals 1
|
|
|
|
.prologue
|
|
const v0, 0x7f040078
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public onCreateView(Landroid/os/Bundle;Landroid/view/View;)V
|
|
.locals 1
|
|
.param p1, "savedInstanceState" # Landroid/os/Bundle;
|
|
.param p2, "view" # Landroid/view/View;
|
|
|
|
.prologue
|
|
invoke-super {p0, p1, p2}, Lcom/discord/utilities/app/AppFragment;->onCreateView(Landroid/os/Bundle;Landroid/view/View;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
check-cast p2, Landroid/support/v7/widget/RecyclerView;
|
|
|
|
.end local p2 # "view":Landroid/view/View;
|
|
invoke-direct {v0, p2}, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;-><init>(Landroid/support/v7/widget/RecyclerView;)V
|
|
|
|
invoke-static {v0}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreateViewOrOnResume()V
|
|
.locals 3
|
|
|
|
.prologue
|
|
invoke-super {p0}, Lcom/discord/utilities/app/AppFragment;->onCreateViewOrOnResume()V
|
|
|
|
invoke-static {}, Lcom/discord/stores/StoreGuildsList;->get()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/guilds/list/WidgetGuildsList;->adapter:Lcom/discord/widgets/guilds/list/WidgetGuildsListAdapter;
|
|
|
|
invoke-static {p0, v1}, Lcom/discord/utilities/app/AppTransformers;->ui(Lcom/discord/utilities/app/AppFragment;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable$Transformer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p0}, Lcom/discord/widgets/guilds/list/WidgetGuildsList$$Lambda$1;->lambdaFactory$(Lcom/discord/widgets/guilds/list/WidgetGuildsList;)Lrx/functions/Action1;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {v1, v2}, Lcom/discord/utilities/app/AppTransformers;->subscribe(Lrx/functions/Action1;Ljava/lang/Class;)Lrx/Observable$Transformer;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->compose(Lrx/Observable$Transformer;)Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|