apkfuckery/com.discord/smali/androidx/appcompat/app/AppCompatViewInflater.smali

1093 lines
31 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/appcompat/app/AppCompatViewInflater;
.super Ljava/lang/Object;
.source "AppCompatViewInflater.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/appcompat/app/AppCompatViewInflater$DeclaredOnClickListener;
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final LOG_TAG:Ljava/lang/String; = "AppCompatViewInflater"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final sClassPrefixList:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final sConstructorMap:Ljava/util/Map;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/reflect/Constructor<",
"+",
"Landroid/view/View;",
">;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public static final sConstructorSignature:[Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Ljava/lang/Class<",
"*>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public static final sOnClickAttrs:[I
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mConstructorArgs:[Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-11-20 22:09:14 +00:00
.locals 4
2019-07-24 11:27:29 +00:00
const/4 v0, 0x2
2019-11-20 22:09:14 +00:00
new-array v0, v0, [Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-class v1, Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
aput-object v1, v0, v2
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-class v1, Landroid/util/AttributeSet;
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
aput-object v1, v0, v3
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
sput-object v0, Landroidx/appcompat/app/AppCompatViewInflater;->sConstructorSignature:[Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
new-array v0, v3, [I
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const v1, 0x101026f
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
aput v1, v0, v2
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
sput-object v0, Landroidx/appcompat/app/AppCompatViewInflater;->sOnClickAttrs:[I
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v0, "android.widget."
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
const-string v1, "android.view."
2019-07-24 11:27:29 +00:00
const-string v2, "android.webkit."
2019-11-20 22:09:14 +00:00
filled-new-array {v0, v1, v2}, [Ljava/lang/String;
move-result-object v0
2019-07-24 11:27:29 +00:00
2019-11-20 22:09:14 +00:00
sput-object v0, Landroidx/appcompat/app/AppCompatViewInflater;->sClassPrefixList:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/collection/ArrayMap;
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
sput-object v0, Landroidx/appcompat/app/AppCompatViewInflater;->sConstructorMap:Ljava/util/Map;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x2
new-array v0, v0, [Ljava/lang/Object;
iput-object v0, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
return-void
.end method
.method private checkOnClickListener(Landroid/view/View;Landroid/util/AttributeSet;)V
2019-12-06 03:29:40 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
instance-of v1, v0, Landroid/content/ContextWrapper;
if-eqz v1, :cond_2
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
invoke-static {p1}, Landroidx/core/view/ViewCompat;->hasOnClickListeners(Landroid/view/View;)Z
move-result v1
if-nez v1, :cond_0
goto :goto_0
:cond_0
sget-object v1, Landroidx/appcompat/app/AppCompatViewInflater;->sOnClickAttrs:[I
invoke-virtual {v0, p2, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object p2
const/4 v0, 0x0
invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_1
new-instance v1, Landroidx/appcompat/app/AppCompatViewInflater$DeclaredOnClickListener;
invoke-direct {v1, p1, v0}, Landroidx/appcompat/app/AppCompatViewInflater$DeclaredOnClickListener;-><init>(Landroid/view/View;Ljava/lang/String;)V
invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
:cond_1
invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V
:cond_2
:goto_0
return-void
.end method
.method private createViewByPrefix(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/ClassNotFoundException;,
Landroid/view/InflateException;
}
.end annotation
sget-object v0, Landroidx/appcompat/app/AppCompatViewInflater;->sConstructorMap:Ljava/util/Map;
invoke-interface {v0, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/reflect/Constructor;
if-nez v0, :cond_1
if-eqz p3, :cond_0
2019-11-15 02:21:15 +00:00
:try_start_0
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p3
goto :goto_0
:cond_0
move-object p3, p2
:goto_0
2019-11-15 02:21:15 +00:00
const/4 v0, 0x0
invoke-virtual {p1}, Landroid/content/Context;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object p1
invoke-static {p3, v0, p1}, Ljava/lang/Class;->forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
move-result-object p1
const-class p3, Landroid/view/View;
invoke-virtual {p1, p3}, Ljava/lang/Class;->asSubclass(Ljava/lang/Class;)Ljava/lang/Class;
move-result-object p1
sget-object p3, Landroidx/appcompat/app/AppCompatViewInflater;->sConstructorSignature:[Ljava/lang/Class;
invoke-virtual {p1, p3}, Ljava/lang/Class;->getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;
move-result-object v0
sget-object p1, Landroidx/appcompat/app/AppCompatViewInflater;->sConstructorMap:Ljava/util/Map;
invoke-interface {p1, p2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_1
const/4 p1, 0x1
invoke-virtual {v0, p1}, Ljava/lang/reflect/Constructor;->setAccessible(Z)V
iget-object p1, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
invoke-virtual {v0, p1}, Ljava/lang/reflect/Constructor;->newInstance([Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/view/View;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
return-object p1
:catch_0
const/4 p1, 0x0
return-object p1
.end method
.method private createViewFromTag(Landroid/content/Context;Ljava/lang/String;Landroid/util/AttributeSet;)Landroid/view/View;
.locals 4
const-string v0, "view"
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x0
if-eqz v0, :cond_0
const-string p2, "class"
invoke-interface {p3, v1, p2}, Landroid/util/AttributeSet;->getAttributeValue(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
:cond_0
const/4 v0, 0x1
const/4 v2, 0x0
:try_start_0
iget-object v3, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object p1, v3, v2
iget-object v3, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object p3, v3, v0
const/4 p3, -0x1
const/16 v3, 0x2e
invoke-virtual {p2, v3}, Ljava/lang/String;->indexOf(I)I
move-result v3
if-ne p3, v3, :cond_3
const/4 p3, 0x0
:goto_0
sget-object v3, Landroidx/appcompat/app/AppCompatViewInflater;->sClassPrefixList:[Ljava/lang/String;
array-length v3, v3
if-ge p3, v3, :cond_2
sget-object v3, Landroidx/appcompat/app/AppCompatViewInflater;->sClassPrefixList:[Ljava/lang/String;
aget-object v3, v3, p3
invoke-direct {p0, p1, p2, v3}, Landroidx/appcompat/app/AppCompatViewInflater;->createViewByPrefix(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;
move-result-object v3
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v3, :cond_1
iget-object p1, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object v1, p1, v2
aput-object v1, p1, v0
return-object v3
:cond_1
add-int/lit8 p3, p3, 0x1
goto :goto_0
:cond_2
iget-object p1, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object v1, p1, v2
aput-object v1, p1, v0
return-object v1
:cond_3
:try_start_1
invoke-direct {p0, p1, p2, v1}, Landroidx/appcompat/app/AppCompatViewInflater;->createViewByPrefix(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Landroid/view/View;
move-result-object p1
:try_end_1
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
iget-object p2, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object v1, p2, v2
aput-object v1, p2, v0
return-object p1
:catchall_0
move-exception p1
iget-object p2, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object v1, p2, v2
aput-object v1, p2, v0
throw p1
:catch_0
iget-object p1, p0, Landroidx/appcompat/app/AppCompatViewInflater;->mConstructorArgs:[Ljava/lang/Object;
aput-object v1, p1, v2
aput-object v1, p1, v0
return-object v1
.end method
2019-12-06 03:29:40 +00:00
.method public static themifyContext(Landroid/content/Context;Landroid/util/AttributeSet;ZZ)Landroid/content/Context;
2019-07-24 11:27:29 +00:00
.locals 2
sget-object v0, Landroidx/appcompat/R$styleable;->View:[I
const/4 v1, 0x0
invoke-virtual {p0, p1, v0, v1, v1}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;
move-result-object p1
if-eqz p2, :cond_0
sget p2, Landroidx/appcompat/R$styleable;->View_android_theme:I
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p2
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
if-eqz p3, :cond_1
if-nez p2, :cond_1
sget p2, Landroidx/appcompat/R$styleable;->View_theme:I
invoke-virtual {p1, p2, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p2
if-eqz p2, :cond_1
const-string p3, "AppCompatViewInflater"
const-string v0, "app:theme is now deprecated. Please move to using android:theme instead."
invoke-static {p3, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
if-eqz p2, :cond_3
instance-of p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;
if-eqz p1, :cond_2
move-object p1, p0
check-cast p1, Landroidx/appcompat/view/ContextThemeWrapper;
invoke-virtual {p1}, Landroidx/appcompat/view/ContextThemeWrapper;->getThemeResId()I
move-result p1
if-eq p1, p2, :cond_3
:cond_2
new-instance p1, Landroidx/appcompat/view/ContextThemeWrapper;
invoke-direct {p1, p0, p2}, Landroidx/appcompat/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
move-object p0, p1
:cond_3
return-object p0
.end method
.method private verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
.locals 2
if-eqz p1, :cond_0
return-void
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, " asked to inflate view for <"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p2, ">, but returned null"
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public createAutoCompleteTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatButton;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatButton;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createCheckBox(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatCheckBox;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatCheckBox;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatCheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createCheckedTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatCheckedTextView;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatCheckedTextView;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatCheckedTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createEditText(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatEditText;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatEditText;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatEditText;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createImageButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatImageButton;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatImageButton;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createImageView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatImageView;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatImageView;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createMultiAutoCompleteTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatMultiAutoCompleteTextView;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatMultiAutoCompleteTextView;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatMultiAutoCompleteTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createRadioButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatRadioButton;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatRadioButton;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatRadioButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createRatingBar(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatRatingBar;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatRatingBar;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatRatingBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createSeekBar(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatSeekBar;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatSeekBar;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatSeekBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createSpinner(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatSpinner;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatSpinner;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatSpinner;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatTextView;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatTextView;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createToggleButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatToggleButton;
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-11-15 02:21:15 +00:00
new-instance v0, Landroidx/appcompat/widget/AppCompatToggleButton;
invoke-direct {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatToggleButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.method public createView(Landroid/content/Context;Ljava/lang/String;Landroid/util/AttributeSet;)Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/Nullable;
.end annotation
2019-07-24 11:27:29 +00:00
const/4 p1, 0x0
return-object p1
.end method
2019-12-06 03:29:40 +00:00
.method public final createView(Landroid/view/View;Ljava/lang/String;Landroid/content/Context;Landroid/util/AttributeSet;ZZZZ)Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p3 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
if-eqz p5, :cond_0
if-eqz p1, :cond_0
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
goto :goto_0
:cond_0
move-object p1, p3
:goto_0
if-nez p6, :cond_1
if-eqz p7, :cond_2
:cond_1
invoke-static {p1, p4, p6, p7}, Landroidx/appcompat/app/AppCompatViewInflater;->themifyContext(Landroid/content/Context;Landroid/util/AttributeSet;ZZ)Landroid/content/Context;
move-result-object p1
:cond_2
if-eqz p8, :cond_3
invoke-static {p1}, Landroidx/appcompat/widget/TintContextWrapper;->wrap(Landroid/content/Context;)Landroid/content/Context;
move-result-object p1
:cond_3
const/4 p5, -0x1
invoke-virtual {p2}, Ljava/lang/String;->hashCode()I
move-result p6
sparse-switch p6, :sswitch_data_0
goto/16 :goto_1
:sswitch_0
const-string p6, "Button"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x2
goto/16 :goto_1
:sswitch_1
const-string p6, "EditText"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x3
goto/16 :goto_1
:sswitch_2
const-string p6, "CheckBox"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x6
goto/16 :goto_1
:sswitch_3
const-string p6, "AutoCompleteTextView"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0x9
2019-11-15 02:21:15 +00:00
goto/16 :goto_1
2019-07-24 11:27:29 +00:00
:sswitch_4
const-string p6, "ImageView"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x1
goto :goto_1
:sswitch_5
2019-11-15 02:21:15 +00:00
const-string p6, "ToggleButton"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0xd
goto :goto_1
:sswitch_6
2019-07-24 11:27:29 +00:00
const-string p6, "RadioButton"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x7
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_7
2019-07-24 11:27:29 +00:00
const-string p6, "Spinner"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x4
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_8
2019-07-24 11:27:29 +00:00
const-string p6, "SeekBar"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0xc
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_9
2019-07-24 11:27:29 +00:00
const-string p6, "ImageButton"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x5
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_a
2019-07-24 11:27:29 +00:00
const-string p6, "TextView"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/4 p5, 0x0
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_b
2019-07-24 11:27:29 +00:00
const-string p6, "MultiAutoCompleteTextView"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0xa
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_c
2019-07-24 11:27:29 +00:00
const-string p6, "CheckedTextView"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0x8
goto :goto_1
2019-11-15 02:21:15 +00:00
:sswitch_d
2019-07-24 11:27:29 +00:00
const-string p6, "RatingBar"
invoke-virtual {p2, p6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p6
if-eqz p6, :cond_4
const/16 p5, 0xb
:cond_4
:goto_1
packed-switch p5, :pswitch_data_0
invoke-virtual {p0, p1, p2, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createView(Landroid/content/Context;Ljava/lang/String;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p5
goto/16 :goto_2
:pswitch_0
2019-11-15 02:21:15 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createToggleButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatToggleButton;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto/16 :goto_2
:pswitch_1
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createSeekBar(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatSeekBar;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_2
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createRatingBar(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatRatingBar;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_3
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createMultiAutoCompleteTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatMultiAutoCompleteTextView;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_4
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createAutoCompleteTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_5
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createCheckedTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatCheckedTextView;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_6
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createRadioButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatRadioButton;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_7
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createCheckBox(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatCheckBox;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_8
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createImageButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatImageButton;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_9
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createSpinner(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatSpinner;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_a
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createEditText(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatEditText;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_b
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createButton(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatButton;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_c
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createImageView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatImageView;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
goto :goto_2
2019-11-15 02:21:15 +00:00
:pswitch_d
2019-07-24 11:27:29 +00:00
invoke-virtual {p0, p1, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createTextView(Landroid/content/Context;Landroid/util/AttributeSet;)Landroidx/appcompat/widget/AppCompatTextView;
move-result-object p5
invoke-direct {p0, p5, p2}, Landroidx/appcompat/app/AppCompatViewInflater;->verifyNotNull(Landroid/view/View;Ljava/lang/String;)V
:goto_2
if-nez p5, :cond_5
if-eq p3, p1, :cond_5
invoke-direct {p0, p1, p2, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->createViewFromTag(Landroid/content/Context;Ljava/lang/String;Landroid/util/AttributeSet;)Landroid/view/View;
move-result-object p5
:cond_5
if-eqz p5, :cond_6
invoke-direct {p0, p5, p4}, Landroidx/appcompat/app/AppCompatViewInflater;->checkOnClickListener(Landroid/view/View;Landroid/util/AttributeSet;)V
:cond_6
return-object p5
:sswitch_data_0
.sparse-switch
2019-11-15 02:21:15 +00:00
-0x7404ceea -> :sswitch_d
-0x56c015e7 -> :sswitch_c
-0x503aa7ad -> :sswitch_b
-0x37f7066e -> :sswitch_a
-0x37e04bb3 -> :sswitch_9
-0x274065a5 -> :sswitch_8
-0x1440b607 -> :sswitch_7
0x2e46a6ed -> :sswitch_6
0x2fa453c6 -> :sswitch_5
2019-07-24 11:27:29 +00:00
0x431b5280 -> :sswitch_4
0x5445f9ba -> :sswitch_3
0x5f7507c3 -> :sswitch_2
0x63577677 -> :sswitch_1
0x77471352 -> :sswitch_0
.end sparse-switch
:pswitch_data_0
.packed-switch 0x0
2019-11-15 02:21:15 +00:00
:pswitch_d
2019-07-24 11:27:29 +00:00
:pswitch_c
:pswitch_b
:pswitch_a
:pswitch_9
:pswitch_8
:pswitch_7
:pswitch_6
:pswitch_5
:pswitch_4
:pswitch_3
:pswitch_2
:pswitch_1
:pswitch_0
.end packed-switch
.end method