- 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
330 lines
9.1 KiB
Smali
330 lines
9.1 KiB
Smali
.class Landroidx/cardview/widget/CardViewApi21Impl;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Landroidx/cardview/widget/CardViewImpl;
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 26
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
.locals 0
|
|
|
|
.line 122
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;)Landroid/content/res/ColorStateList;
|
|
.locals 0
|
|
|
|
.line 118
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getColor()Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public getElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
.locals 0
|
|
|
|
.line 83
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getElevation()F
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
.locals 0
|
|
|
|
.line 58
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getPadding()F
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getMinHeight(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
.locals 1
|
|
|
|
.line 68
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result p1
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
mul-float/2addr p1, v0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getMinWidth(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
.locals 1
|
|
|
|
.line 63
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result p1
|
|
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
mul-float/2addr p1, v0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
.locals 0
|
|
|
|
.line 73
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroidx/cardview/widget/RoundRectDrawable;->getRadius()F
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public initStatic()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public initialize(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/Context;Landroid/content/res/ColorStateList;FFF)V
|
|
.locals 0
|
|
|
|
.line 31
|
|
new-instance p2, Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
invoke-direct {p2, p3, p4}, Landroidx/cardview/widget/RoundRectDrawable;-><init>(Landroid/content/res/ColorStateList;F)V
|
|
|
|
.line 32
|
|
invoke-interface {p1, p2}, Landroidx/cardview/widget/CardViewDelegate;->setCardBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 34
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p3, 0x1
|
|
|
|
.line 35
|
|
invoke-virtual {p2, p3}, Landroid/view/View;->setClipToOutline(Z)V
|
|
|
|
.line 36
|
|
invoke-virtual {p2, p5}, Landroid/view/View;->setElevation(F)V
|
|
|
|
.line 37
|
|
invoke-virtual {p0, p1, p6}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCompatPaddingChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
|
.locals 1
|
|
|
|
.line 103
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPreventCornerOverlapChanged(Landroidx/cardview/widget/CardViewDelegate;)V
|
|
.locals 1
|
|
|
|
.line 108
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, p1, v0}, Landroidx/cardview/widget/CardViewApi21Impl;->setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setBackgroundColor(Landroidx/cardview/widget/CardViewDelegate;Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p2 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 113
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawable;->setColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
.locals 0
|
|
|
|
.line 78
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getCardView()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->setElevation(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMaxElevation(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
.locals 3
|
|
|
|
.line 51
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 52
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
|
|
|
move-result v2
|
|
|
|
.line 51
|
|
invoke-virtual {v0, p2, v1, v2}, Landroidx/cardview/widget/RoundRectDrawable;->setPadding(FZZ)V
|
|
|
|
.line 53
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRadius(Landroidx/cardview/widget/CardViewDelegate;F)V
|
|
.locals 0
|
|
|
|
.line 42
|
|
invoke-direct {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getCardBackground(Landroidx/cardview/widget/CardViewDelegate;)Landroidx/cardview/widget/RoundRectDrawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/cardview/widget/RoundRectDrawable;->setRadius(F)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public updatePadding(Landroidx/cardview/widget/CardViewDelegate;)V
|
|
.locals 4
|
|
|
|
.line 88
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getUseCompatPadding()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 89
|
|
invoke-interface {p1, v0, v0, v0, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
|
|
|
return-void
|
|
|
|
.line 92
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getMaxElevation(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result v0
|
|
|
|
.line 93
|
|
invoke-virtual {p0, p1}, Landroidx/cardview/widget/CardViewApi21Impl;->getRadius(Landroidx/cardview/widget/CardViewDelegate;)F
|
|
|
|
move-result v1
|
|
|
|
.line 95
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
|
|
|
move-result v2
|
|
|
|
invoke-static {v0, v1, v2}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateHorizontalPadding(FFZ)F
|
|
|
|
move-result v2
|
|
|
|
float-to-double v2, v2
|
|
|
|
.line 94
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-int v2, v2
|
|
|
|
.line 97
|
|
invoke-interface {p1}, Landroidx/cardview/widget/CardViewDelegate;->getPreventCornerOverlap()Z
|
|
|
|
move-result v3
|
|
|
|
invoke-static {v0, v1, v3}, Landroidx/cardview/widget/RoundRectDrawableWithShadow;->calculateVerticalPadding(FFZ)F
|
|
|
|
move-result v0
|
|
|
|
float-to-double v0, v0
|
|
|
|
.line 96
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->ceil(D)D
|
|
|
|
move-result-wide v0
|
|
|
|
double-to-int v0, v0
|
|
|
|
.line 98
|
|
invoke-interface {p1, v2, v0, v2, v0}, Landroidx/cardview/widget/CardViewDelegate;->setShadowPadding(IIII)V
|
|
|
|
return-void
|
|
.end method
|