- 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
191 lines
5.2 KiB
Smali
191 lines
5.2 KiB
Smali
.class public final Lcom/facebook/share/widget/ShareButton;
|
|
.super Lcom/facebook/share/widget/ShareButtonBase;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 6
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "fb_share_button_create"
|
|
|
|
const-string v5, "fb_share_button_did_tap"
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
.line 25
|
|
invoke-direct/range {v0 .. v5}, Lcom/facebook/share/widget/ShareButtonBase;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 6
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const-string v4, "fb_share_button_create"
|
|
|
|
const-string v5, "fb_share_button_did_tap"
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
.line 34
|
|
invoke-direct/range {v0 .. v5}, Lcom/facebook/share/widget/ShareButtonBase;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 6
|
|
|
|
const-string v4, "fb_share_button_create"
|
|
|
|
const-string v5, "fb_share_button_did_tap"
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move v3, p3
|
|
|
|
.line 43
|
|
invoke-direct/range {v0 .. v5}, Lcom/facebook/share/widget/ShareButtonBase;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;ILjava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public configureButton(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 0
|
|
|
|
.line 81
|
|
invoke-super {p0, p1, p2, p3, p4}, Lcom/facebook/share/widget/ShareButtonBase;->configureButton(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
.line 84
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
sget p2, Lcom/facebook/common/R$drawable;->com_facebook_button_icon:I
|
|
|
|
.line 83
|
|
invoke-static {p1, p2}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
const/4 p2, 0x0
|
|
|
|
.line 82
|
|
invoke-virtual {p0, p1, p2, p2, p2}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getDefaultRequestCode()I
|
|
.locals 1
|
|
|
|
.line 58
|
|
sget-object v0, Lcom/facebook/internal/CallbackManagerImpl$RequestCodeOffset;->Share:Lcom/facebook/internal/CallbackManagerImpl$RequestCodeOffset;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/internal/CallbackManagerImpl$RequestCodeOffset;->toRequestCode()I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDefaultStyleResource()I
|
|
.locals 1
|
|
|
|
sget v0, Lcom/facebook/share/R$style;->com_facebook_button_share:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDialog()Lcom/facebook/share/widget/ShareDialog;
|
|
.locals 3
|
|
|
|
.line 64
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 65
|
|
new-instance v0, Lcom/facebook/share/widget/ShareDialog;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getFragment()Landroidx/fragment/app/Fragment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/share/widget/ShareButtonBase;->getRequestCode()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/facebook/share/widget/ShareDialog;-><init>(Landroidx/fragment/app/Fragment;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 66
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getNativeFragment()Landroid/app/Fragment;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 67
|
|
new-instance v0, Lcom/facebook/share/widget/ShareDialog;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getNativeFragment()Landroid/app/Fragment;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/share/widget/ShareButtonBase;->getRequestCode()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/facebook/share/widget/ShareDialog;-><init>(Landroid/app/Fragment;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 69
|
|
:cond_1
|
|
new-instance v0, Lcom/facebook/share/widget/ShareDialog;
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/FacebookButtonBase;->getActivity()Landroid/app/Activity;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/share/widget/ShareButtonBase;->getRequestCode()I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/facebook/share/widget/ShareDialog;-><init>(Landroid/app/Activity;I)V
|
|
|
|
.line 71
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/facebook/share/widget/ShareButtonBase;->getCallbackManager()Lcom/facebook/CallbackManager;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/internal/FacebookDialogBase;->setCallbackManager(Lcom/facebook/CallbackManager;)V
|
|
|
|
return-object v0
|
|
.end method
|