176 lines
6.1 KiB
Smali
176 lines
6.1 KiB
Smali
.class public final Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;
|
|
.super Ljava/lang/Object;
|
|
.source "EmojiPickerNavigator.kt"
|
|
|
|
|
|
# static fields
|
|
.field public static final ARG_EMOJI_CONTEXT_TYPE:Ljava/lang/String; = "EMOJI_CONTEXT_TYPE"
|
|
|
|
.field public static final ARG_MODE:Ljava/lang/String; = "MODE"
|
|
|
|
.field public static final INSTANCE:Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;
|
|
|
|
.field public static final INTENT_EXTRA_EMOJI_CONTEXT_TYPE:Ljava/lang/String; = "INTENT_EXTRA_EMOJI_CONTEXT_TYPE"
|
|
|
|
.field public static final RESULT_EMOJI_PAYLOAD:Ljava/lang/String; = "RESULT_EMOJI_PAYLOAD"
|
|
|
|
.field public static final RESULT_METADATA_PAYLOAD:Ljava/lang/String; = "RESULT_METADATA_PAYLOAD"
|
|
|
|
.field public static final state:Lrx/subjects/BehaviorSubject;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;-><init>()V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;->INSTANCE:Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;
|
|
|
|
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "BehaviorSubject.create(false)"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;->state:Lrx/subjects/BehaviorSubject;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final getStateObservable()Lrx/Observable;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/Observable<",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;->state:Lrx/subjects/BehaviorSubject;
|
|
|
|
invoke-virtual {v0}, Lrx/Observable;->q()Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "state.distinctUntilChanged()"
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final launchBottomSheet(Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/emoji/EmojiPickerListener;Lcom/discord/widgets/chat/input/emoji/EmojiContextType;Lkotlin/jvm/functions/Function0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroidx/fragment/app/FragmentManager;",
|
|
"Lcom/discord/widgets/chat/input/emoji/EmojiPickerListener;",
|
|
"Lcom/discord/widgets/chat/input/emoji/EmojiContextType;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lkotlin/Unit;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
sget-object v0, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiPickerSheet;->Companion:Lcom/discord/widgets/chat/input/emoji/WidgetEmojiPickerSheet$Companion;
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiPickerSheet$Companion;->show(Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/emoji/EmojiPickerListener;Lcom/discord/widgets/chat/input/emoji/EmojiContextType;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p0, "fragmentManager"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public static synthetic launchBottomSheet$default(Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/emoji/EmojiPickerListener;Lcom/discord/widgets/chat/input/emoji/EmojiContextType;Lkotlin/jvm/functions/Function0;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p4, p4, 0x8
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_0
|
|
invoke-static {p0, p1, p2, p3}, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;->launchBottomSheet(Landroidx/fragment/app/FragmentManager;Lcom/discord/widgets/chat/input/emoji/EmojiPickerListener;Lcom/discord/widgets/chat/input/emoji/EmojiContextType;Lkotlin/jvm/functions/Function0;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final createInline(Lcom/discord/widgets/chat/input/emoji/EmojiContextType;)Lcom/discord/widgets/chat/input/emoji/EmojiPicker;
|
|
.locals 3
|
|
|
|
new-instance v0, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
|
|
|
|
sget-object v1, Lcom/discord/widgets/chat/input/emoji/EmojiPickerMode;->INLINE:Lcom/discord/widgets/chat/input/emoji/EmojiPickerMode;
|
|
|
|
const-string v2, "MODE"
|
|
|
|
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
|
|
|
|
const-string v1, "EMOJI_CONTEXT_TYPE"
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
|
|
|
|
new-instance p1, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiPicker;
|
|
|
|
invoke-direct {p1}, Lcom/discord/widgets/chat/input/emoji/WidgetEmojiPicker;-><init>()V
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final getState()Lrx/subjects/BehaviorSubject;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Lcom/discord/widgets/chat/input/emoji/EmojiPickerNavigator;->state:Lrx/subjects/BehaviorSubject;
|
|
|
|
return-object v0
|
|
.end method
|