188 lines
5.7 KiB
Smali
188 lines
5.7 KiB
Smali
|
.class final Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1$2;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetIncomingShare.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lrx/functions/Func5;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1;->call(Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;)Lrx/Observable;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T1:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"T2:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"T3:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"T4:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"T5:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"R:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/lang/Object;",
|
||
|
"Lrx/functions/Func5<",
|
||
|
"TT1;TT2;TT3;TT4;TT5;TR;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic $receiver:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1$2;->$receiver:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final call(Lcom/discord/widgets/share/WidgetIncomingShare$ContentModel;Ljava/lang/String;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/share/WidgetIncomingShare$Model;
|
||
|
.locals 12
|
||
|
|
||
|
move-object v0, p0
|
||
|
|
||
|
iget-object v1, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1$2;->$receiver:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
|
||
|
|
||
|
instance-of v2, v1, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemGuild;
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
check-cast v1, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemGuild;
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemGuild;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuild;->getMaxFileSizeMB()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
instance-of v2, v1, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemChannel;
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
check-cast v1, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemChannel;
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemChannel;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelGuild;->getMaxFileSizeMB()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
const-string v2, "meUser"
|
||
|
|
||
|
move-object/from16 v3, p5
|
||
|
|
||
|
invoke-static {v3, v2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual/range {p5 .. p5}, Lcom/discord/models/domain/ModelUser;->isPremium()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_2
|
||
|
|
||
|
const/16 v2, 0x32
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
const/16 v2, 0x8
|
||
|
|
||
|
:goto_1
|
||
|
new-instance v11, Lcom/discord/widgets/share/WidgetIncomingShare$Model;
|
||
|
|
||
|
const-string v4, "contentModel"
|
||
|
|
||
|
move-object v5, p1
|
||
|
|
||
|
invoke-static {p1, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v4, "searchModel"
|
||
|
|
||
|
move-object v6, p3
|
||
|
|
||
|
invoke-static {p3, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v7, v0, Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1$2;->$receiver:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
|
||
|
|
||
|
const-string v4, "isOnCooldown"
|
||
|
|
||
|
move-object/from16 v8, p4
|
||
|
|
||
|
invoke-static {v8, v4}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual/range {p4 .. p4}, Ljava/lang/Boolean;->booleanValue()Z
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
invoke-virtual/range {p5 .. p5}, Lcom/discord/models/domain/ModelUser;->isPremium()Z
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
move-object v3, v11
|
||
|
|
||
|
move-object v4, p1
|
||
|
|
||
|
move-object v5, p2
|
||
|
|
||
|
invoke-direct/range {v3 .. v10}, Lcom/discord/widgets/share/WidgetIncomingShare$Model;-><init>(Lcom/discord/widgets/share/WidgetIncomingShare$ContentModel;Ljava/lang/String;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;ZIZ)V
|
||
|
|
||
|
return-object v11
|
||
|
.end method
|
||
|
|
||
|
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Lcom/discord/widgets/share/WidgetIncomingShare$ContentModel;
|
||
|
|
||
|
check-cast p2, Ljava/lang/String;
|
||
|
|
||
|
check-cast p3, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;
|
||
|
|
||
|
check-cast p4, Ljava/lang/Boolean;
|
||
|
|
||
|
check-cast p5, Lcom/discord/models/domain/ModelUser;
|
||
|
|
||
|
invoke-virtual/range {p0 .. p5}, Lcom/discord/widgets/share/WidgetIncomingShare$onViewBoundOrOnResume$1$2;->call(Lcom/discord/widgets/share/WidgetIncomingShare$ContentModel;Ljava/lang/String;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;Ljava/lang/Boolean;Lcom/discord/models/domain/ModelUser;)Lcom/discord/widgets/share/WidgetIncomingShare$Model;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|