Files
rr3-apk/smali_classes4/com/tapjoy/TJWebViewActivity$BridgeDelegate.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- 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
2026-02-18 16:13:44 -08:00

305 lines
7.5 KiB
Smali

.class public Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;
.super Lcom/tapjoy/TJJSBridgeDelegate;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/tapjoy/TJWebViewActivity;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "BridgeDelegate"
.end annotation
# instance fields
.field public final synthetic a:Lcom/tapjoy/TJWebViewActivity;
# direct methods
.method public constructor <init>(Lcom/tapjoy/TJWebViewActivity;)V
.locals 0
iput-object p1, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 1
invoke-direct {p0}, Lcom/tapjoy/TJJSBridgeDelegate;-><init>()V
return-void
.end method
# virtual methods
.method public dismiss()Z
.locals 1
.line 1
invoke-super {p0}, Lcom/tapjoy/TJJSBridgeDelegate;->dismiss()Z
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 2
invoke-virtual {v0}, Landroid/app/Activity;->finish()V
const/4 v0, 0x1
return v0
.end method
.method public fireContentReady()Z
.locals 2
.line 1
invoke-super {p0}, Lcom/tapjoy/TJJSBridgeDelegate;->fireContentReady()Z
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
const/4 v1, 0x0
.line 2
invoke-virtual {v0, v1}, Lcom/tapjoy/TJActivity;->setProgressSpinnerVisibility(Z)V
const/4 v0, 0x1
return v0
.end method
.method public getContext()Landroid/content/Context;
.locals 1
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
return-object v0
.end method
.method public getOrientation()Ljava/util/Map;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
.line 2
sget-object v1, Lcom/tapjoy/TJDeviceUtils;->INSTANCE:Lcom/tapjoy/TJDeviceUtils;
iget-object v2, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
invoke-virtual {v1, v2}, Lcom/tapjoy/TJDeviceUtils;->getScreenWidth(Landroid/content/Context;)I
move-result v2
iget-object v3, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 3
invoke-virtual {v1, v3}, Lcom/tapjoy/TJDeviceUtils;->getScreenHeight(Landroid/content/Context;)I
move-result v3
.line 4
invoke-virtual {v1, v2, v3}, Lcom/tapjoy/TJDeviceUtils;->getOrientationString(II)Ljava/lang/String;
move-result-object v1
const-string v4, "orientation"
invoke-virtual {v0, v4, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 5
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "width"
invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 6
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const-string v2, "height"
invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public getStatusBarHeight()I
.locals 2
.line 1
invoke-virtual {p0}, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->getContext()Landroid/content/Context;
move-result-object v0
if-nez v0, :cond_0
const/4 v0, 0x0
return v0
.line 3
:cond_0
sget-object v1, Lcom/tapjoy/TJDeviceUtils;->INSTANCE:Lcom/tapjoy/TJDeviceUtils;
invoke-virtual {v1, v0}, Lcom/tapjoy/TJDeviceUtils;->getStatusBarHeight(Landroid/content/Context;)I
move-result v0
return v0
.end method
.method public getTextZoom(Lcom/tapjoy/TJTaskHandler;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/tapjoy/TJTaskHandler<",
"Ljava/lang/Float;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/tapjoy/h1;
invoke-direct {v0, p0, p1}, Lcom/tapjoy/h1;-><init>(Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;Lcom/tapjoy/TJTaskHandler;)V
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public getWebView()Landroid/webkit/WebView;
.locals 1
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 1
iget-object v0, v0, Lcom/tapjoy/TJWebViewActivity;->f:Lcom/tapjoy/TJWebView;
return-object v0
.end method
.method public setBackgroundColor(Ljava/lang/String;Lcom/tapjoy/TJTaskHandler;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"Lcom/tapjoy/TJTaskHandler<",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 1
new-instance v0, Lcom/tapjoy/e1;
invoke-direct {v0, p0, p1, p2}, Lcom/tapjoy/e1;-><init>(Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;Ljava/lang/String;Lcom/tapjoy/TJTaskHandler;)V
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public setCloseButtonClickable(Z)V
.locals 1
.line 1
invoke-super {p0, p1}, Lcom/tapjoy/TJJSBridgeDelegate;->setCloseButtonClickable(Z)V
.line 2
new-instance v0, Lcom/tapjoy/g1;
invoke-direct {v0, p0, p1}, Lcom/tapjoy/g1;-><init>(Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;Z)V
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public setCloseButtonVisible(Z)V
.locals 1
.line 1
invoke-super {p0, p1}, Lcom/tapjoy/TJJSBridgeDelegate;->setCloseButtonVisible(Z)V
.line 2
new-instance v0, Lcom/tapjoy/f1;
invoke-direct {v0, p0, p1}, Lcom/tapjoy/f1;-><init>(Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;Z)V
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public setOrientation(I)Z
.locals 1
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 1
invoke-virtual {v0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V
const/4 p1, 0x1
return p1
.end method
.method public setTextZoom(F)V
.locals 1
.line 1
new-instance v0, Lcom/tapjoy/i1;
invoke-direct {v0, p0, p1}, Lcom/tapjoy/i1;-><init>(Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;F)V
invoke-static {v0}, Lcom/tapjoy/TapjoyUtil;->runOnMainThread(Ljava/lang/Runnable;)V
return-void
.end method
.method public shouldClose(Z)V
.locals 0
if-eqz p1, :cond_0
iget-object p1, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
.line 1
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
:cond_0
return-void
.end method
.method public unsetOrientation()Z
.locals 2
iget-object v0, p0, Lcom/tapjoy/TJWebViewActivity$BridgeDelegate;->a:Lcom/tapjoy/TJWebViewActivity;
const/4 v1, -0x1
.line 1
invoke-virtual {v0, v1}, Landroid/app/Activity;->setRequestedOrientation(I)V
const/4 v0, 0x1
return v0
.end method