2020-05-17 12:40:10 +00:00
|
|
|
.class public final Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;
|
2020-07-25 00:57:58 +00:00
|
|
|
.super Lj0/n/c/i;
|
2020-05-17 12:40:10 +00:00
|
|
|
.source "DiscordOverlayService.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Lcom/discord/utilities/voice/DiscordOverlayService;->createVoiceBubble()Lcom/discord/overlay/views/OverlayBubbleWrap;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x19
|
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-07-25 00:57:58 +00:00
|
|
|
"Lj0/n/c/i;",
|
2020-05-17 12:40:10 +00:00
|
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
|
|
"Lcom/discord/overlay/views/OverlayBubbleWrap;",
|
|
|
|
"Lcom/discord/overlay/views/OverlayDialog;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $anchorTag:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final synthetic this$0:Lcom/discord/utilities/voice/DiscordOverlayService;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/utilities/voice/DiscordOverlayService;Ljava/lang/String;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;->this$0:Lcom/discord/utilities/voice/DiscordOverlayService;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;->$anchorTag:Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-direct {p0, p1}, Lj0/n/c/i;-><init>(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final invoke(Lcom/discord/overlay/views/OverlayBubbleWrap;)Lcom/discord/overlay/views/OverlayDialog;
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;->this$0:Lcom/discord/utilities/voice/DiscordOverlayService;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/voice/DiscordOverlayService;->access$createMenu(Lcom/discord/utilities/voice/DiscordOverlayService;)Lcom/discord/overlay/views/OverlayDialog;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-08-20 22:29:33 +00:00
|
|
|
const v2, 0x7f0a0676
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "dialogBubble.findViewByI\u2026erlay_linked_anchor_view)"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {v2, v3}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
instance-of v3, p1, Lf/a/n/b0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
|
|
|
|
move-object v3, v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
move-object v3, p1
|
|
|
|
|
|
|
|
:goto_0
|
2020-07-08 16:44:49 +00:00
|
|
|
check-cast v3, Lf/a/n/b0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v3}, Lf/a/n/b0;->getImageView$app_productionDiscordExternalRelease()Lcom/facebook/drawee/view/SimpleDraweeView;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
if-eqz v3, :cond_9
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
instance-of v5, v4, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
|
|
|
|
move-object v4, v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast v4, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
|
|
|
|
iget v4, v4, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
instance-of v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-nez v7, :cond_3
|
|
|
|
|
|
|
|
move-object v6, v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
check-cast v6, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-eqz v6, :cond_4
|
|
|
|
|
|
|
|
iget v6, v6, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
instance-of v8, v7, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-nez v8, :cond_5
|
|
|
|
|
|
|
|
move-object v7, v0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
check-cast v7, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-eqz v7, :cond_6
|
|
|
|
|
|
|
|
iget v7, v7, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
instance-of v8, v3, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-nez v8, :cond_7
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
move-object v0, v3
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
|
|
|
|
iget v5, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {v0, v4, v6, v7, v5}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/widget/FrameLayout;->getWidth()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
iget v5, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
sub-int/2addr v4, v0
|
|
|
|
|
|
|
|
iput v4, v3, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/widget/FrameLayout;->getHeight()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput p1, v3, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->requestLayout()V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;->$anchorTag:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v2, p1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
const-string p1, "srcBubble"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/overlay/views/OverlayBubbleWrap;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/voice/DiscordOverlayService$createVoiceBubble$1;->invoke(Lcom/discord/overlay/views/OverlayBubbleWrap;)Lcom/discord/overlay/views/OverlayDialog;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|