granularity level: instruction

		.class public final Landroidx/core/view/LayoutInflaterCompat;
.super Ljava/lang/Object;
.source "LayoutInflaterCompat.java"

.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;
}
.end annotation

.field private static final TAG:Ljava/lang/String; = "LayoutInflaterCompatHC"
.field private static sCheckedField:Z
.field private static sLayoutInflaterFactory2Field:Ljava/lang/reflect/Field;


.method private constructor <init>()V
	.locals 0

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method private static forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	.locals 6

	sget-boolean v0, Landroidx/core/view/LayoutInflaterCompat;->sCheckedField:Z
	const-string v1, "; inflation may have unexpected results."
	const-string v2, "LayoutInflaterCompatHC"
	if-nez v0, :cond_0
	const/4 v0, 0x1
	:try_start_0
	const-class v3, Landroid/view/LayoutInflater;
	const-string v4, "mFactory2"
	invoke-virtual {v3, v4}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
	move-result-object v3
	sput-object v3, Landroidx/core/view/LayoutInflaterCompat;->sLayoutInflaterFactory2Field:Ljava/lang/reflect/Field;
	invoke-virtual {v3, v0}, Ljava/lang/reflect/Field;->setAccessible(Z)V
	:try_end_0
	.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_0
	:catch_0
	move-exception v3
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v5, "forceSetFactory2 Could not find field \'mFactory2\' on class "
	invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-class v5, Landroid/view/LayoutInflater;
	invoke-virtual {v5}, Ljava/lang/Class;->getName()Ljava/lang/String;
	move-result-object v5
	invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v4
	invoke-static {v2, v4, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_0
	sput-boolean v0, Landroidx/core/view/LayoutInflaterCompat;->sCheckedField:Z
	:cond_0
	sget-object v0, Landroidx/core/view/LayoutInflaterCompat;->sLayoutInflaterFactory2Field:Ljava/lang/reflect/Field;
	if-eqz v0, :cond_1
	:try_start_1
	invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
	:try_end_1
	.catch Ljava/lang/IllegalAccessException; {:try_start_1 .. :try_end_1} :catch_1
	goto :goto_1
	:catch_1
	move-exception p1
	new-instance v0, Ljava/lang/StringBuilder;
	invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
	const-string v3, "forceSetFactory2 could not set the Factory2 on LayoutInflater "
	invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
	invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-static {v2, p0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_1
	:cond_1
	return-void
.end method

.method public static getFactory(Landroid/view/LayoutInflater;)Landroidx/core/view/LayoutInflaterFactory;
	.locals 1
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	invoke-virtual {p0}, Landroid/view/LayoutInflater;->getFactory()Landroid/view/LayoutInflater$Factory;
	move-result-object p0
	instance-of v0, p0, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;
	if-eqz v0, :cond_0
	check-cast p0, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;
	iget-object p0, p0, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;->mDelegateFactory:Landroidx/core/view/LayoutInflaterFactory;
	return-object p0
	:cond_0
	const/4 p0, 0x0
	return-object p0
.end method

.method public static setFactory(Landroid/view/LayoutInflater;Landroidx/core/view/LayoutInflaterFactory;)V
	.locals 3
	.annotation runtime Ljava/lang/Deprecated;
	.end annotation

	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/4 v1, 0x0
	const/16 v2, 0x15
	if-lt v0, v2, :cond_1
	if-eqz p1, :cond_0
	new-instance v1, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;
	invoke-direct {v1, p1}, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;-><init>(Landroidx/core/view/LayoutInflaterFactory;)V
	:cond_0
	invoke-virtual {p0, v1}, Landroid/view/LayoutInflater;->setFactory2(Landroid/view/LayoutInflater$Factory2;)V
	goto :goto_0
	:cond_1
	if-eqz p1, :cond_2
	new-instance v1, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;
	invoke-direct {v1, p1}, Landroidx/core/view/LayoutInflaterCompat$Factory2Wrapper;-><init>(Landroidx/core/view/LayoutInflaterFactory;)V
	:cond_2
	invoke-virtual {p0, v1}, Landroid/view/LayoutInflater;->setFactory2(Landroid/view/LayoutInflater$Factory2;)V
	invoke-virtual {p0}, Landroid/view/LayoutInflater;->getFactory()Landroid/view/LayoutInflater$Factory;
	move-result-object p1
	instance-of v0, p1, Landroid/view/LayoutInflater$Factory2;
	if-eqz v0, :cond_3
	check-cast p1, Landroid/view/LayoutInflater$Factory2;
	invoke-static {p0, p1}, Landroidx/core/view/LayoutInflaterCompat;->forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	goto :goto_0
	:cond_3
	invoke-static {p0, v1}, Landroidx/core/view/LayoutInflaterCompat;->forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	:goto_0
	return-void
.end method

.method public static setFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	.locals 2

	invoke-virtual {p0, p1}, Landroid/view/LayoutInflater;->setFactory2(Landroid/view/LayoutInflater$Factory2;)V
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x15
	if-ge v0, v1, :cond_1
	invoke-virtual {p0}, Landroid/view/LayoutInflater;->getFactory()Landroid/view/LayoutInflater$Factory;
	move-result-object v0
	instance-of v1, v0, Landroid/view/LayoutInflater$Factory2;
	if-eqz v1, :cond_0
	check-cast v0, Landroid/view/LayoutInflater$Factory2;
	invoke-static {p0, v0}, Landroidx/core/view/LayoutInflaterCompat;->forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	goto :goto_0
	:cond_0
	invoke-static {p0, p1}, Landroidx/core/view/LayoutInflaterCompat;->forceSetFactory2(Landroid/view/LayoutInflater;Landroid/view/LayoutInflater$Factory2;)V
	:cond_1
	:goto_0
	return-void
.end method