2019-12-06 03:29:40 +00:00
|
|
|
.class public final Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;
|
2020-04-17 19:35:49 +00:00
|
|
|
.super Ly/u/b/k;
|
2019-07-24 11:27:29 +00:00
|
|
|
.source "WidgetChannelsList.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/widgets/channels/list/WidgetChannelsList;->onViewBound(Landroid/view/View;)V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x19
|
2019-07-24 11:27:29 +00:00
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-04-17 19:35:49 +00:00
|
|
|
"Ly/u/b/k;",
|
2019-07-24 11:27:29 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/models/domain/ModelChannel;",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic $view:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/channels/list/WidgetChannelsList;
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# direct methods
|
2020-03-27 22:23:51 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/channels/list/WidgetChannelsList;Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->this$0:Lcom/discord/widgets/channels/list/WidgetChannelsList;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->$view:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-direct {p0, p1}, Ly/u/b/k;-><init>(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->invoke(Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final invoke(Lcom/discord/models/domain/ModelChannel;)V
|
2020-04-17 17:35:24 +00:00
|
|
|
.locals 12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
if-eqz p1, :cond_3
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreUser;->getMe()Lcom/discord/models/domain/ModelUser$Me;
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-26 23:31:08 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelUser;->isNewUser()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2020-04-17 17:35:24 +00:00
|
|
|
sget-object v0, Lr;->g:Lr$a;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->$view:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "view.context"
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {v2, v3}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {v0, v2}, Lr$a;->a(Landroid/content/Context;)Z
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->isPrivate()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
sget-object v0, Lcom/discord/widgets/voice/call/WidgetPrivateCall;->Companion:Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
move-result-wide v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->$view:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {p1, v3}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-virtual {v0, v1, v2, p1}, Lcom/discord/widgets/voice/call/WidgetPrivateCall$Companion;->launch(JLandroid/content/Context;)V
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
goto :goto_1
|
2020-03-26 05:26:27 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
:cond_1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
sget-object v0, Lr;->g:Lr$a;
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->this$0:Lcom/discord/widgets/channels/list/WidgetChannelsList;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lr$a;->a(Landroidx/fragment/app/Fragment;J)V
|
2020-03-27 22:23:51 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
sget-object v4, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelsList$onViewBound$3;->$view:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {v5, v3}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
|
|
|
|
move-result-wide v6
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const/4 v9, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const/16 v10, 0xc
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v4 .. v11}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;->launch$default(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;Landroid/content/Context;JLjava/lang/String;ZILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
:goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string p1, "channel"
|
|
|
|
|
2020-04-17 19:35:49 +00:00
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|