- 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
946 lines
27 KiB
Smali
946 lines
27 KiB
Smali
.class public Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;
|
|
.super Landroid/widget/LinearLayout;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;,
|
|
Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final BACKWARD:Ljava/lang/String; = "backward"
|
|
|
|
.field public static final EXITS:Ljava/lang/String; = "exits"
|
|
|
|
.field public static final FORWARD:Ljava/lang/String; = "forward"
|
|
|
|
.field public static final OPEN_BY_BROWSER:Ljava/lang/String; = "open_by_browser"
|
|
|
|
.field public static final REFRESH:Ljava/lang/String; = "refresh"
|
|
|
|
|
|
# instance fields
|
|
.field public title:Ljava/lang/String;
|
|
|
|
.field public titleView:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 0
|
|
|
|
.line 30
|
|
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 31
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
.line 35
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 36
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Landroid/util/AttributeSet;",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 54
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 55
|
|
invoke-direct {p0, p3, p4}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a(Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Landroid/util/AttributeSet;",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 44
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.line 45
|
|
invoke-direct {p0, p3}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 49
|
|
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 50
|
|
invoke-direct {p0, p2, p3}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a(Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Ljava/util/List;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/content/Context;",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 41
|
|
invoke-direct {p0, p2}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->a(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a()V
|
|
.locals 6
|
|
|
|
const-string v0, "drawable"
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 157
|
|
invoke-virtual {p0, v1}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
.line 160
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
const/high16 v3, 0x41200000 # 10.0f
|
|
|
|
invoke-static {v2, v3}, Lcom/mbridge/msdk/foundation/tools/ak;->a(Landroid/content/Context;F)I
|
|
|
|
move-result v2
|
|
|
|
.line 161
|
|
invoke-virtual {p0, v1, v2, v1, v2}, Landroid/view/View;->setPadding(IIII)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 169
|
|
:catch_0
|
|
:try_start_1
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
const-string v2, "backward"
|
|
|
|
.line 170
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 171
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mbridge_cm_backward"
|
|
|
|
.line 172
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 171
|
|
invoke-virtual {v3, v4, v0, v5}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 173
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 174
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 180
|
|
:catch_1
|
|
:try_start_2
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
const-string v2, "forward"
|
|
|
|
.line 181
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 182
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mbridge_cm_forward"
|
|
|
|
.line 183
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 182
|
|
invoke-virtual {v3, v4, v0, v5}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 184
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 185
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_2
|
|
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.line 191
|
|
:catch_2
|
|
:try_start_3
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
const-string v2, "refresh"
|
|
|
|
.line 192
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 193
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mbridge_cm_refresh"
|
|
|
|
.line 194
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 193
|
|
invoke-virtual {v3, v4, v0, v5}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 195
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 196
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_3
|
|
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
|
|
|
|
.line 202
|
|
:catch_3
|
|
:try_start_4
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
const-string v2, "open_by_browser"
|
|
|
|
.line 203
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 204
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mbridge_cm_browser"
|
|
|
|
.line 205
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 204
|
|
invoke-virtual {v3, v4, v0, v5}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 206
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 207
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_4
|
|
.catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_4
|
|
|
|
.line 213
|
|
:catch_4
|
|
:try_start_5
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
const-string v2, "exits"
|
|
|
|
.line 214
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 215
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "mbridge_cm_exits"
|
|
|
|
.line 216
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
.line 215
|
|
invoke-virtual {v3, v4, v0, v5}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {v2, v0}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 217
|
|
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 218
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_5
|
|
.catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_5
|
|
|
|
:catch_5
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;Ljava/util/List;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 96
|
|
invoke-virtual {p0, p1}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
.line 98
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
const/high16 v1, 0x41200000 # 10.0f
|
|
|
|
invoke-static {v0, v1}, Lcom/mbridge/msdk/foundation/tools/ak;->a(Landroid/content/Context;F)I
|
|
|
|
move-result v0
|
|
|
|
.line 99
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const/high16 v2, 0x41a00000 # 20.0f
|
|
|
|
invoke-static {v1, v2}, Lcom/mbridge/msdk/foundation/tools/ak;->a(Landroid/content/Context;F)I
|
|
|
|
move-result v1
|
|
|
|
.line 100
|
|
invoke-virtual {p0, p1, v0, v1, v0}, Landroid/view/View;->setPadding(IIII)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 107
|
|
:catch_0
|
|
:try_start_1
|
|
invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_0
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;
|
|
|
|
.line 108
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
.line 109
|
|
iget-object v2, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 110
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->b:Ljava/lang/String;
|
|
|
|
const-string v5, "drawable"
|
|
|
|
.line 111
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
.line 110
|
|
invoke-virtual {v3, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 112
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 113
|
|
new-instance v2, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
.line 1280
|
|
sget v3, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$a;->b:I
|
|
|
|
const/4 v4, -0x1
|
|
|
|
.line 113
|
|
invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/16 v3, 0x20
|
|
|
|
.line 114
|
|
invoke-virtual {v2, v3, p1, v3, p1}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V
|
|
|
|
.line 115
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 116
|
|
iget-object v2, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->d:Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 117
|
|
iget-boolean v0, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->c:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/16 v0, 0x8
|
|
|
|
.line 118
|
|
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
.line 120
|
|
:cond_0
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/util/List;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 128
|
|
invoke-virtual {p0, v0}, Landroid/widget/LinearLayout;->setOrientation(I)V
|
|
|
|
.line 130
|
|
:try_start_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const/high16 v2, 0x41200000 # 10.0f
|
|
|
|
invoke-static {v1, v2}, Lcom/mbridge/msdk/foundation/tools/ak;->a(Landroid/content/Context;F)I
|
|
|
|
move-result v1
|
|
|
|
.line 131
|
|
invoke-virtual {p0, v0, v1, v0, v1}, Landroid/view/View;->setPadding(IIII)V
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 138
|
|
:catch_0
|
|
:try_start_1
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:goto_0
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;
|
|
|
|
.line 139
|
|
invoke-direct {p0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->b()Landroid/view/View;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Landroid/widget/ImageView;
|
|
|
|
.line 140
|
|
iget-object v2, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 141
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->b:Ljava/lang/String;
|
|
|
|
const-string v5, "drawable"
|
|
|
|
.line 142
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-virtual {v6}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
.line 141
|
|
invoke-virtual {v3, v4, v5, v6}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v2
|
|
|
|
.line 143
|
|
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 144
|
|
iget-object v2, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->d:Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
.line 145
|
|
iget-boolean v0, v0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar$b;->c:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/16 v0, 0x8
|
|
|
|
.line 146
|
|
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
.line 148
|
|
:cond_0
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
|
|
:try_end_1
|
|
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private b()Landroid/view/View;
|
|
.locals 3
|
|
|
|
.line 225
|
|
new-instance v0, Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 226
|
|
new-instance v1, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 228
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 229
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getItem(Ljava/lang/String;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
.line 66
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public hideTitle()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v1, ""
|
|
|
|
.line 91
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setButtonIcon(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
.line 244
|
|
invoke-virtual {p0, p1}, Landroid/view/View;->findViewWithTag(Ljava/lang/Object;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
.line 245
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v1
|
|
|
|
.line 246
|
|
invoke-static {}, Lcom/mbridge/msdk/foundation/controller/c;->m()Lcom/mbridge/msdk/foundation/controller/c;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/mbridge/msdk/foundation/controller/a;->g()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "drawable"
|
|
|
|
.line 245
|
|
invoke-virtual {v1, p2, v3, v2}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {v0, p2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p2
|
|
|
|
.line 247
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOnItemClickListener(Landroid/view/View$OnClickListener;)V
|
|
.locals 3
|
|
|
|
.line 59
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_0
|
|
|
|
.line 61
|
|
invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const/high16 v0, -0x1000000
|
|
|
|
.line 80
|
|
invoke-virtual {p0, p1, v0}, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->setTitle(Ljava/lang/String;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTitle(Ljava/lang/String;I)V
|
|
.locals 4
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->title:Ljava/lang/String;
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 1235
|
|
new-instance v0, Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V
|
|
|
|
.line 1236
|
|
new-instance v1, Landroid/widget/LinearLayout$LayoutParams;
|
|
|
|
const/4 v2, -0x1
|
|
|
|
invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->weight:F
|
|
|
|
.line 1238
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1239
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setClickable(Z)V
|
|
|
|
iput-object v0, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
const/16 v1, 0x40
|
|
|
|
const/16 v2, 0xa
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 73
|
|
invoke-virtual {v0, v1, v3, v2, v3}, Landroid/widget/TextView;->setPadding(IIII)V
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
.line 74
|
|
invoke-virtual {v0, p2}, Landroid/widget/TextView;->setTextColor(I)V
|
|
|
|
iget-object p2, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
.line 75
|
|
invoke-virtual {p0, p2, v3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V
|
|
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
.line 77
|
|
invoke-virtual {p2, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public showTitle()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->titleView:Landroid/widget/TextView;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/mbsignalcommon/commonwebview/ToolBar;->title:Ljava/lang/String;
|
|
|
|
.line 85
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|