- 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
352 lines
9.0 KiB
Smali
352 lines
9.0 KiB
Smali
.class public Lcom/tapjoy/TJActivity;
|
|
.super Landroid/app/Activity;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Landroid/widget/RelativeLayout;
|
|
|
|
.field public b:Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
.field public c:Lcom/tapjoy/TJCloseButton;
|
|
|
|
.field public d:Landroid/widget/ProgressBar;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lcom/tapjoy/TJActivity;->a:Landroid/widget/RelativeLayout;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic a(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
|
|
.locals 0
|
|
|
|
.line 0
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 0
|
|
|
|
.line 0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onBackPressed()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/tapjoy/TJActivity;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onClick(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/tapjoy/TJActivity;->onBackPressed()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroid/os/Bundle;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
invoke-virtual {p0, v0}, Landroid/app/Activity;->requestWindowFeature(I)Z
|
|
|
|
.line 2
|
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
|
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v0, 0x1d
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/tapjoy/TJActivity$$ExternalSyntheticLambda0;
|
|
|
|
invoke-direct {v1}, Lcom/tapjoy/TJActivity$$ExternalSyntheticLambda0;-><init>()V
|
|
|
|
invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/16 v1, 0x400
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V
|
|
|
|
.line 11
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v1, 0x1000000
|
|
|
|
invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V
|
|
|
|
const/16 v0, 0x1e
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-lt p1, v0, :cond_1
|
|
|
|
.line 15
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v1}, Landroidx/core/view/WindowCompat$Api35Impl$$ExternalSyntheticApiModelOutline0;->m(Landroid/view/Window;Z)V
|
|
|
|
.line 16
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Landroidx/core/view/WindowInsetsControllerCompat$Impl30$$ExternalSyntheticApiModelOutline0;->m(Landroid/view/Window;)Landroid/view/WindowInsetsController;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 18
|
|
invoke-static {}, Landroidx/core/view/WindowInsetsCompat$TypeImpl30$$ExternalSyntheticApiModelOutline0;->m()I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {}, Landroidx/core/view/WindowInsetsCompat$TypeImpl30$$ExternalSyntheticApiModelOutline1;->m()I
|
|
|
|
move-result v2
|
|
|
|
or-int/2addr v0, v2
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/SoftwareKeyboardControllerCompat$Impl30$$ExternalSyntheticApiModelOutline4;->m(Landroid/view/WindowInsetsController;I)V
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 19
|
|
invoke-static {p1, v0}, Landroidx/core/view/WindowInsetsControllerCompat$Impl30$$ExternalSyntheticApiModelOutline6;->m(Landroid/view/WindowInsetsController;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 22
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
const/16 v0, 0x1006
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V
|
|
|
|
.line 26
|
|
:cond_2
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Landroid/graphics/drawable/ColorDrawable;
|
|
|
|
invoke-direct {v0, v1}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/Window;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 29
|
|
new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/4 v0, -0x1
|
|
|
|
invoke-direct {p1, v0, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/TJActivity;->b:Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
.line 30
|
|
new-instance p1, Landroid/widget/RelativeLayout;
|
|
|
|
invoke-direct {p1, p0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/TJActivity;->a:Landroid/widget/RelativeLayout;
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/TJActivity;->b:Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
.line 31
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
iget-object p1, p0, Lcom/tapjoy/TJActivity;->a:Landroid/widget/RelativeLayout;
|
|
|
|
.line 32
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
.line 35
|
|
new-instance p1, Landroid/widget/ProgressBar;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const v1, 0x101007a
|
|
|
|
invoke-direct {p1, p0, v0, v1}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/TJActivity;->d:Landroid/widget/ProgressBar;
|
|
|
|
.line 38
|
|
new-instance p1, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/4 v0, -0x2
|
|
|
|
invoke-direct {p1, v0, v0}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v0, 0xd
|
|
|
|
.line 39
|
|
invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/TJActivity;->d:Landroid/widget/ProgressBar;
|
|
|
|
.line 40
|
|
invoke-virtual {v0, p1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 43
|
|
new-instance p1, Lcom/tapjoy/TJCloseButton;
|
|
|
|
invoke-direct {p1, p0}, Lcom/tapjoy/TJCloseButton;-><init>(Landroid/content/Context;)V
|
|
|
|
iput-object p1, p0, Lcom/tapjoy/TJActivity;->c:Lcom/tapjoy/TJCloseButton;
|
|
|
|
.line 44
|
|
invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseButtonClickable(Z)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/tapjoy/TJActivity;->c:Lcom/tapjoy/TJCloseButton;
|
|
|
|
.line 1
|
|
invoke-virtual {v0, p1}, Lcom/tapjoy/TJCloseButton;->setClickableRequested(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setCloseButtonVisibility(Z)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p0, Lcom/tapjoy/TJActivity;->c:Lcom/tapjoy/TJCloseButton;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 1
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/tapjoy/TJActivity;->c:Lcom/tapjoy/TJCloseButton;
|
|
|
|
const/4 v0, 0x4
|
|
|
|
.line 3
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setProgressSpinnerVisibility(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lcom/tapjoy/a;
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/tapjoy/a;-><init>(Lcom/tapjoy/TJActivity;Z)V
|
|
|
|
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public showErrorDialog()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->isFinishing()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 5
|
|
new-instance v0, Landroid/app/AlertDialog$Builder;
|
|
|
|
const v1, 0x103023a
|
|
|
|
invoke-direct {v0, p0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;I)V
|
|
|
|
const-string v1, "An error occurred. Please try again later."
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/tapjoy/b;
|
|
|
|
invoke-direct {v1, p0}, Lcom/tapjoy/b;-><init>(Lcom/tapjoy/TJActivity;)V
|
|
|
|
const-string v2, "OK"
|
|
|
|
.line 7
|
|
invoke-virtual {v0, v2, v1}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
|
|
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
|
|
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
invoke-virtual {v0}, Landroid/app/Dialog;->show()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|