apkfuckery/com.discord/smali/com/discord/stores/StoreAnalytics$onScreenView...

170 lines
4.7 KiB
Smali

.class final Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;
.super Ljava/lang/Object;
# interfaces
.implements Lrx/functions/Action0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreAnalytics;->onScreenViewed(Lcom/discord/stores/StoreAnalytics$ScreenViewed;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic $screenViewed:Lcom/discord/stores/StoreAnalytics$ScreenViewed;
.field final synthetic this$0:Lcom/discord/stores/StoreAnalytics;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreAnalytics;Lcom/discord/stores/StoreAnalytics$ScreenViewed;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->this$0:Lcom/discord/stores/StoreAnalytics;
iput-object p2, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->$screenViewed:Lcom/discord/stores/StoreAnalytics$ScreenViewed;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call()V
.locals 7
iget-object v0, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->$screenViewed:Lcom/discord/stores/StoreAnalytics$ScreenViewed;
invoke-virtual {v0}, Lcom/discord/stores/StoreAnalytics$ScreenViewed;->getScreen()Ljava/lang/Class;
move-result-object v0
const-class v1, Lcom/discord/widgets/main/WidgetMain;
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-object v0, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->this$0:Lcom/discord/stores/StoreAnalytics;
invoke-static {v0}, Lcom/discord/stores/StoreAnalytics;->access$getStores$p(Lcom/discord/stores/StoreAnalytics;)Lcom/discord/stores/StoreStream;
move-result-object v0
iget-object v0, v0, Lcom/discord/stores/StoreStream;->guildSelected:Lcom/discord/stores/StoreGuildSelected;
invoke-virtual {v0}, Lcom/discord/stores/StoreGuildSelected;->getSelectedGuildId()J
move-result-wide v0
iget-object v2, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->this$0:Lcom/discord/stores/StoreAnalytics;
invoke-static {v2}, Lcom/discord/stores/StoreAnalytics;->access$getStores$p(Lcom/discord/stores/StoreAnalytics;)Lcom/discord/stores/StoreStream;
move-result-object v2
iget-object v2, v2, Lcom/discord/stores/StoreStream;->channelsSelected:Lcom/discord/stores/StoreChannelsSelected;
invoke-virtual {v2, v0, v1}, Lcom/discord/stores/StoreChannelsSelected;->getIdBlocking$app_productionExternalRelease(J)J
move-result-wide v2
const-wide/16 v4, 0x0
cmp-long v6, v0, v4
if-nez v6, :cond_1
cmp-long v0, v2, v4
if-lez v0, :cond_0
const-string v0, "private_channel"
goto :goto_0
:cond_0
const-string v0, "friends_list"
goto :goto_0
:cond_1
const-string v0, "guild"
goto :goto_0
:cond_2
const-class v1, Lcom/discord/widgets/guilds/invite/WidgetGuildInvite;
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_3
const-string v0, "invite"
goto :goto_0
:cond_3
const-class v1, Lcom/discord/widgets/share/WidgetIncomingShare;
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_4
const-string v0, "share"
goto :goto_0
:cond_4
const-class v1, Lcom/discord/widgets/auth/WidgetAuthLanding;
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->x(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_5
const-string v0, "app_landing"
goto :goto_0
:cond_5
iget-object v0, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->$screenViewed:Lcom/discord/stores/StoreAnalytics$ScreenViewed;
invoke-virtual {v0}, Lcom/discord/stores/StoreAnalytics$ScreenViewed;->getScreen()Ljava/lang/Class;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
:goto_0
const-string v1, "screenName"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v1, p0, Lcom/discord/stores/StoreAnalytics$onScreenViewed$1;->$screenViewed:Lcom/discord/stores/StoreAnalytics$ScreenViewed;
invoke-virtual {v1}, Lcom/discord/stores/StoreAnalytics$ScreenViewed;->getTimestamp()J
move-result-wide v1
invoke-static {v0, v1, v2}, Lcom/discord/utilities/analytics/AnalyticsTracker;->appUiViewed(Ljava/lang/String;J)V
return-void
.end method