586 lines
15 KiB
Smali
586 lines
15 KiB
Smali
.class public final Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
.super Ljava/lang/Object;
|
|
.source "TabsHostViewModel.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/tabs/TabsHostViewModel;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "ViewState"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final bottomNavHeight:I
|
|
|
|
.field public final myUserId:J
|
|
|
|
.field public final numFriendsNotifications:I
|
|
|
|
.field public final numHomeNotifications:I
|
|
|
|
.field public final selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
.field public final showBottomNav:Z
|
|
|
|
.field public final visibleTabs:Ljava/util/Set;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Set<",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/tabs/NavigationTab;ZIJLjava/util/Set;II)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
"ZIJ",
|
|
"Ljava/util/Set<",
|
|
"+",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
">;II)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "selectedTab"
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "visibleTabs"
|
|
|
|
invoke-static {p6, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
iput-boolean p2, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
iput p3, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
iput-wide p4, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
iput-object p6, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
iput p7, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
iput p8, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic copy$default(Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;Lcom/discord/widgets/tabs/NavigationTab;ZIJLjava/util/Set;IIILjava/lang/Object;)Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
.locals 9
|
|
|
|
move-object v0, p0
|
|
|
|
and-int/lit8 v1, p9, 0x1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, p1
|
|
|
|
:goto_0
|
|
and-int/lit8 v2, p9, 0x2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-boolean v2, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v2, p2
|
|
|
|
:goto_1
|
|
and-int/lit8 v3, p9, 0x4
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
iget v3, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
move v3, p3
|
|
|
|
:goto_2
|
|
and-int/lit8 v4, p9, 0x8
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
iget-wide v4, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
move-wide v4, p4
|
|
|
|
:goto_3
|
|
and-int/lit8 v6, p9, 0x10
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
iget-object v6, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
goto :goto_4
|
|
|
|
:cond_4
|
|
move-object v6, p6
|
|
|
|
:goto_4
|
|
and-int/lit8 v7, p9, 0x20
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
iget v7, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
goto :goto_5
|
|
|
|
:cond_5
|
|
move/from16 v7, p7
|
|
|
|
:goto_5
|
|
and-int/lit8 v8, p9, 0x40
|
|
|
|
if-eqz v8, :cond_6
|
|
|
|
iget v8, v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
goto :goto_6
|
|
|
|
:cond_6
|
|
move/from16 v8, p8
|
|
|
|
:goto_6
|
|
move-object p1, v1
|
|
|
|
move p2, v2
|
|
|
|
move p3, v3
|
|
|
|
move-wide p4, v4
|
|
|
|
move-object p6, v6
|
|
|
|
move/from16 p7, v7
|
|
|
|
move/from16 p8, v8
|
|
|
|
invoke-virtual/range {p0 .. p8}, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->copy(Lcom/discord/widgets/tabs/NavigationTab;ZIJLjava/util/Set;II)Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final component1()Lcom/discord/widgets/tabs/NavigationTab;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component2()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component3()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component4()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final component5()Ljava/util/Set;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Set<",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final component6()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final component7()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final copy(Lcom/discord/widgets/tabs/NavigationTab;ZIJLjava/util/Set;II)Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
"ZIJ",
|
|
"Ljava/util/Set<",
|
|
"+",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
">;II)",
|
|
"Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "selectedTab"
|
|
|
|
move-object v2, p1
|
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "visibleTabs"
|
|
|
|
move-object/from16 v7, p6
|
|
|
|
invoke-static {v7, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
|
|
move-object v1, v0
|
|
|
|
move v3, p2
|
|
|
|
move v4, p3
|
|
|
|
move-wide v5, p4
|
|
|
|
move/from16 v8, p7
|
|
|
|
move/from16 v9, p8
|
|
|
|
invoke-direct/range {v1 .. v9}, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;-><init>(Lcom/discord/widgets/tabs/NavigationTab;ZIJLjava/util/Set;II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 5
|
|
|
|
if-eq p0, p1, :cond_1
|
|
|
|
instance-of v0, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
iget-boolean v1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
iget v1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
iget-wide v2, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
iget-object v1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
invoke-static {v0, v1}, Lk0/n/c/i;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
iget v1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
iget p1, p1, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
if-ne v0, p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final getBottomNavHeight()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getMyUserId()J
|
|
.locals 2
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
return-wide v0
|
|
.end method
|
|
|
|
.method public final getNumFriendsNotifications()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getNumHomeNotifications()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getSelectedTab()Lcom/discord/widgets/tabs/NavigationTab;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final getShowBottomNav()Z
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public final getVisibleTabs()Ljava/util/Set;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Set<",
|
|
"Lcom/discord/widgets/tabs/NavigationTab;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v2, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
:cond_1
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v2, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
invoke-static {v2, v3}, Ld;->a(J)I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v0, v2
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
:cond_2
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const-string v0, "ViewState(selectedTab="
|
|
|
|
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->selectedTab:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", showBottomNav="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->showBottomNav:Z
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", bottomNavHeight="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->bottomNavHeight:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", myUserId="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->myUserId:J
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", visibleTabs="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->visibleTabs:Ljava/util/Set;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", numHomeNotifications="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numHomeNotifications:I
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", numFriendsNotifications="
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v1, p0, Lcom/discord/widgets/tabs/TabsHostViewModel$ViewState;->numFriendsNotifications:I
|
|
|
|
const-string v2, ")"
|
|
|
|
invoke-static {v0, v1, v2}, Lf/e/b/a/a;->t(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|