Files
rr3-apk/smali/androidx/appcompat/widget/AppCompatPopupWindow.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

232 lines
6.0 KiB
Smali

.class Landroidx/appcompat/widget/AppCompatPopupWindow;
.super Landroid/widget/PopupWindow;
.source "SourceFile"
# static fields
.field private static final COMPAT_OVERLAP_ANCHOR:Z
# instance fields
.field private mOverlapAnchor:Z
# direct methods
.method static constructor <clinit>()V
.locals 1
const/4 v0, 0x0
sput-boolean v0, Landroidx/appcompat/widget/AppCompatPopupWindow;->COMPAT_OVERLAP_ANCHOR:Z
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.locals 1
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # I
.annotation build Landroidx/annotation/AttrRes;
.end annotation
.end param
.line 40
invoke-direct {p0, p1, p2, p3}, Landroid/widget/PopupWindow;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/4 v0, 0x0
.line 41
invoke-direct {p0, p1, p2, p3, v0}, Landroidx/appcompat/widget/AppCompatPopupWindow;->init(Landroid/content/Context;Landroid/util/AttributeSet;II)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroid/util/AttributeSet;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # I
.annotation build Landroidx/annotation/AttrRes;
.end annotation
.end param
.param p4 # I
.annotation build Landroidx/annotation/StyleRes;
.end annotation
.end param
.line 46
invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/PopupWindow;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.line 47
invoke-direct {p0, p1, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatPopupWindow;->init(Landroid/content/Context;Landroid/util/AttributeSet;II)V
return-void
.end method
.method private init(Landroid/content/Context;Landroid/util/AttributeSet;II)V
.locals 1
.line 51
sget-object v0, Landroidx/appcompat/R$styleable;->PopupWindow:[I
invoke-static {p1, p2, v0, p3, p4}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
move-result-object p1
.line 53
sget p2, Landroidx/appcompat/R$styleable;->PopupWindow_overlapAnchor:I
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
move-result p2
if-eqz p2, :cond_0
.line 54
sget p2, Landroidx/appcompat/R$styleable;->PopupWindow_overlapAnchor:I
const/4 p3, 0x0
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
move-result p2
invoke-direct {p0, p2}, Landroidx/appcompat/widget/AppCompatPopupWindow;->setSupportOverlapAnchor(Z)V
.line 57
:cond_0
sget p2, Landroidx/appcompat/R$styleable;->PopupWindow_android_popupBackground:I
invoke-virtual {p1, p2}, Landroidx/appcompat/widget/TintTypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p2
invoke-virtual {p0, p2}, Landroid/widget/PopupWindow;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 59
invoke-virtual {p1}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
return-void
.end method
.method private setSupportOverlapAnchor(Z)V
.locals 1
sget-boolean v0, Landroidx/appcompat/widget/AppCompatPopupWindow;->COMPAT_OVERLAP_ANCHOR:Z
if-eqz v0, :cond_0
iput-boolean p1, p0, Landroidx/appcompat/widget/AppCompatPopupWindow;->mOverlapAnchor:Z
goto :goto_0
.line 93
:cond_0
invoke-static {p0, p1}, Landroidx/core/widget/PopupWindowCompat;->setOverlapAnchor(Landroid/widget/PopupWindow;Z)V
:goto_0
return-void
.end method
# virtual methods
.method public showAsDropDown(Landroid/view/View;II)V
.locals 1
sget-boolean v0, Landroidx/appcompat/widget/AppCompatPopupWindow;->COMPAT_OVERLAP_ANCHOR:Z
if-eqz v0, :cond_0
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatPopupWindow;->mOverlapAnchor:Z
if-eqz v0, :cond_0
.line 66
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result v0
sub-int/2addr p3, v0
.line 68
:cond_0
invoke-super {p0, p1, p2, p3}, Landroid/widget/PopupWindow;->showAsDropDown(Landroid/view/View;II)V
return-void
.end method
.method public showAsDropDown(Landroid/view/View;III)V
.locals 1
sget-boolean v0, Landroidx/appcompat/widget/AppCompatPopupWindow;->COMPAT_OVERLAP_ANCHOR:Z
if-eqz v0, :cond_0
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatPopupWindow;->mOverlapAnchor:Z
if-eqz v0, :cond_0
.line 75
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result v0
sub-int/2addr p3, v0
.line 77
:cond_0
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/PopupWindow;->showAsDropDown(Landroid/view/View;III)V
return-void
.end method
.method public update(Landroid/view/View;IIII)V
.locals 6
sget-boolean v0, Landroidx/appcompat/widget/AppCompatPopupWindow;->COMPAT_OVERLAP_ANCHOR:Z
if-eqz v0, :cond_0
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatPopupWindow;->mOverlapAnchor:Z
if-eqz v0, :cond_0
.line 84
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result v0
sub-int/2addr p3, v0
:cond_0
move v3, p3
move-object v0, p0
move-object v1, p1
move v2, p2
move v4, p4
move v5, p5
.line 86
invoke-super/range {v0 .. v5}, Landroid/widget/PopupWindow;->update(Landroid/view/View;IIII)V
return-void
.end method