apkfuckery/com.discord/smali/androidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton.smali

188 lines
4.7 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton;
2019-07-24 11:27:29 +00:00
.super Landroidx/appcompat/widget/AppCompatImageView;
.source "ActionMenuPresenter.java"
# interfaces
.implements Landroidx/appcompat/widget/ActionMenuView$ActionMenuChildView;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/appcompat/widget/ActionMenuPresenter;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x1
2019-07-24 11:27:29 +00:00
name = "OverflowMenuButton"
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public final mTempPts:[F
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final synthetic this$0:Landroidx/appcompat/widget/ActionMenuPresenter;
2019-07-24 11:27:29 +00:00
# direct methods
.method public constructor <init>(Landroidx/appcompat/widget/ActionMenuPresenter;Landroid/content/Context;)V
.locals 2
iput-object p1, p0, Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton;->this$0:Landroidx/appcompat/widget/ActionMenuPresenter;
sget v0, Landroidx/appcompat/R$attr;->actionOverflowButtonStyle:I
const/4 v1, 0x0
invoke-direct {p0, p2, v1, v0}, Landroidx/appcompat/widget/AppCompatImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
const/4 p2, 0x2
new-array p2, p2, [F
iput-object p2, p0, Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton;->mTempPts:[F
const/4 p2, 0x1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2}, Landroid/widget/ImageView;->setClickable(Z)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2}, Landroid/widget/ImageView;->setFocusable(Z)V
2019-07-24 11:27:29 +00:00
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0}, Landroid/widget/ImageView;->setVisibility(I)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2}, Landroid/widget/ImageView;->setEnabled(Z)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getContentDescription()Ljava/lang/CharSequence;
2019-07-24 11:27:29 +00:00
move-result-object p2
invoke-static {p0, p2}, Landroidx/appcompat/widget/TooltipCompat;->setTooltipText(Landroid/view/View;Ljava/lang/CharSequence;)V
new-instance p2, Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton$1;
invoke-direct {p2, p0, p0, p1}, Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton$1;-><init>(Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton;Landroid/view/View;Landroidx/appcompat/widget/ActionMenuPresenter;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method public needsDividerAfter()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public needsDividerBefore()Z
.locals 1
const/4 v0, 0x0
return v0
.end method
.method public performClick()Z
.locals 2
2019-12-06 03:29:40 +00:00
invoke-super {p0}, Landroid/widget/ImageView;->performClick()Z
2019-07-24 11:27:29 +00:00
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, v0}, Landroid/widget/ImageView;->playSoundEffect(I)V
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/ActionMenuPresenter$OverflowMenuButton;->this$0:Landroidx/appcompat/widget/ActionMenuPresenter;
invoke-virtual {v0}, Landroidx/appcompat/widget/ActionMenuPresenter;->showOverflowMenu()Z
return v1
.end method
2019-12-06 03:29:40 +00:00
.method public setFrame(IIII)Z
2019-07-24 11:27:29 +00:00
.locals 4
2019-12-06 03:29:40 +00:00
invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ImageView;->setFrame(IIII)Z
2019-07-24 11:27:29 +00:00
move-result p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object p2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object p3
if-eqz p2, :cond_0
if-eqz p3, :cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getWidth()I
2019-07-24 11:27:29 +00:00
move-result p2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getHeight()I
2019-07-24 11:27:29 +00:00
move-result p4
invoke-static {p2, p4}, Ljava/lang/Math;->max(II)I
move-result v0
div-int/lit8 v0, v0, 0x2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingLeft()I
2019-07-24 11:27:29 +00:00
move-result v1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingRight()I
2019-07-24 11:27:29 +00:00
move-result v2
sub-int/2addr v1, v2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingTop()I
2019-07-24 11:27:29 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingBottom()I
2019-07-24 11:27:29 +00:00
move-result v3
sub-int/2addr v2, v3
add-int/2addr p2, v1
div-int/lit8 p2, p2, 0x2
add-int/2addr p4, v2
div-int/lit8 p4, p4, 0x2
sub-int v1, p2, v0
sub-int v2, p4, v0
add-int/2addr p2, v0
add-int/2addr p4, v0
invoke-static {p3, v1, v2, p2, p4}, Landroidx/core/graphics/drawable/DrawableCompat;->setHotspotBounds(Landroid/graphics/drawable/Drawable;IIII)V
:cond_0
return p1
.end method