tmap/smali/h3/e.smali
2022-06-10 21:38:30 +09:00

363 lines
7.3 KiB
Smali

.class public Lh3/e;
.super Ljava/lang/Object;
.source "GhostViewPlatform.java"
# interfaces
.implements Lh3/d;
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x15
.end annotation
# static fields
.field public static final b:Ljava/lang/String; = "GhostViewApi21"
.field public static c:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
.field public static d:Z
.field public static e:Ljava/lang/reflect/Method;
.field public static f:Z
.field public static g:Ljava/lang/reflect/Method;
.field public static h:Z
# instance fields
.field public final a:Landroid/view/View;
# direct methods
.method public constructor <init>(Landroid/view/View;)V
.locals 0
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lh3/e;->a:Landroid/view/View;
return-void
.end method
.method public static b(Landroid/view/View;Landroid/view/ViewGroup;Landroid/graphics/Matrix;)Lh3/d;
.locals 5
.line 1
invoke-static {}, Lh3/e;->c()V
.line 2
sget-object v0, Lh3/e;->e:Ljava/lang/reflect/Method;
const/4 v1, 0x0
if-eqz v0, :cond_0
.line 3
:try_start_0
new-instance v2, Lh3/e;
const/4 v3, 0x3
new-array v3, v3, [Ljava/lang/Object;
const/4 v4, 0x0
aput-object p0, v3, v4
const/4 p0, 0x1
aput-object p1, v3, p0
const/4 p0, 0x2
aput-object p2, v3, p0
.line 4
invoke-virtual {v0, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Landroid/view/View;
invoke-direct {v2, p0}, Lh3/e;-><init>(Landroid/view/View;)V
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
return-object v2
:catch_0
move-exception p0
.line 5
new-instance p1, Ljava/lang/RuntimeException;
invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p0
invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p1
:catch_1
:cond_0
return-object v1
.end method
.method public static c()V
.locals 6
.line 1
sget-boolean v0, Lh3/e;->f:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
:try_start_0
invoke-static {}, Lh3/e;->d()V
.line 3
sget-object v1, Lh3/e;->c:Ljava/lang/Class;
const-string v2, "addGhost"
const/4 v3, 0x3
new-array v3, v3, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Landroid/view/View;
aput-object v5, v3, v4
const-class v4, Landroid/view/ViewGroup;
aput-object v4, v3, v0
const/4 v4, 0x2
const-class v5, Landroid/graphics/Matrix;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Lh3/e;->e:Ljava/lang/reflect/Method;
.line 4
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
const-string v2, "GhostViewApi21"
const-string v3, "Failed to retrieve addGhost method"
.line 5
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 6
:goto_0
sput-boolean v0, Lh3/e;->f:Z
:cond_0
return-void
.end method
.method public static d()V
.locals 3
.line 1
sget-boolean v0, Lh3/e;->d:Z
if-nez v0, :cond_0
:try_start_0
const-string v0, "android.view.GhostView"
.line 2
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
sput-object v0, Lh3/e;->c:Ljava/lang/Class;
:try_end_0
.catch Ljava/lang/ClassNotFoundException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v0
const-string v1, "GhostViewApi21"
const-string v2, "Failed to retrieve GhostView class"
.line 3
invoke-static {v1, v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
:goto_0
const/4 v0, 0x1
.line 4
sput-boolean v0, Lh3/e;->d:Z
:cond_0
return-void
.end method
.method public static e()V
.locals 6
.line 1
sget-boolean v0, Lh3/e;->h:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
:try_start_0
invoke-static {}, Lh3/e;->d()V
.line 3
sget-object v1, Lh3/e;->c:Ljava/lang/Class;
const-string v2, "removeGhost"
new-array v3, v0, [Ljava/lang/Class;
const/4 v4, 0x0
const-class v5, Landroid/view/View;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Lh3/e;->g:Ljava/lang/reflect/Method;
.line 4
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v1
const-string v2, "GhostViewApi21"
const-string v3, "Failed to retrieve removeGhost method"
.line 5
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 6
:goto_0
sput-boolean v0, Lh3/e;->h:Z
:cond_0
return-void
.end method
.method public static f(Landroid/view/View;)V
.locals 4
.line 1
invoke-static {}, Lh3/e;->e()V
.line 2
sget-object v0, Lh3/e;->g:Ljava/lang/reflect/Method;
if-eqz v0, :cond_0
const/4 v1, 0x0
const/4 v2, 0x1
:try_start_0
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object p0, v2, v3
.line 3
invoke-virtual {v0, v1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
.line 4
new-instance v0, Ljava/lang/RuntimeException;
invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v0
:catch_1
:cond_0
:goto_0
return-void
.end method
# virtual methods
.method public a(Landroid/view/ViewGroup;Landroid/view/View;)V
.locals 0
return-void
.end method
.method public setVisibility(I)V
.locals 1
.line 1
iget-object v0, p0, Lh3/e;->a:Landroid/view/View;
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
return-void
.end method