- 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
428 lines
11 KiB
Smali
428 lines
11 KiB
Smali
.class public Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;
|
|
.super Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field private w:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 45
|
|
invoke-direct {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->w:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1, p2}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->w:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/view/View;)V
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0xb
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 142
|
|
invoke-static {v0}, Lcom/mbridge/msdk/foundation/tools/ak;->f(Landroid/content/Context;)I
|
|
|
|
move-result v0
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 143
|
|
invoke-static {v1}, Lcom/mbridge/msdk/foundation/tools/ak;->e(Landroid/content/Context;)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v0, v0
|
|
|
|
const v2, 0x3f333333 # 0.7f
|
|
|
|
mul-float/2addr v0, v2
|
|
|
|
const/high16 v3, 0x3f000000 # 0.5f
|
|
|
|
add-float/2addr v0, v3
|
|
|
|
float-to-int v0, v0
|
|
|
|
int-to-float v1, v1
|
|
|
|
mul-float/2addr v1, v2
|
|
|
|
add-float/2addr v1, v3
|
|
|
|
float-to-int v1, v1
|
|
|
|
.line 146
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v2
|
|
|
|
.line 147
|
|
iput v0, v2, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 148
|
|
iput v1, v2, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 149
|
|
invoke-virtual {p1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->b:Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 85
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/foundation/entity/CampaignEx;->getRewardTemplateMode()Lcom/mbridge/msdk/foundation/entity/CampaignEx$c;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 87
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/foundation/entity/CampaignEx$c;->c()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
.line 89
|
|
:cond_0
|
|
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
const-string v0, ".zip"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 90
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/download/download/H5DownLoadManager;->getInstance()Lcom/mbridge/msdk/foundation/download/download/H5DownLoadManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/mbridge/msdk/foundation/download/download/H5DownLoadManager;->getH5ResAddress(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 91
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
move-object v1, v0
|
|
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final b()Landroid/widget/RelativeLayout$LayoutParams;
|
|
.locals 3
|
|
|
|
.line 63
|
|
new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;
|
|
|
|
const/4 v1, -0x2
|
|
|
|
invoke-direct {v0, v1, v1}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v1, 0xd
|
|
|
|
const/4 v2, -0x1
|
|
|
|
.line 64
|
|
invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(II)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final e()V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0xb
|
|
.end annotation
|
|
|
|
.line 71
|
|
invoke-super {p0}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->e()V
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "mbridge_reward_minicard_bg"
|
|
|
|
.line 74
|
|
invoke-virtual {p0, v0}, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->findColor(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setBackgroundResource(I)V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->m:Landroid/view/View;
|
|
|
|
.line 76
|
|
invoke-direct {p0, v0}, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->a(Landroid/view/View;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 77
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSelfConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/RequiresApi;
|
|
api = 0xb
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->m:Landroid/view/View;
|
|
|
|
.line 56
|
|
invoke-direct {p0, v0}, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->a(Landroid/view/View;)V
|
|
|
|
.line 58
|
|
:cond_0
|
|
invoke-super {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->onSelfConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public preLoadData(Lcom/mbridge/msdk/video/signal/factory/b;)V
|
|
.locals 0
|
|
|
|
.line 101
|
|
invoke-super {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->preLoadData(Lcom/mbridge/msdk/video/signal/factory/b;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 102
|
|
invoke-virtual {p0, p1}, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->setCloseVisible(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public resizeMiniCard(II)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->a:Landroid/content/Context;
|
|
|
|
.line 170
|
|
check-cast v0, Landroid/app/Activity;
|
|
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;
|
|
|
|
move-result-object v0
|
|
|
|
const v1, 0x1020002
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
.line 171
|
|
invoke-virtual {v0}, Landroid/view/View;->getWidth()I
|
|
|
|
move-result v1
|
|
|
|
.line 172
|
|
invoke-virtual {v0}, Landroid/view/View;->getHeight()I
|
|
|
|
move-result v0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
if-lez p2, :cond_0
|
|
|
|
if-gt p1, v1, :cond_0
|
|
|
|
if-gt p2, v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->m:Landroid/view/View;
|
|
|
|
.line 174
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 175
|
|
iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 176
|
|
iput p2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
iget-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->m:Landroid/view/View;
|
|
|
|
.line 177
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMBridgeClickMiniCardViewClickable(Z)V
|
|
.locals 0
|
|
|
|
.line 157
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMBridgeClickMiniCardViewTransparent()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 153
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->setBackgroundColor(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setMiniCardLocation(IIII)V
|
|
.locals 0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->w:Z
|
|
|
|
.line 163
|
|
invoke-virtual {p0, p3, p4}, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;->resizeMiniCard(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setRadius(I)V
|
|
.locals 2
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
.line 183
|
|
new-instance v0, Landroid/graphics/drawable/GradientDrawable;
|
|
|
|
invoke-direct {v0}, Landroid/graphics/drawable/GradientDrawable;-><init>()V
|
|
|
|
.line 184
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
int-to-float p1, p1
|
|
|
|
invoke-static {v1, p1}, Lcom/mbridge/msdk/foundation/tools/ak;->a(Landroid/content/Context;F)I
|
|
|
|
move-result p1
|
|
|
|
int-to-float p1, p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/GradientDrawable;->setCornerRadius(F)V
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 185
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/GradientDrawable;->setColor(I)V
|
|
|
|
iget-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->p:Lcom/mbridge/msdk/mbsignalcommon/windvane/WindVaneWebView;
|
|
|
|
.line 187
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setBackground(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
iget-object p1, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->p:Lcom/mbridge/msdk/mbsignalcommon/windvane/WindVaneWebView;
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 192
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setClipToOutline(Z)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public webviewshow()V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/video/module/MBridgeH5EndCardView;->p:Lcom/mbridge/msdk/mbsignalcommon/windvane/WindVaneWebView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 108
|
|
new-instance v1, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView$1;-><init>(Lcom/mbridge/msdk/video/module/MBridgeClickMiniCardView;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 133
|
|
new-instance v0, Lcom/mbridge/msdk/foundation/same/report/d/e;
|
|
|
|
invoke-direct {v0}, Lcom/mbridge/msdk/foundation/same/report/d/e;-><init>()V
|
|
|
|
const/4 v1, 0x3
|
|
|
|
.line 134
|
|
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "type"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lcom/mbridge/msdk/foundation/same/report/d/e;->a(Ljava/lang/String;Ljava/lang/Object;)V
|
|
|
|
.line 135
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/same/report/d/d;->a()Lcom/mbridge/msdk/foundation/same/report/d/d;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "2000133"
|
|
|
|
iget-object v3, p0, Lcom/mbridge/msdk/video/module/MBridgeBaseView;->b:Lcom/mbridge/msdk/foundation/entity/CampaignEx;
|
|
|
|
invoke-virtual {v1, v2, v3, v0}, Lcom/mbridge/msdk/foundation/same/report/d/d;->a(Ljava/lang/String;Lcom/mbridge/msdk/foundation/entity/CampaignEx;Lcom/mbridge/msdk/foundation/same/report/d/e;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|