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-10 04:01:33 +00:00
|
|
|
Lcom/discord/tooltips/TooltipManager$b;,
|
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"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p5
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "shownTooltipNames"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p5
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const-string p1, "acknowledgedTooltipsCache"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p5
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-10 04:01:33 +00:00
|
|
|
.method public final a(Lcom/discord/tooltips/TooltipManager$b;)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-10 04:01:33 +00:00
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/tooltips/TooltipManager;->b(Lcom/discord/tooltips/TooltipManager$b;)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-10 04:01:33 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$b;->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"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-10 04:01:33 +00:00
|
|
|
.method public final b(Lcom/discord/tooltips/TooltipManager$b;)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-10 04:01:33 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/tooltips/TooltipManager$b;->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;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lf/a/c/a;->d(I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "tooltip"
|
|
|
|
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|