2020-04-27 20:53:11 +00:00
|
|
|
.class public final Le/a/k/z;
|
2020-04-27 21:50:40 +00:00
|
|
|
.super Lcom/discord/overlay/views/OverlayBubbleWrap;
|
2020-04-25 00:39:25 +00:00
|
|
|
.source "OverlayVoiceBubble.kt"
|
2019-08-30 20:04:20 +00:00
|
|
|
|
|
|
|
# interfaces
|
2020-04-27 21:50:40 +00:00
|
|
|
.implements Lcom/discord/app/AppComponent;
|
2019-08-30 20:04:20 +00:00
|
|
|
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
# static fields
|
|
|
|
.field public static final synthetic u:[Lkotlin/reflect/KProperty;
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final s:Lrx/subjects/Subject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/Subject<",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final t:Lkotlin/properties/ReadOnlyProperty;
|
2019-08-30 20:04:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-04-25 00:39:25 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2020-04-27 21:50:40 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v1, Lx/u/b/u;
|
|
|
|
|
|
|
|
const-class v2, Le/a/k/z;
|
|
|
|
|
|
|
|
invoke-static {v2}, Lx/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lx/y/b;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "imageView"
|
|
|
|
|
|
|
|
const-string v4, "getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lx/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v2, Lx/u/b/w;->a:Lx/u/b/x;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Lx/u/b/x;->property1(Lx/u/b/t;)Lx/y/d;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
sput-object v0, Le/a/k/z;->u:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
2020-04-25 00:39:25 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/overlay/views/OverlayBubbleWrap;-><init>(Landroid/content/Context;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const v0, 0x7f0d0090
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-static {}, Lrx/subjects/PublishSubject;->o()Lrx/subjects/PublishSubject;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string v0, "PublishSubject.create()"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lx/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Le/a/k/z;->s:Lrx/subjects/Subject;
|
|
|
|
|
2020-05-01 21:13:47 +00:00
|
|
|
const p1, 0x7f0a05e5
|
2020-04-27 21:50:40 +00:00
|
|
|
|
2020-05-01 21:13:47 +00:00
|
|
|
invoke-static {p0, p1}, Le/n/a/j/a;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-04-27 21:50:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Le/a/k/z;->t:Lkotlin/properties/ReadOnlyProperty;
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
return-void
|
2020-04-27 21:50:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "context"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-04-25 00:39:25 +00:00
|
|
|
.end method
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
.method public static final synthetic a(Le/a/k/z;Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Le/a/k/z;->e()V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Le/a/k/z;->getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
move-result-object v1
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/16 v5, 0x1c
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v0 .. v6}, Lcom/discord/utilities/icon/IconUtils;->setIcon$default(Landroid/widget/ImageView;Lcom/discord/models/domain/ModelUser;ILkotlin/jvm/functions/Function1;Lcom/discord/utilities/images/MGImages$ChangeDetector;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Le/a/k/z;->d()V
|
|
|
|
|
|
|
|
:goto_0
|
2020-01-22 01:17:22 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-01-28 00:59:01 +00:00
|
|
|
# virtual methods
|
2020-04-27 21:50:40 +00:00
|
|
|
.method public a(Landroid/view/View;)V
|
|
|
|
.locals 0
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayBubbleWrap;->a(Landroid/view/View;)V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-virtual {p0}, Le/a/k/z;->d()V
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
return-void
|
2020-01-22 01:17:22 +00:00
|
|
|
|
2020-04-25 00:39:25 +00:00
|
|
|
:cond_0
|
2020-04-27 21:50:40 +00:00
|
|
|
const-string p1, "targetView"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Z)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Le/a/k/z;->e()V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayBubbleWrap;->a(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
.method public final d()V
|
|
|
|
.locals 3
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-virtual {p0}, Le/a/k/z;->getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->animate()Landroid/view/ViewPropertyAnimator;
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
const-wide/16 v1, 0x64
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->start()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
.method public final e()V
|
|
|
|
.locals 3
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-virtual {p0}, Le/a/k/z;->getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->animate()Landroid/view/ViewPropertyAnimator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-wide/16 v1, 0xc8
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/ViewPropertyAnimator;->setDuration(J)Landroid/view/ViewPropertyAnimator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/high16 v1, 0x3f000000 # 0.5f
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewPropertyAnimator;->alpha(F)Landroid/view/ViewPropertyAnimator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/view/ViewPropertyAnimator;->start()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Le/a/k/z;->t:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Le/a/k/z;->u:[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/facebook/drawee/view/SimpleDraweeView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getPaused()Lrx/subjects/Subject;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Lrx/subjects/Subject<",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
"Ljava/lang/Void;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Le/a/k/z;->s:Lrx/subjects/Subject;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onAttachedToWindow()V
|
|
|
|
.locals 12
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->onAttachedToWindow()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 v1, Le/a/k/z$a;->d:Le/a/k/z$a;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->k(Lf0/l/i;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "StoreStream\n .get\u2026d()\n }\n }"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lx/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 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
invoke-static {v0, p0, v1, v2, v1}, 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, Le/a/k/z;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-instance v9, Le/a/k/z$b;
|
|
|
|
|
|
|
|
invoke-direct {v9, p0}, Le/a/k/z$b;-><init>(Le/a/k/z;)V
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/16 v10, 0x1c
|
|
|
|
|
|
|
|
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
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getWindowLayoutParams()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/view/WindowManager$LayoutParams;->x:I
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getAllowedAreaBounds()Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/graphics/Rect;->centerX()I
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
|
|
|
|
const v2, 0x7fffffff
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
:cond_0
|
|
|
|
const/high16 v0, -0x80000000
|
|
|
|
|
|
|
|
const/high16 v2, -0x80000000
|
2020-04-25 00:39:25 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayBubbleWrap;->onConfigurationChanged(Landroid/content/res/Configuration;)V
|
2020-04-25 00:39:25 +00:00
|
|
|
|
2020-04-27 21:50:40 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getWindowLayoutParams()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget v3, p1, Landroid/view/WindowManager$LayoutParams;->y:I
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/overlay/views/OverlayBubbleWrap;->a(Lcom/discord/overlay/views/OverlayBubbleWrap;IILandroid/graphics/Rect;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getSpringAnimationX()Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/dynamicanimation/animation/SpringAnimation;->skipToEnd()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getSpringAnimationY()Landroidx/dynamicanimation/animation/SpringAnimation;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/dynamicanimation/animation/SpringAnimation;->skipToEnd()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onDetachedFromWindow()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Le/a/k/z;->getPaused()Lrx/subjects/Subject;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Lf0/g;->onNext(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->onDetachedFromWindow()V
|
|
|
|
|
|
|
|
return-void
|
2019-08-30 20:04:20 +00:00
|
|
|
.end method
|