CallHistoryViewModel.smali
.class public final Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel;
.super Lcom/imo/android/common/mvvm/BaseViewModel;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/imoout/imooutlist/e;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel$a;
}
.end annotation
# static fields
.field public static final b:Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel$a;
# instance fields
.field final a:Landroidx/lifecycle/MutableLiveData;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/MutableLiveData<",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/recharge/callhitory/a;",
">;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel$a;-><init>(Lkotlin/f/b/j;)V
sput-object v0, Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel;->b:Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel$a;
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 19
invoke-direct {p0}, Lcom/imo/android/common/mvvm/BaseViewModel;-><init>()V
.line 21
new-instance v0, Landroidx/lifecycle/MutableLiveData;
invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V
iput-object v0, p0, Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel;->a:Landroidx/lifecycle/MutableLiveData;
return-void
.end method
.method public static a(I)V
.registers 1
.line 34
invoke-static {p0}, Lcom/imo/android/imoim/imoout/b/a;->b(I)V
return-void
.end method
.method public static final synthetic b(Landroidx/fragment/app/FragmentActivity;)Landroidx/lifecycle/ViewModelProvider;
.registers 1
.line 19
invoke-static {p0}, Lcom/imo/android/common/mvvm/BaseViewModel;->a(Landroidx/fragment/app/FragmentActivity;)Landroidx/lifecycle/ViewModelProvider;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final a(Ljava/lang/String;)V
.registers 2
return-void
.end method
.method public final a(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/imooutlist/a/c;",
">;)V"
}
.end annotation
return-void
.end method
.method public final b(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/imooutlist/a/a;",
">;)V"
}
.end annotation
return-void
.end method
.method public final c(Ljava/util/List;)V
.registers 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/imooutlist/a/a;",
">;)V"
}
.end annotation
.line 64
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/List;
if-eqz p1, :cond_5a
.line 66
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_f
if-ge v3, v1, :cond_5a
.line 67
new-instance v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;
invoke-direct {v4}, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;-><init>()V
.line 68
invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;
.line 69
iget-object v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->i:Ljava/lang/String;
const-string v7, "<set-?>"
if-eqz v6, :cond_2e
.line 70
iget-object v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->i:Ljava/lang/String;
const-string v8, "record.iconId"
invoke-static {v6, v8}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v6, v7}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 1009
iput-object v6, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->b:Ljava/lang/String;
.line 72
:cond_2e
iget-object v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->f:Ljava/lang/String;
.line 2008
iput-object v6, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->a:Ljava/lang/String;
.line 73
iget-object v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->g:Ljava/lang/String;
const-string v8, "record.name"
invoke-static {v6, v8}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v6, v7}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 2010
iput-object v6, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->c:Ljava/lang/String;
.line 74
iget-wide v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->a:J
.line 2012
iput-wide v6, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->e:J
.line 75
iget-wide v6, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->c:J
.line 3011
iput-wide v6, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->d:J
.line 76
iget-wide v5, v5, Lcom/imo/android/imoim/imoout/imooutlist/a/a;->c:J
const-wide/16 v7, 0x0
cmp-long v9, v5, v7
if-lez v9, :cond_52
const/4 v5, 0x1
.line 3013
iput v5, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->f:I
goto :goto_54
.line 4013
:cond_52
iput v2, v4, Lcom/imo/android/imoim/imoout/recharge/callhitory/a;->f:I
.line 82
:goto_54
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v3, v3, 0x1
goto :goto_f
.line 86
:cond_5a
iget-object p1, p0, Lcom/imo/android/imoim/imoout/recharge/callhitory/CallHistoryViewModel;->a:Landroidx/lifecycle/MutableLiveData;
invoke-virtual {p1, v0}, Landroidx/lifecycle/MutableLiveData;->setValue(Ljava/lang/Object;)V
return-void
.end method
.method public final d(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/imooutlist/a/c;",
">;)V"
}
.end annotation
return-void
.end method
.method public final e(Ljava/util/List;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/imo/android/imoim/imoout/imooutlist/a/a;",
">;)V"
}
.end annotation
return-void
.end method
.method public final onCleared()V
.registers 3
.line 41
invoke-super {p0}, Lcom/imo/android/common/mvvm/BaseViewModel;->onCleared()V
.line 42
sget-object v0, Lcom/imo/android/imoim/imoout/c;->a:Lcom/imo/android/imoim/imoout/c;
invoke-static {}, Lcom/imo/android/imoim/imoout/c;->a()Lcom/imo/android/imoim/imoout/imooutlist/f;
move-result-object v0
move-object v1, p0
check-cast v1, Lcom/imo/android/imoim/managers/ax;
invoke-virtual {v0, v1}, Lcom/imo/android/imoim/imoout/imooutlist/f;->unsubscribe(Lcom/imo/android/imoim/managers/ax;)V
return-void
.end method