GhostViewApi21.smali
.class Landroid/support/transition/GhostViewApi21;
.super Ljava/lang/Object;
# interfaces
.implements Landroid/support/transition/GhostViewImpl;
# annotations
.annotation build Landroid/support/annotation/RequiresApi;
value = 0x15
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroid/support/transition/GhostViewApi21$Creator;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String; = "GhostViewApi21"
.field private static sAddGhostMethod:Ljava/lang/reflect/Method;
.field private static sAddGhostMethodFetched:Z
.field private static sGhostViewClass:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class",
"<*>;"
}
.end annotation
.end field
.field private static sGhostViewClassFetched:Z
.field private static sRemoveGhostMethod:Ljava/lang/reflect/Method;
.field private static sRemoveGhostMethodFetched:Z
# instance fields
.field private final mGhostView:Landroid/view/View;
# direct methods
.method private constructor <init>(Landroid/view/View;)V
.registers 2
.param p1 # Landroid/view/View;
.annotation build Landroid/support/annotation/NonNull;
.end annotation
.end param
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroid/support/transition/GhostViewApi21;->mGhostView:Landroid/view/View;
return-void
.end method
.method synthetic constructor <init>(Landroid/view/View;Landroid/support/transition/GhostViewApi21$1;)V
.registers 3
invoke-direct {p0, p1}, Landroid/support/transition/GhostViewApi21;-><init>(Landroid/view/View;)V
return-void
.end method
.method static synthetic access$000()V
.registers 0
invoke-static {}, Landroid/support/transition/GhostViewApi21;->fetchAddGhostMethod()V
return-void
.end method
.method static synthetic access$100()Ljava/lang/reflect/Method;
.registers 1
sget-object v0, Landroid/support/transition/GhostViewApi21;->sAddGhostMethod:Ljava/lang/reflect/Method;
return-object v0
.end method
.method static synthetic access$300()V
.registers 0
invoke-static {}, Landroid/support/transition/GhostViewApi21;->fetchRemoveGhostMethod()V
return-void
.end method
.method static synthetic access$400()Ljava/lang/reflect/Method;
.registers 1
sget-object v0, Landroid/support/transition/GhostViewApi21;->sRemoveGhostMethod:Ljava/lang/reflect/Method;
return-object v0
.end method
.method private static fetchAddGhostMethod()V
.registers 6
const/4 v5, 0x1
sget-boolean v0, Landroid/support/transition/GhostViewApi21;->sAddGhostMethodFetched:Z
if-nez v0, :cond_2d
:try_start_5
invoke-static {}, Landroid/support/transition/GhostViewApi21;->fetchGhostViewClass()V
sget-object v0, Landroid/support/transition/GhostViewApi21;->sGhostViewClass:Ljava/lang/Class;
const-string/jumbo v1, "addGhost"
const/4 v2, 0x3
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Landroid/view/View;
aput-object v4, v2, v3
const/4 v3, 0x1
const-class v4, Landroid/view/ViewGroup;
aput-object v4, v2, v3
const/4 v3, 0x2
const-class v4, Landroid/graphics/Matrix;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
sput-object v0, Landroid/support/transition/GhostViewApi21;->sAddGhostMethod:Ljava/lang/reflect/Method;
sget-object v0, Landroid/support/transition/GhostViewApi21;->sAddGhostMethod:Ljava/lang/reflect/Method;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_2b
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_2b} :catch_2e
:goto_2b
sput-boolean v5, Landroid/support/transition/GhostViewApi21;->sAddGhostMethodFetched:Z
:cond_2d
return-void
:catch_2e
move-exception v0
const-string/jumbo v1, "GhostViewApi21"
const-string/jumbo v2, "Failed to retrieve addGhost method"
invoke-static {v1, v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_2b
.end method
.method private static fetchGhostViewClass()V
.registers 3
sget-boolean v0, Landroid/support/transition/GhostViewApi21;->sGhostViewClassFetched:Z
if-nez v0, :cond_10
:try_start_4
const-string/jumbo v0, "android.view.GhostView"
invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v0
sput-object v0, Landroid/support/transition/GhostViewApi21;->sGhostViewClass:Ljava/lang/Class;
:try_end_d
.catch Ljava/lang/ClassNotFoundException; {:try_start_4 .. :try_end_d} :catch_11
:goto_d
const/4 v0, 0x1
sput-boolean v0, Landroid/support/transition/GhostViewApi21;->sGhostViewClassFetched:Z
:cond_10
return-void
:catch_11
move-exception v0
const-string/jumbo v1, "GhostViewApi21"
const-string/jumbo v2, "Failed to retrieve GhostView class"
invoke-static {v1, v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_d
.end method
.method private static fetchRemoveGhostMethod()V
.registers 6
const/4 v5, 0x1
sget-boolean v0, Landroid/support/transition/GhostViewApi21;->sRemoveGhostMethodFetched:Z
if-nez v0, :cond_23
:try_start_5
invoke-static {}, Landroid/support/transition/GhostViewApi21;->fetchGhostViewClass()V
sget-object v0, Landroid/support/transition/GhostViewApi21;->sGhostViewClass:Ljava/lang/Class;
const-string/jumbo v1, "removeGhost"
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Class;
const/4 v3, 0x0
const-class v4, Landroid/view/View;
aput-object v4, v2, v3
invoke-virtual {v0, v1, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v0
sput-object v0, Landroid/support/transition/GhostViewApi21;->sRemoveGhostMethod:Ljava/lang/reflect/Method;
sget-object v0, Landroid/support/transition/GhostViewApi21;->sRemoveGhostMethod:Ljava/lang/reflect/Method;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_21
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_21} :catch_24
:goto_21
sput-boolean v5, Landroid/support/transition/GhostViewApi21;->sRemoveGhostMethodFetched:Z
:cond_23
return-void
:catch_24
move-exception v0
const-string/jumbo v1, "GhostViewApi21"
const-string/jumbo v2, "Failed to retrieve removeGhost method"
invoke-static {v1, v2, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
goto :goto_21
.end method
# virtual methods
.method public reserveEndViewTransition(Landroid/view/ViewGroup;Landroid/view/View;)V
.registers 3
return-void
.end method
.method public setVisibility(I)V
.registers 3
iget-object v0, p0, Landroid/support/transition/GhostViewApi21;->mGhostView:Landroid/view/View;
invoke-virtual {v0, p1}, Landroid/view/View;->setVisibility(I)V
return-void
.end method