ResEntranceViewModel.smali
.class public final Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;
.super Landroidx/lifecycle/ViewModel;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lsg/bigo/live/support64/component/resource/ResEntranceViewModel$a;
}
.end annotation
# static fields
.field public static final c:Lsg/bigo/live/support64/component/resource/ResEntranceViewModel$a;
# instance fields
.field final a:Landroidx/lifecycle/LiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/LiveData<",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;>;"
}
.end annotation
.end field
.field public final b:Landroidx/lifecycle/LiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/LiveData<",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;>;"
}
.end annotation
.end field
.field private final d:Landroidx/lifecycle/MutableLiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/MutableLiveData<",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;>;"
}
.end annotation
.end field
.field private final e:Landroidx/lifecycle/MutableLiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/MutableLiveData<",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel$a;-><init>(Lkotlin/f/b/j;)V
sput-object v0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->c:Lsg/bigo/live/support64/component/resource/ResEntranceViewModel$a;
return-void
.end method
.method public constructor <init>()V
.registers 3
.line 11
invoke-direct {p0}, Landroidx/lifecycle/ViewModel;-><init>()V
.line 51
new-instance v0, Landroidx/lifecycle/MutableLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V
.line 1069
sget-object v1, Lkotlin/a/w;->a:Lkotlin/a/w;
check-cast v1, Ljava/util/List;
.line 52
invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
.line 51
iput-object v0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->d:Landroidx/lifecycle/MutableLiveData;
.line 54
check-cast v0, Landroidx/lifecycle/LiveData;
iput-object v0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->a:Landroidx/lifecycle/LiveData;
.line 59
new-instance v0, Landroidx/lifecycle/MutableLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V
.line 2069
sget-object v1, Lkotlin/a/w;->a:Lkotlin/a/w;
check-cast v1, Ljava/util/List;
.line 59
invoke-virtual {v0, v1}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
iput-object v0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->e:Landroidx/lifecycle/MutableLiveData;
.line 61
check-cast v0, Landroidx/lifecycle/LiveData;
iput-object v0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->b:Landroidx/lifecycle/LiveData;
return-void
.end method
.method public static final synthetic a(Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;)Landroidx/lifecycle/MutableLiveData;
.registers 1
.line 11
iget-object p0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->d:Landroidx/lifecycle/MutableLiveData;
return-object p0
.end method
.method public static a(Ljava/util/List;Z)Ljava/util/List;
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;Z)",
"Ljava/util/List<",
"Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;",
">;"
}
.end annotation
const-string v0, "items"
invoke-static {p0, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p1, :cond_32
.line 102
check-cast p0, Ljava/lang/Iterable;
.line 114
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
check-cast p1, Ljava/util/Collection;
.line 115
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_14
:goto_14
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_2f
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
move-object v1, v0
check-cast v1, Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;
.line 1031
iget v1, v1, Lsg/bigo/live/support64/component/resource/model/ResEntranceInfo;->d:I
const/4 v2, 0x2
if-ne v1, v2, :cond_28
const/4 v1, 0x1
goto :goto_29
:cond_28
const/4 v1, 0x0
:goto_29
if-eqz v1, :cond_14
.line 103
invoke-interface {p1, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_14
.line 116
:cond_2f
move-object p0, p1
check-cast p0, Ljava/util/List;
.line 109
:cond_32
check-cast p0, Ljava/lang/Iterable;
const/4 p1, 0x5
invoke-static {p0, p1}, Lkotlin/a/k;->c(Ljava/lang/Iterable;I)Ljava/util/List;
move-result-object p0
check-cast p0, Ljava/lang/Iterable;
invoke-static {p0}, Lkotlin/a/k;->e(Ljava/lang/Iterable;)Ljava/util/List;
move-result-object p0
return-object p0
.end method
.method public static final synthetic b(Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;)Landroidx/lifecycle/MutableLiveData;
.registers 1
.line 11
iget-object p0, p0, Lsg/bigo/live/support64/component/resource/ResEntranceViewModel;->e:Landroidx/lifecycle/MutableLiveData;
return-object p0
.end method