- 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
347 lines
8.1 KiB
Smali
347 lines
8.1 KiB
Smali
.class public Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;
|
|
.super Lcom/mbridge/msdk/dycreator/baseview/MBImageView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/graphics/Paint;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 24
|
|
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/dycreator/baseview/MBImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 21
|
|
new-instance p1, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {p1}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;->a:Landroid/graphics/Paint;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
|
|
.locals 9
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 58
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 62
|
|
:cond_0
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v0
|
|
|
|
.line 63
|
|
invoke-virtual {p0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v0, v0
|
|
|
|
.line 64
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
div-float/2addr v0, v2
|
|
|
|
int-to-float v1, v1
|
|
|
|
.line 65
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
.line 66
|
|
new-instance v7, Landroid/graphics/Matrix;
|
|
|
|
invoke-direct {v7}, Landroid/graphics/Matrix;-><init>()V
|
|
|
|
.line 67
|
|
invoke-virtual {v7, v0, v1}, Landroid/graphics/Matrix;->postScale(FF)Z
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 68
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v5
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v6
|
|
|
|
const/4 v8, 0x1
|
|
|
|
move-object v2, p1
|
|
|
|
invoke-static/range {v2 .. v8}, Landroid/graphics/Bitmap;->createBitmap(Landroid/graphics/Bitmap;IIIILandroid/graphics/Matrix;Z)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object p1
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object p1
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
const-string v1, "MBRoundRectImageViewC"
|
|
|
|
.line 70
|
|
invoke-virtual {v0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v1, v0}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private a(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
|
|
.locals 7
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 77
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 81
|
|
:cond_0
|
|
:try_start_0
|
|
new-instance v0, Landroid/graphics/BitmapShader;
|
|
|
|
sget-object v1, Landroid/graphics/Shader$TileMode;->CLAMP:Landroid/graphics/Shader$TileMode;
|
|
|
|
invoke-direct {v0, p1, v1, v1}, Landroid/graphics/BitmapShader;-><init>(Landroid/graphics/Bitmap;Landroid/graphics/Shader$TileMode;Landroid/graphics/Shader$TileMode;)V
|
|
|
|
.line 82
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v2
|
|
|
|
sget-object v3, Landroid/graphics/Bitmap$Config;->ARGB_4444:Landroid/graphics/Bitmap$Config;
|
|
|
|
invoke-static {v1, v2, v3}, Landroid/graphics/Bitmap;->createBitmap(IILandroid/graphics/Bitmap$Config;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v1
|
|
|
|
.line 83
|
|
new-instance v2, Landroid/graphics/Canvas;
|
|
|
|
invoke-direct {v2, v1}, Landroid/graphics/Canvas;-><init>(Landroid/graphics/Bitmap;)V
|
|
|
|
.line 84
|
|
new-instance v3, Landroid/graphics/Paint;
|
|
|
|
invoke-direct {v3}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 85
|
|
invoke-virtual {v3, v4}, Landroid/graphics/Paint;->setAntiAlias(Z)V
|
|
|
|
.line 86
|
|
invoke-virtual {v3, v0}, Landroid/graphics/Paint;->setShader(Landroid/graphics/Shader;)Landroid/graphics/Shader;
|
|
|
|
.line 87
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v5
|
|
|
|
int-to-float v5, v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-direct {v0, v6, v6, v4, v5}, Landroid/graphics/RectF;-><init>(FFFF)V
|
|
|
|
int-to-float p2, p2
|
|
|
|
invoke-virtual {v2, v0, p2, p2, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-object v1
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
const-string v0, "MBRoundRectImageViewC"
|
|
|
|
.line 90
|
|
invoke-virtual {p2}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {v0, p2}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onDraw(Landroid/graphics/Canvas;)V
|
|
.locals 5
|
|
|
|
.line 29
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 31
|
|
invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
goto :goto_2
|
|
|
|
.line 34
|
|
:cond_0
|
|
check-cast v0, Landroid/graphics/drawable/BitmapDrawable;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/BitmapDrawable;->getBitmap()Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;->a(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 36
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/16 v1, 0x1e
|
|
|
|
.line 40
|
|
invoke-direct {p0, v0, v1}, Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;->a(Landroid/graphics/Bitmap;I)Landroid/graphics/Bitmap;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 41
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 45
|
|
:cond_2
|
|
new-instance v1, Landroid/graphics/Rect;
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-direct {v1, v4, v4, v2, v3}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;->a:Landroid/graphics/Paint;
|
|
|
|
.line 46
|
|
invoke-virtual {v2}, Landroid/graphics/Paint;->reset()V
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/dycreator/baseview/MBRoundRectImageViewC;->a:Landroid/graphics/Paint;
|
|
|
|
.line 48
|
|
invoke-virtual {p1, v0, v1, v1, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Paint;)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 42
|
|
:cond_3
|
|
:goto_0
|
|
invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V
|
|
|
|
return-void
|
|
|
|
.line 37
|
|
:cond_4
|
|
:goto_1
|
|
invoke-super {p0, p1}, Landroid/view/View;->onDraw(Landroid/graphics/Canvas;)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:goto_2
|
|
const-string v0, "MBRoundRectImageViewC"
|
|
|
|
.line 50
|
|
invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Lcom/mbridge/msdk/foundation/tools/af;->b(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_3
|
|
return-void
|
|
.end method
|