apkfuckery/com.discord/smali/f/a/k/l.smali

589 lines
16 KiB
Smali
Raw Normal View History

2020-04-17 17:35:24 +00:00
.class public final Lf/a/k/l;
2020-04-24 23:41:34 +00:00
.super Lf/a/k/i;
2020-03-19 04:19:10 +00:00
.source "OverlayMenuBubbleDialog.kt"
2019-12-06 03:29:40 +00:00
# interfaces
2020-04-24 23:41:34 +00:00
.implements Lcom/discord/app/AppComponent;
2020-03-19 04:19:10 +00:00
# annotations
2020-04-24 23:41:34 +00:00
.annotation system Ldalvik/annotation/MemberClasses;
2020-03-19 04:19:10 +00:00
value = {
2020-04-24 23:41:34 +00:00
Lf/a/k/l$a;
2020-03-19 04:19:10 +00:00
}
.end annotation
# static fields
2020-04-24 23:41:34 +00:00
.field public static final synthetic z:[Lkotlin/reflect/KProperty;
# instance fields
.field public final u:Lkotlin/properties/ReadOnlyProperty;
.field public final v:Lkotlin/properties/ReadOnlyProperty;
.field public final w:Lkotlin/properties/ReadOnlyProperty;
.field public final x:Lkotlin/properties/ReadOnlyProperty;
.field public final y:Lcom/discord/utilities/views/SimpleRecyclerAdapter;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/discord/utilities/views/SimpleRecyclerAdapter<",
"Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;",
"Lf/a/k/l$a;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
# direct methods
2020-03-19 04:19:10 +00:00
.method public static constructor <clinit>()V
2020-04-24 23:41:34 +00:00
.locals 6
const/4 v0, 0x4
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Ly/u/b/u;
const-class v2, Lf/a/k/l;
invoke-static {v2}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v2
const-string v3, "overlayMenu"
const-string v4, "getOverlayMenu()Lcom/discord/views/OverlayMenuView;"
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v2, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v2, v1}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
const/4 v2, 0x0
aput-object v1, v0, v2
const/4 v1, 0x1
new-instance v2, Ly/u/b/u;
const-class v3, Lf/a/k/l;
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "header"
const-string v5, "getHeader()Landroid/view/View;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Ly/u/b/u;
const-class v3, Lf/a/k/l;
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "overflowTv"
const-string v5, "getOverflowTv()Landroid/widget/TextView;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
const/4 v1, 0x3
new-instance v2, Ly/u/b/u;
const-class v3, Lf/a/k/l;
invoke-static {v3}, Ly/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "membersRv"
const-string v5, "getMembersRv()Landroidx/recyclerview/widget/RecyclerView;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/x;->a:Ly/u/b/y;
invoke-virtual {v3, v2}, Ly/u/b/y;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
sput-object v0, Lf/a/k/l;->z:[Lkotlin/reflect/KProperty;
return-void
.end method
.method public constructor <init>(Landroid/content/Context;)V
.locals 3
const/4 v0, 0x0
if-eqz p1, :cond_0
invoke-direct {p0, p1}, Lf/a/k/i;-><init>(Landroid/content/Context;)V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object p1
const v1, 0x7f0d008b
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-static {p1, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
const/4 p1, 0x0
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->setClipChildren(Z)V
const p1, 0x7f0a05d4
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lf/a/k/l;->u:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a05cf
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lf/a/k/l;->v:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a05d2
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lf/a/k/l;->w:Lkotlin/properties/ReadOnlyProperty;
const p1, 0x7f0a05d3
invoke-static {p0, p1}, Lf/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object p1
iput-object p1, p0, Lf/a/k/l;->x:Lkotlin/properties/ReadOnlyProperty;
new-instance p1, Lcom/discord/utilities/views/SimpleRecyclerAdapter;
sget-object v1, Lf/a/k/m;->d:Lf/a/k/m;
const/4 v2, 0x1
invoke-direct {p1, v0, v1, v2, v0}, Lcom/discord/utilities/views/SimpleRecyclerAdapter;-><init>(Ljava/util/List;Lkotlin/jvm/functions/Function2;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
iput-object p1, p0, Lf/a/k/l;->y:Lcom/discord/utilities/views/SimpleRecyclerAdapter;
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
move-result-object p1
new-instance v0, Lf/a/k/k;
invoke-direct {v0, p0}, Lf/a/k/k;-><init>(Lf/a/k/l;)V
invoke-virtual {p1, v0}, Lcom/discord/views/OverlayMenuView;->setOnDismissRequested$app_productionDiscordExternalRelease(Lkotlin/jvm/functions/Function0;)V
2020-01-22 01:17:22 +00:00
2020-03-10 23:21:53 +00:00
return-void
2020-04-24 23:41:34 +00:00
:cond_0
const-string p1, "context"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw v0
2020-01-28 00:59:01 +00:00
.end method
2020-01-22 01:17:22 +00:00
2020-04-24 23:41:34 +00:00
.method public static final synthetic a(Lf/a/k/l;Ljava/util/List;I)V
2020-03-19 04:19:10 +00:00
.locals 1
2020-01-22 01:17:22 +00:00
2020-04-24 23:41:34 +00:00
iget-object v0, p0, Lf/a/k/l;->y:Lcom/discord/utilities/views/SimpleRecyclerAdapter;
invoke-virtual {v0, p1}, Lcom/discord/utilities/views/SimpleRecyclerAdapter;->setData(Ljava/util/List;)V
if-nez p2, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
new-instance p1, Ljava/lang/StringBuilder;
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
const/16 v0, 0x2b
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
2020-03-19 04:19:10 +00:00
2020-04-24 23:41:34 +00:00
:goto_0
invoke-direct {p0}, Lf/a/k/l;->getOverflowTv()Landroid/widget/TextView;
move-result-object p0
invoke-static {p0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
2020-03-14 02:12:46 +00:00
2020-03-14 04:13:36 +00:00
return-void
2020-03-10 23:21:53 +00:00
.end method
2020-01-28 00:59:01 +00:00
2020-04-24 23:41:34 +00:00
.method private final getHeader()Landroid/view/View;
.locals 3
iget-object v0, p0, Lf/a/k/l;->v:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lf/a/k/l;->z:[Lkotlin/reflect/KProperty;
const/4 v2, 0x1
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
return-object v0
.end method
.method private final getMembersRv()Landroidx/recyclerview/widget/RecyclerView;
.locals 3
iget-object v0, p0, Lf/a/k/l;->x:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lf/a/k/l;->z:[Lkotlin/reflect/KProperty;
const/4 v2, 0x3
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
return-object v0
.end method
.method private final getOverflowTv()Landroid/widget/TextView;
.locals 3
iget-object v0, p0, Lf/a/k/l;->w:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lf/a/k/l;->z:[Lkotlin/reflect/KProperty;
const/4 v2, 0x2
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
return-object v0
.end method
.method private final getOverlayMenu()Lcom/discord/views/OverlayMenuView;
.locals 3
iget-object v0, p0, Lf/a/k/l;->u:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lf/a/k/l;->z:[Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/views/OverlayMenuView;
return-object v0
.end method
2020-01-28 00:59:01 +00:00
2020-03-19 04:19:10 +00:00
# virtual methods
2020-04-24 23:41:34 +00:00
.method public getClosingAnimator()Landroid/animation/Animator;
.locals 4
2020-04-10 14:32:51 +00:00
2020-04-24 23:41:34 +00:00
new-instance v0, Landroid/animation/AnimatorSet;
invoke-direct {v0}, Landroid/animation/AnimatorSet;-><init>()V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
move-result-object v1
const/high16 v2, 0x10e0000
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getInteger(I)I
move-result v1
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
int-to-long v1, v1
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-virtual {v0, v1, v2}, Landroid/animation/AnimatorSet;->setStartDelay(J)V
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
const/4 v1, 0x2
new-array v1, v1, [Landroid/animation/Animator;
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v2
const v3, 0x7f020012
invoke-static {v2, v3}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v2
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
const/4 v3, 0x0
aput-object v2, v1, v3
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v2
const v3, 0x7f020014
invoke-static {v2, v3}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v2
invoke-direct {p0}, Lf/a/k/l;->getHeader()Landroid/view/View;
move-result-object v3
invoke-virtual {v2, v3}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
const/4 v3, 0x1
aput-object v2, v1, v3
invoke-virtual {v0, v1}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
return-object v0
.end method
.method public onAttachedToWindow()V
.locals 12
invoke-super {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->onAttachedToWindow()V
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
move-result-object v0
2020-03-19 04:19:10 +00:00
const/4 v1, 0x0
2020-04-24 23:41:34 +00:00
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setAlpha(F)V
2020-04-10 14:32:51 +00:00
2020-04-24 23:41:34 +00:00
invoke-direct {p0}, Lf/a/k/l;->getHeader()Landroid/view/View;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
move-result-object v0
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-virtual {v0, v1}, Landroid/view/View;->setAlpha(F)V
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
new-instance v0, Landroid/animation/AnimatorSet;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-direct {v0}, Landroid/animation/AnimatorSet;-><init>()V
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
const/4 v1, 0x2
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
new-array v2, v1, [Landroid/animation/Animator;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
move-result-object v3
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-virtual {v3}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
move-result-object v3
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
const v4, 0x7f020013
invoke-static {v3, v4}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v3
invoke-direct {p0}, Lf/a/k/l;->getOverlayMenu()Lcom/discord/views/OverlayMenuView;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
const/4 v4, 0x0
aput-object v3, v2, v4
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v3
const v4, 0x7f020011
invoke-static {v3, v4}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v3
invoke-direct {p0}, Lf/a/k/l;->getHeader()Landroid/view/View;
move-result-object v4
invoke-virtual {v3, v4}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
const/4 v4, 0x1
aput-object v3, v2, v4
invoke-virtual {v0, v2}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
move-result-object v2
const/high16 v3, 0x10e0000
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getInteger(I)I
move-result v2
int-to-long v2, v2
invoke-virtual {v0, v2, v3}, Landroid/animation/AnimatorSet;->setStartDelay(J)V
invoke-virtual {v0}, Landroid/animation/AnimatorSet;->start()V
invoke-direct {p0}, Lf/a/k/l;->getMembersRv()Landroidx/recyclerview/widget/RecyclerView;
move-result-object v0
iget-object v2, p0, Lf/a/k/l;->y:Lcom/discord/utilities/views/SimpleRecyclerAdapter;
invoke-virtual {v0, v2}, Landroidx/recyclerview/widget/RecyclerView;->setAdapter(Landroidx/recyclerview/widget/RecyclerView$Adapter;)V
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getVoiceChannelSelected()Lcom/discord/stores/StoreVoiceChannelSelected;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreVoiceChannelSelected;->getId()Lrx/Observable;
move-result-object v0
sget-object v2, Lf/a/k/l$b;->d:Lf/a/k/l$b;
invoke-virtual {v0, v2}, Lrx/Observable;->k(Lg0/l/i;)Lrx/Observable;
move-result-object v0
sget-object v2, Lf/a/k/l$c;->d:Lf/a/k/l$c;
invoke-virtual {v0, v2}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
move-result-object v0
const-string v2, "StoreStream\n .get\u2026- 3\n }\n }"
invoke-static {v0, v2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
move-result-object v0
const/4 v2, 0x0
invoke-static {v0, p0, v2, v1, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
move-result-object v3
const-class v4, Lf/a/k/l;
new-instance v9, Lf/a/k/l$d;
invoke-direct {v9, p0}, Lf/a/k/l$d;-><init>(Lf/a/k/l;)V
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/16 v10, 0x1e
const/4 v11, 0x0
invoke-static/range {v3 .. v11}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
return-void
2020-03-14 04:13:36 +00:00
.end method
2020-03-14 02:12:46 +00:00
2020-04-24 23:41:34 +00:00
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
2020-03-14 04:13:36 +00:00
.locals 0
2020-03-14 02:12:46 +00:00
2020-04-24 23:41:34 +00:00
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayDialog;->onConfigurationChanged(Landroid/content/res/Configuration;)V
2020-03-19 04:19:10 +00:00
2020-04-24 23:41:34 +00:00
invoke-virtual {p0}, Lf/a/k/i;->getOnDialogClosed()Lkotlin/jvm/functions/Function1;
2020-04-10 14:32:51 +00:00
2020-04-23 18:39:17 +00:00
move-result-object p1
2020-04-23 17:38:59 +00:00
2020-04-24 23:41:34 +00:00
invoke-interface {p1, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
return-void
2019-12-06 03:29:40 +00:00
.end method