2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/tooltips/DefaultTooltipCreator;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "DefaultTooltipCreator.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final a:Lcom/discord/tooltips/TooltipManager;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/discord/tooltips/TooltipManager;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const-string/jumbo v0, "tooltipManager"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p1, v0}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/tooltips/DefaultTooltipCreator;->a:Lcom/discord/tooltips/TooltipManager;
|
|
|
|
|
|
|
|
return-void
|
2020-09-16 23:45:23 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Landroid/view/View;Ljava/lang/String;Lcom/discord/tooltips/TooltipManager$Tooltip;Lcom/discord/floating_view_manager/FloatingViewGravity;IIZLrx/Observable;)V
|
|
|
|
.locals 11
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/view/View;",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Lcom/discord/tooltips/TooltipManager$Tooltip;",
|
|
|
|
"Lcom/discord/floating_view_manager/FloatingViewGravity;",
|
|
|
|
"IIZ",
|
|
|
|
"Lrx/Observable<",
|
|
|
|
"Lkotlin/Unit;",
|
|
|
|
">;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p2
|
|
|
|
|
|
|
|
move-object v4, p3
|
|
|
|
|
|
|
|
move-object v5, p4
|
|
|
|
|
|
|
|
const-string v2, "anchorView"
|
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p1, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const-string/jumbo v2, "tooltipText"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p2, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const-string/jumbo v2, "tooltip"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p3, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const-string/jumbo v2, "tooltipGravity"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {p4, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
const-string v2, "componentPausedObservable"
|
|
|
|
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v9, v2}, Lc0/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
sget-object v6, Lcom/discord/floating_view_manager/FloatingViewGravity;->TOP:Lcom/discord/floating_view_manager/FloatingViewGravity;
|
|
|
|
|
|
|
|
if-ne v5, v6, :cond_0
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const v6, 0x7f0d0033
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
2020-09-14 18:37:20 +00:00
|
|
|
|
|
|
|
:cond_0
|
2020-09-23 03:12:49 +00:00
|
|
|
const v6, 0x7f0d0032
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getRootView()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
const-string v8, "null cannot be cast to non-null type android.view.ViewGroup"
|
|
|
|
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
|
|
|
|
check-cast v7, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v2, v6, v7, v10}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
move-object v6, v2
|
|
|
|
|
|
|
|
check-cast v6, Landroid/view/ViewGroup;
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const v2, 0x7f0a02f4
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {v6, v2}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroid/widget/TextView;
|
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
const-string/jumbo v7, "tooltipTextView"
|
2020-09-16 23:45:23 +00:00
|
|
|
|
2020-09-23 03:12:49 +00:00
|
|
|
invoke-static {v2, v7}, Lc0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/tooltips/DefaultTooltipCreator$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p3}, Lcom/discord/tooltips/DefaultTooltipCreator$a;-><init>(Lcom/discord/tooltips/DefaultTooltipCreator;Lcom/discord/tooltips/TooltipManager$Tooltip;)V
|
|
|
|
|
|
|
|
invoke-virtual {v6, v1}, Landroid/view/ViewGroup;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/discord/tooltips/DefaultTooltipCreator;->a:Lcom/discord/tooltips/TooltipManager;
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move-object v3, v6
|
|
|
|
|
|
|
|
move-object v4, p3
|
|
|
|
|
|
|
|
move-object v5, p4
|
|
|
|
|
|
|
|
move/from16 v6, p5
|
|
|
|
|
|
|
|
move/from16 v7, p6
|
|
|
|
|
|
|
|
move/from16 v8, p7
|
|
|
|
|
|
|
|
move-object/from16 v9, p8
|
|
|
|
|
|
|
|
invoke-virtual/range {v1 .. v9}, Lcom/discord/tooltips/TooltipManager;->d(Landroid/view/View;Landroid/view/View;Lcom/discord/tooltips/TooltipManager$Tooltip;Lcom/discord/floating_view_manager/FloatingViewGravity;IIZLrx/Observable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance v1, Ljava/lang/NullPointerException;
|
|
|
|
|
|
|
|
invoke-direct {v1, v8}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
2020-09-14 18:37:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:cond_2
|
|
|
|
new-instance v1, Ljava/lang/NullPointerException;
|
2020-09-14 18:37:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-direct {v1, v8}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
2020-09-14 18:37:20 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
throw v1
|
2020-09-14 18:37:20 +00:00
|
|
|
.end method
|