- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
395 lines
11 KiB
Smali
395 lines
11 KiB
Smali
.class public Landroidx/appcompat/view/ContextThemeWrapper;
|
|
.super Landroid/content/ContextWrapper;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field private static sEmptyConfig:Landroid/content/res/Configuration;
|
|
|
|
|
|
# instance fields
|
|
.field private mInflater:Landroid/view/LayoutInflater;
|
|
|
|
.field private mOverrideConfiguration:Landroid/content/res/Configuration;
|
|
|
|
.field private mResources:Landroid/content/res/Resources;
|
|
|
|
.field private mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
.field private mThemeResource:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 54
|
|
invoke-direct {p0, v0}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;I)V
|
|
.locals 0
|
|
.param p2 # I
|
|
.annotation build Landroidx/annotation/StyleRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 69
|
|
invoke-direct {p0, p1}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
|
|
|
|
iput p2, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/content/res/Resources$Theme;)V
|
|
.locals 0
|
|
|
|
.line 83
|
|
invoke-direct {p0, p1}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object p2, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getResourcesInternal()Landroid/content/res/Resources;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mResources:Landroid/content/res/Resources;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mOverrideConfiguration:Landroid/content/res/Configuration;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 122
|
|
invoke-static {v0}, Landroidx/appcompat/view/ContextThemeWrapper;->isEmptyConfiguration(Landroid/content/res/Configuration;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mOverrideConfiguration:Landroid/content/res/Configuration;
|
|
|
|
.line 129
|
|
invoke-virtual {p0, v0}, Landroid/content/Context;->createConfigurationContext(Landroid/content/res/Configuration;)Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
.line 130
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mResources:Landroid/content/res/Resources;
|
|
|
|
goto :goto_1
|
|
|
|
.line 126
|
|
:cond_1
|
|
:goto_0
|
|
invoke-super {p0}, Landroid/content/ContextWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mResources:Landroid/content/res/Resources;
|
|
|
|
:cond_2
|
|
:goto_1
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mResources:Landroid/content/res/Resources;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private initializeTheme()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 195
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->newTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 196
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
.line 198
|
|
invoke-virtual {v2, v1}, Landroid/content/res/Resources$Theme;->setTo(Landroid/content/res/Resources$Theme;)V
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
iget v2, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
.line 201
|
|
invoke-virtual {p0, v1, v2, v0}, Landroidx/appcompat/view/ContextThemeWrapper;->onApplyThemeResource(Landroid/content/res/Resources$Theme;IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static isEmptyConfiguration(Landroid/content/res/Configuration;)Z
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x1a
|
|
.end annotation
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
return p0
|
|
|
|
:cond_0
|
|
sget-object v0, Landroidx/appcompat/view/ContextThemeWrapper;->sEmptyConfig:Landroid/content/res/Configuration;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 221
|
|
new-instance v0, Landroid/content/res/Configuration;
|
|
|
|
invoke-direct {v0}, Landroid/content/res/Configuration;-><init>()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, v0, Landroid/content/res/Configuration;->fontScale:F
|
|
|
|
sput-object v0, Landroidx/appcompat/view/ContextThemeWrapper;->sEmptyConfig:Landroid/content/res/Configuration;
|
|
|
|
:cond_1
|
|
sget-object v0, Landroidx/appcompat/view/ContextThemeWrapper;->sEmptyConfig:Landroid/content/res/Configuration;
|
|
|
|
.line 228
|
|
invoke-virtual {p0, v0}, Landroid/content/res/Configuration;->equals(Landroid/content/res/Configuration;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public applyOverrideConfiguration(Landroid/content/res/Configuration;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mResources:Landroid/content/res/Resources;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mOverrideConfiguration:Landroid/content/res/Configuration;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 110
|
|
new-instance v0, Landroid/content/res/Configuration;
|
|
|
|
invoke-direct {v0, p1}, Landroid/content/res/Configuration;-><init>(Landroid/content/res/Configuration;)V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mOverrideConfiguration:Landroid/content/res/Configuration;
|
|
|
|
return-void
|
|
|
|
.line 108
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Override configuration has already been set"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
.line 104
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "getResources() or getAssets() has already been called"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public attachBaseContext(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 89
|
|
invoke-super {p0, p1}, Landroid/content/ContextWrapper;->attachBaseContext(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAssets()Landroid/content/res/AssetManager;
|
|
.locals 1
|
|
|
|
.line 207
|
|
invoke-virtual {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getResources()Landroid/content/res/Resources;
|
|
.locals 1
|
|
|
|
.line 115
|
|
invoke-direct {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->getResourcesInternal()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
const-string v0, "layout_inflater"
|
|
|
|
.line 168
|
|
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mInflater:Landroid/view/LayoutInflater;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 170
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p0}, Landroid/view/LayoutInflater;->cloneInContext(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mInflater:Landroid/view/LayoutInflater;
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mInflater:Landroid/view/LayoutInflater;
|
|
|
|
return-object p1
|
|
|
|
.line 174
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getTheme()Landroid/content/res/Resources$Theme;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
sget v0, Landroidx/appcompat/R$style;->Theme_AppCompat_Light:I
|
|
|
|
iput v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
.line 161
|
|
:cond_1
|
|
invoke-direct {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->initializeTheme()V
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mTheme:Landroid/content/res/Resources$Theme;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getThemeResId()I
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onApplyThemeResource(Landroid/content/res/Resources$Theme;IZ)V
|
|
.locals 0
|
|
|
|
const/4 p3, 0x1
|
|
|
|
.line 189
|
|
invoke-virtual {p1, p2, p3}, Landroid/content/res/Resources$Theme;->applyStyle(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTheme(I)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
iput p1, p0, Landroidx/appcompat/view/ContextThemeWrapper;->mThemeResource:I
|
|
|
|
.line 140
|
|
invoke-direct {p0}, Landroidx/appcompat/view/ContextThemeWrapper;->initializeTheme()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|