f.smali
.class public final Lwe/f;
.super Ljava/lang/Object;
.source "FloatingViewManager.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000J\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0010\u000b\n\u0002\u0008\u0004\u0008\u00c6\u0002\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0015\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0016H\u0001\u00a2\u0006\u0002\u0008\u0017J\u001e\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u00162\u000c\u0010\u0018\u001a\u0008\u0012\u0004\u0012\u00020\u00010\u0019H\u0007J\u0014\u0010\u001a\u001a\u00020\u00142\u000c\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\u00010\u0007J\u0006\u0010\u001c\u001a\u00020\u0014J\u0008\u0010\u001d\u001a\u00020\u001eH\u0002J\u0016\u0010\u001f\u001a\u00020\u00142\u000c\u0010\u001b\u001a\u0008\u0012\u0004\u0012\u00020\u00010\u0007H\u0003J\u0008\u0010 \u001a\u00020\u0014H\u0007J\u0008\u0010!\u001a\u00020\u0014H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u001c\u0010\u0005\u001a\u0010\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00010\u0007\u0018\u00010\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u001b\u0010\u0008\u001a\u00020\t8BX\u0082\u0084\u0002\u00a2\u0006\u000c\n\u0004\u0008\u000c\u0010\r\u001a\u0004\u0008\n\u0010\u000bR\'\u0010\u000e\u001a\u000e\u0012\n\u0012\u0008\u0012\u0004\u0012\u00020\u00010\u00070\u000f8BX\u0082\u0084\u0002\u00a2\u0006\u000c\n\u0004\u0008\u0012\u0010\r\u001a\u0004\u0008\u0010\u0010\u0011\u00a8\u0006\""
}
d2 = {
"Lcom/shopee/foody/driver/floatingview/FloatingViewManager;",
"",
"()V",
"TAG",
"",
"mCurrentFloatingViewWrapper",
"Ljava/lang/ref/WeakReference;",
"Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;",
"mDurationHelper",
"Lcom/shopee/foody/driver/floatingview/FloatingViewDurationHelper;",
"getMDurationHelper",
"()Lcom/shopee/foody/driver/floatingview/FloatingViewDurationHelper;",
"mDurationHelper$delegate",
"Lkotlin/Lazy;",
"mWrapperList",
"Ljava/util/LinkedList;",
"getMWrapperList",
"()Ljava/util/LinkedList;",
"mWrapperList$delegate",
"attachView",
"",
"activity",
"Landroid/app/Activity;",
"attachView$driver_indonesiaRelease",
"viewInfo",
"Lcom/shopee/foody/driver/floatingview/data/FloatingViewInfo;",
"clearWrapper",
"wrapper",
"init",
"isHasFloatingView",
"",
"registeredView",
"removeView",
"reset",
"driver_indonesiaRelease"
}
k = 0x1
mv = {
0x1,
0x1,
0x10
}
.end annotation
# static fields
.field public static final a:Lkotlin/Lazy;
.field public static b:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
.end field
.field public static final c:Lkotlin/Lazy;
.field public static final d:Lwe/f;
# direct methods
.method public static constructor <clinit>()V
.registers 1
new-instance v0, Lwe/f;
invoke-direct {v0}, Lwe/f;-><init>()V
sput-object v0, Lwe/f;->d:Lwe/f;
sget-object v0, Lwe/f$d;->a:Lwe/f$d;
invoke-static {v0}, Lfa/a;->a(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
sput-object v0, Lwe/f;->a:Lkotlin/Lazy;
sget-object v0, Lwe/f$e;->a:Lwe/f$e;
invoke-static {v0}, Lfa/a;->a(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object v0
sput-object v0, Lwe/f;->c:Lkotlin/Lazy;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Lwe/e;
.registers 2
sget-object v0, Lwe/f;->a:Lkotlin/Lazy;
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lwe/e;
return-object v0
.end method
.method public final a(Landroid/app/Activity;)V
.registers 5
.annotation build Landroidx/annotation/MainThread;
.end annotation
invoke-virtual {p0}, Lwe/f;->d()Z
move-result v0
if-nez v0, :cond_7
return-void
:cond_7
sget-object v0, Lqa/d;->e:Lqa/d$a;
sget-object v1, Lwe/f$b;->a:Lwe/f$b;
const-string v2, "FloatingViewManager"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
sget-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_27
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;
if-eqz v0, :cond_27
invoke-virtual {v0}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->i()Lye/a;
move-result-object v0
if-eqz v0, :cond_27
sget-object v1, Lwe/f;->d:Lwe/f;
invoke-virtual {v1, p1, v0}, Lwe/f;->a(Landroid/app/Activity;Lye/a;)V
:cond_27
return-void
.end method
.method public final a(Landroid/app/Activity;Lye/a;)V
.registers 6
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/app/Activity;",
"Lye/a<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
sget-object v0, Lqa/d;->e:Lqa/d$a;
sget-object v1, Lwe/f$a;->a:Lwe/f$a;
const-string v2, "FloatingViewManager"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
sget-object v0, Lwe/c;->a:Lwe/c;
invoke-virtual {v0, p1, p2}, Lwe/c;->a(Landroid/content/Context;Lye/a;)Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;
move-result-object v0
if-eqz v0, :cond_20
invoke-virtual {p2}, Lye/a;->b()Laf/a$a;
move-result-object p2
invoke-virtual {v0, p2}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->a(Laf/a$a;)V
invoke-virtual {v0, p1}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->b(Landroid/app/Activity;)V
sget-object p1, Lwe/f;->d:Lwe/f;
invoke-virtual {p1, v0}, Lwe/f;->b(Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;)V
:cond_20
return-void
.end method
.method public final a(Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
sget-object v0, Lqa/d;->e:Lqa/d$a;
sget-object v1, Lwe/f$c;->a:Lwe/f$c;
const-string v2, "FloatingViewManager"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->c(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p0}, Lwe/f;->b()Ljava/util/LinkedList;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z
return-void
.end method
.method public final b()Ljava/util/LinkedList;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/LinkedList<",
"Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper<",
"Ljava/lang/Object;",
">;>;"
}
.end annotation
sget-object v0, Lwe/f;->c:Lkotlin/Lazy;
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/util/LinkedList;
return-object v0
.end method
.method public final b(Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;)V
.registers 4
.annotation build Landroidx/annotation/MainThread;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper<",
"Ljava/lang/Object;",
">;)V"
}
.end annotation
sget-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_11
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;
if-eqz v0, :cond_11
invoke-virtual {v0}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->j()Landroid/view/View;
move-result-object v0
goto :goto_12
:cond_11
const/4 v0, 0x0
:goto_12
invoke-virtual {p1}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->j()Landroid/view/View;
move-result-object v1
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1f
invoke-virtual {p0}, Lwe/f;->e()V
:cond_1f
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
sput-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {p0}, Lwe/f;->b()Ljava/util/LinkedList;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
invoke-virtual {p0}, Lwe/f;->a()Lwe/e;
move-result-object p1
invoke-virtual {p1}, Lwe/e;->e()V
return-void
.end method
.method public final c()V
.registers 3
sget-object v0, Ljd/b;->c:Ljd/b$a;
invoke-virtual {v0}, Ljd/b$a;->a()Landroid/content/Context;
move-result-object v0
instance-of v1, v0, Landroid/app/Application;
if-nez v1, :cond_b
const/4 v0, 0x0
:cond_b
check-cast v0, Landroid/app/Application;
if-eqz v0, :cond_17
new-instance v1, Lwe/a;
invoke-direct {v1}, Lwe/a;-><init>()V
invoke-virtual {v0, v1}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
:cond_17
return-void
.end method
.method public final d()Z
.registers 2
sget-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_b
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;
goto :goto_c
:cond_b
const/4 v0, 0x0
:goto_c
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public final e()V
.registers 4
.annotation build Landroidx/annotation/MainThread;
.end annotation
sget-object v0, Lqa/d;->e:Lqa/d$a;
sget-object v1, Lwe/f$f;->a:Lwe/f$f;
const-string v2, "FloatingViewManager"
invoke-virtual {v0, v2, v1}, Lqa/d$a;->a(Ljava/lang/String;Lkotlin/jvm/functions/Function0;)V
invoke-virtual {p0}, Lwe/f;->f()V
return-void
.end method
.method public final f()V
.registers 3
invoke-virtual {p0}, Lwe/f;->a()Lwe/e;
move-result-object v0
invoke-virtual {v0}, Lwe/e;->d()V
sget-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
if-eqz v0, :cond_e
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->clear()V
:cond_e
const/4 v0, 0x0
sput-object v0, Lwe/f;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {p0}, Lwe/f;->b()Ljava/util/LinkedList;
move-result-object v0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_19
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_29
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;
invoke-virtual {v1}, Lcom/shopee/foody/driver/floatingview/FloatingViewWrapper;->l()V
goto :goto_19
:cond_29
invoke-virtual {p0}, Lwe/f;->b()Ljava/util/LinkedList;
move-result-object v0
invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V
return-void
.end method