- 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
253 lines
5.8 KiB
Smali
253 lines
5.8 KiB
Smali
.class public Lcom/tapjoy/TJCloseButton;
|
|
.super Landroid/widget/ImageButton;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/tapjoy/TJCloseButton$ClosePosition;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field public b:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget-object v0, Lcom/tapjoy/TJCloseButton$ClosePosition;->TOP_RIGHT:Lcom/tapjoy/TJCloseButton$ClosePosition;
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/tapjoy/TJCloseButton;-><init>(Landroid/content/Context;Lcom/tapjoy/TJCloseButton$ClosePosition;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/tapjoy/TJCloseButton$ClosePosition;)V
|
|
.locals 6
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/tapjoy/TJCloseButton;->a:Z
|
|
|
|
.line 12
|
|
sget-object p1, Lcom/tapjoy/TJDeviceUtils;->INSTANCE:Lcom/tapjoy/TJDeviceUtils;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/tapjoy/TJDeviceUtils;->getDensity(Landroid/content/Context;)F
|
|
|
|
move-result p1
|
|
|
|
.line 13
|
|
invoke-static {p1}, Lcom/tapjoy/TapjoyIcons;->getCloseCircularImage(F)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
invoke-virtual {p0, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
|
|
.line 16
|
|
sget-object v0, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;
|
|
|
|
invoke-virtual {p0, v0}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
|
|
const v0, 0xffffff
|
|
|
|
.line 17
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
.line 19
|
|
new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
float-to-double v1, p1
|
|
|
|
const-wide v3, 0x4052c00000000000L # 75.0
|
|
|
|
mul-double/2addr v1, v3
|
|
|
|
double-to-int v1, v1
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
|
|
|
|
.line 21
|
|
sget-object v1, Lcom/tapjoy/z;->a:[I
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result p2
|
|
|
|
aget p2, v1, p2
|
|
|
|
const/16 v1, 0xb
|
|
|
|
const/16 v2, 0xe
|
|
|
|
const/16 v3, 0x9
|
|
|
|
const/16 v4, 0xc
|
|
|
|
const/16 v5, 0xa
|
|
|
|
packed-switch p2, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 46
|
|
:pswitch_0
|
|
invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 47
|
|
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 48
|
|
:pswitch_1
|
|
invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 49
|
|
invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:pswitch_2
|
|
invoke-virtual {v0, v4}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 51
|
|
invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:pswitch_3
|
|
const/16 p2, 0xd
|
|
|
|
.line 52
|
|
invoke-virtual {v0, p2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 53
|
|
:pswitch_4
|
|
invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 54
|
|
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 55
|
|
:pswitch_5
|
|
invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 56
|
|
invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:pswitch_6
|
|
invoke-virtual {v0, v5}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
.line 58
|
|
invoke-virtual {v0, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V
|
|
|
|
:goto_0
|
|
const/high16 p2, -0x3ee00000 # -10.0f
|
|
|
|
mul-float/2addr p1, p2
|
|
|
|
float-to-int p1, p1
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 85
|
|
invoke-virtual {v0, p2, p1, p1, p2}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V
|
|
|
|
.line 87
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onAttachedToWindow()V
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/view/View;->onAttachedToWindow()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setAlpha(F)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, p0, Lcom/tapjoy/TJCloseButton;->b:Z
|
|
|
|
.line 6
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
.line 10
|
|
new-instance v0, Landroid/os/Handler;
|
|
|
|
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
|
|
|
|
.line 11
|
|
new-instance v1, Lcom/tapjoy/y;
|
|
|
|
invoke-direct {v1, p0}, Lcom/tapjoy/y;-><init>(Lcom/tapjoy/TJCloseButton;)V
|
|
|
|
const-wide/16 v2, 0x7d0
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setClickableRequested(Z)V
|
|
.locals 1
|
|
|
|
iput-boolean p1, p0, Lcom/tapjoy/TJCloseButton;->a:Z
|
|
|
|
iget-boolean v0, p0, Lcom/tapjoy/TJCloseButton;->b:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|