2020-07-08 16:44:49 +00:00
|
|
|
.class public Lcom/discord/tooltips/TooltipManager;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "TooltipManager.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-07-14 22:43:59 +00:00
|
|
|
Lcom/discord/tooltips/TooltipManager$Tooltip;,
|
2020-07-08 16:44:49 +00:00
|
|
|
Lcom/discord/tooltips/TooltipManager$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final a:Ljava/util/Map;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Map<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final b:Lf/a/l/a;
|
|
|
|
|
|
|
|
.field public final c:Ljava/util/Set;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/Set<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public final d:I
|
|
|
|
|
|
|
|
.field public final e:Lf/a/c/a;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lf/a/l/a;Ljava/util/Set;ILf/a/c/a;I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p5, p5, 0x4
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
|
|
|
const/4 p3, 0x1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/tooltips/TooltipManager;->b:Lf/a/l/a;
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/discord/tooltips/TooltipManager;->c:Ljava/util/Set;
|
|
|
|
|
|
|
|
iput p3, p0, Lcom/discord/tooltips/TooltipManager;->d:I
|
|
|
|
|
|
|
|
iput-object p4, p0, Lcom/discord/tooltips/TooltipManager;->e:Lf/a/c/a;
|
|
|
|
|
|
|
|
new-instance p1, Ljava/util/LinkedHashMap;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Ljava/util/LinkedHashMap;-><init>()V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/tooltips/TooltipManager;->a:Ljava/util/Map;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "floatingViewManager"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw p5
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "shownTooltipNames"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw p5
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "acknowledgedTooltipsCache"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
throw p5
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public final a(Lcom/discord/tooltips/TooltipManager$Tooltip;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 2
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/tooltips/TooltipManager;->c(Lcom/discord/tooltips/TooltipManager$Tooltip;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$Tooltip;->getCacheKey()Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/tooltips/TooltipManager;->b:Lf/a/l/a;
|
|
|
|
|
|
|
|
iget-object v0, v0, Lf/a/l/a;->a:Landroid/content/SharedPreferences;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1, v1}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/tooltips/TooltipManager;->b:Lf/a/l/a;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
iget-object v0, v0, Lf/a/l/a;->a:Landroid/content/SharedPreferences;
|
|
|
|
|
|
|
|
invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1, v1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "tooltip"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public final b(Lcom/discord/tooltips/TooltipManager$Tooltip;Z)Z
|
|
|
|
.locals 4
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$Tooltip;->getCacheKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, p0, Lcom/discord/tooltips/TooltipManager;->b:Lf/a/l/a;
|
|
|
|
|
|
|
|
iget-object v3, v3, Lf/a/l/a;->a:Landroid/content/SharedPreferences;
|
|
|
|
|
|
|
|
invoke-interface {v3, v0, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/tooltips/TooltipManager;->c:Ljava/util/Set;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$Tooltip;->getTooltipName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {v3, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iget-object v3, p0, Lcom/discord/tooltips/TooltipManager;->c:Ljava/util/Set;
|
|
|
|
|
|
|
|
invoke-interface {v3}, Ljava/util/Set;->size()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
|
|
|
|
if-nez p2, :cond_2
|
|
|
|
|
|
|
|
iget p1, p0, Lcom/discord/tooltips/TooltipManager;->d:I
|
|
|
|
|
|
|
|
if-ge v3, p1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "tooltip"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final c(Lcom/discord/tooltips/TooltipManager$Tooltip;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/tooltips/TooltipManager;->a:Ljava/util/Map;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$Tooltip;->getTooltipName()Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/lang/Integer;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/tooltips/TooltipManager;->e:Lf/a/c/a;
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
invoke-virtual {v0, p1}, Lf/a/c/a;->b(I)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "tooltip"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public final d(Landroid/view/View;Landroid/app/Activity;Landroid/view/View;Lcom/discord/tooltips/TooltipManager$Tooltip;Lcom/discord/floating_view_manager/FloatingViewGravity;IIZLrx/Observable;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
.locals 14
|
|
|
|
.annotation build Landroidx/annotation/UiThread;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Landroid/view/View;",
|
2020-07-22 00:04:40 +00:00
|
|
|
"Landroid/app/Activity;",
|
2020-07-14 22:43:59 +00:00
|
|
|
"Landroid/view/View;",
|
|
|
|
"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 v8, p1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v9, p3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v1, p4
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v10, p9
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v8, :cond_b
|
|
|
|
|
|
|
|
if-eqz p2, :cond_a
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
if-eqz v9, :cond_9
|
|
|
|
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p5, :cond_7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
if-eqz v10, :cond_6
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v3, p8
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v1, v3}, Lcom/discord/tooltips/TooltipManager;->b(Lcom/discord/tooltips/TooltipManager$Tooltip;Z)Z
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, v0, Lcom/discord/tooltips/TooltipManager;->a:Ljava/util/Map;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p4 .. p4}, Lcom/discord/tooltips/TooltipManager$Tooltip;->getTooltipName()Ljava/lang/String;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/view/View;->getId()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-interface {v3, v1, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v11, v0, Lcom/discord/tooltips/TooltipManager;->e:Lf/a/c/a;
|
|
|
|
|
|
|
|
if-eqz v11, :cond_5
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p2 .. p2}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "activity.window"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "activity.window.decorView"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getRootView()Landroid/view/View;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
move-object v12, v1
|
|
|
|
|
|
|
|
check-cast v12, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
invoke-virtual {v9, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
iget-object v1, v11, Lf/a/c/a;->a:Ljava/util/Map;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/view/View;->getId()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v12, v9}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_1
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static/range {p3 .. p3}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/view/View;->isLayoutRequested()Z
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->isLayoutRequested()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
|
|
|
move-object v1, v11
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v2, p3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v4, p5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v5, p6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v6, p7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lf/a/c/a;->a(Lf/a/c/a;Landroid/view/View;Landroid/view/View;Lcom/discord/floating_view_manager/FloatingViewGravity;II)V
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v9, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance v13, Lf/a/c/c;
|
|
|
|
|
|
|
|
move-object v1, v13
|
|
|
|
|
|
|
|
move-object v2, v11
|
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v4, p3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v5, p5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v6, p6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v7, p7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v7}, Lf/a/c/c;-><init>(Lf/a/c/a;Landroid/view/View;Landroid/view/View;Lcom/discord/floating_view_manager/FloatingViewGravity;II)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v13}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance v13, Lf/a/c/b;
|
|
|
|
|
|
|
|
move-object v1, v13
|
|
|
|
|
|
|
|
move-object v2, v11
|
|
|
|
|
|
|
|
move-object v3, p1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v4, p3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v5, p5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v6, p6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v7, p7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v7}, Lf/a/c/b;-><init>(Lf/a/c/a;Landroid/view/View;Landroid/view/View;Lcom/discord/floating_view_manager/FloatingViewGravity;II)V
|
|
|
|
|
|
|
|
invoke-virtual {v9, v13}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
new-instance v13, Lf/a/c/f;
|
|
|
|
|
|
|
|
move-object v1, v13
|
|
|
|
|
|
|
|
move-object v2, v11
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v3, p3
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-object v4, p1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move-object/from16 v5, p5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v6, p6
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
move/from16 v7, p7
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v7}, Lf/a/c/f;-><init>(Lf/a/c/a;Landroid/view/View;Landroid/view/View;Lcom/discord/floating_view_manager/FloatingViewGravity;II)V
|
|
|
|
|
|
|
|
invoke-virtual {v12}, Landroid/view/ViewGroup;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v13}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
|
|
|
|
iget-object v1, v11, Lf/a/c/a;->a:Ljava/util/Map;
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual/range {p3 .. p3}, Landroid/view/View;->getId()I
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
new-instance v3, Lf/a/c/a$a;
|
|
|
|
|
|
|
|
invoke-direct {v3, v9, v12, v13}, Lf/a/c/a$a;-><init>(Landroid/view/View;Landroid/view/ViewGroup;Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
|
|
|
|
invoke-interface {v1, v2, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {v10, v1}, Lrx/Observable;->T(I)Lrx/Observable;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Lf/a/c/d;
|
|
|
|
|
|
|
|
invoke-direct {v2, v11, v9}, Lf/a/c/d;-><init>(Lf/a/c/a;Landroid/view/View;)V
|
|
|
|
|
|
|
|
new-instance v3, Lf/a/c/e;
|
|
|
|
|
|
|
|
invoke-direct {v3, v11}, Lf/a/c/e;-><init>(Lf/a/c/a;)V
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {v1, v2, v3}, Lrx/Observable;->Q(Lrx/functions/Action1;Lrx/functions/Action1;)Lrx/Subscription;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance v1, Lkotlin/TypeCastException;
|
|
|
|
|
|
|
|
const-string v2, "null cannot be cast to non-null type android.view.ViewGroup"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const-string v1, "componentPausedObservable"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const-string v1, "tooltipGravity"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const-string v1, "tooltip"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
const-string v1, "tooltipView"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_a
|
2020-07-22 00:04:40 +00:00
|
|
|
const-string v1, "activity"
|
|
|
|
|
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v2
|
|
|
|
|
|
|
|
:cond_b
|
2020-07-14 22:43:59 +00:00
|
|
|
const-string v1, "anchorView"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v2
|
|
|
|
.end method
|