127 lines
3.5 KiB
Smali
127 lines
3.5 KiB
Smali
.class final Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetSettingsAppearance.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Func3;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion;->get()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;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Func3<",
|
|
"TT1;TT2;TT3;TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;->INSTANCE:Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final call(Lcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/lang/Boolean;)Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model;
|
|
.locals 2
|
|
|
|
const-string v0, "light"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "isInAprilFoolsExperiment"
|
|
|
|
invoke-static {p3, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p2, "dark"
|
|
|
|
:cond_0
|
|
new-instance v0, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model;
|
|
|
|
const-string v1, "currentTheme"
|
|
|
|
invoke-static {p2, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "meUser"
|
|
|
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {p3}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p3
|
|
|
|
xor-int/lit8 p3, p3, 0x1
|
|
|
|
invoke-direct {v0, p2, p1, p3}, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model;-><init>(Ljava/lang/String;ZZ)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final bridge synthetic call(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lcom/discord/models/domain/ModelUser;
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
check-cast p3, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model$Companion$get$2;->call(Lcom/discord/models/domain/ModelUser;Ljava/lang/String;Ljava/lang/Boolean;)Lcom/discord/widgets/settings/WidgetSettingsAppearance$Model;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|