2019-07-24 11:27:29 +00:00
|
|
|
.class public Lcom/google/android/material/floatingactionbutton/FloatingActionButton;
|
|
|
|
.super Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
|
|
|
.source "FloatingActionButton.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Landroidx/core/view/TintableBackgroundView;
|
|
|
|
.implements Landroidx/core/widget/TintableImageSourceView;
|
|
|
|
.implements Lcom/google/android/material/expandable/ExpandableTransformationWidget;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation runtime Landroidx/coordinatorlayout/widget/CoordinatorLayout$DefaultBehavior;
|
|
|
|
value = Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Behavior;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;,
|
|
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$BaseBehavior;,
|
|
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Behavior;,
|
|
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$Size;,
|
|
|
|
Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field private static final AUTO_MINI_LARGEST_SCREEN_WIDTH:I = 0x1d6
|
|
|
|
|
|
|
|
.field private static final EXPANDABLE_WIDGET_HELPER_KEY:Ljava/lang/String; = "expandableWidgetHelper"
|
|
|
|
|
|
|
|
.field private static final LOG_TAG:Ljava/lang/String; = "FloatingActionButton"
|
|
|
|
|
|
|
|
.field public static final NO_CUSTOM_SIZE:I = 0x0
|
|
|
|
|
|
|
|
.field public static final SIZE_AUTO:I = -0x1
|
|
|
|
|
|
|
|
.field public static final SIZE_MINI:I = 0x1
|
|
|
|
|
|
|
|
.field public static final SIZE_NORMAL:I
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
.field private backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
.field private borderWidth:I
|
|
|
|
|
|
|
|
.field compatPadding:Z
|
|
|
|
|
|
|
|
.field private customSize:I
|
|
|
|
|
|
|
|
.field private final expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
.field private final imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
|
|
|
|
.field private imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
.field private imagePadding:I
|
|
|
|
|
|
|
|
.field private imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
.field private impl:Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
.field private maxImageSize:I
|
|
|
|
|
|
|
|
.field private rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
.field final shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
.field private size:I
|
|
|
|
|
|
|
|
.field private final touchArea:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
sget v0, Lcom/google/android/material/R$attr;->floatingActionButtonStyle:I
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/internal/VisibilityAwareImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
new-instance v0, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
sget-object v3, Lcom/google/android/material/R$styleable;->FloatingActionButton:[I
|
|
|
|
|
|
|
|
sget v5, Lcom/google/android/material/R$style;->Widget_Design_FloatingActionButton:I
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
new-array v6, v0, [I
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
move v4, p3
|
|
|
|
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_backgroundTint:I
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iput-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_backgroundTintMode:I
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-static {v2, v4}, Lcom/google/android/material/internal/ViewUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iput-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_rippleColor:I
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v2}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iput-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_fabSize:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/TypedArray;->getInt(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_fabCustomSize:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_borderWidth:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->borderWidth:I
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$styleable;->FloatingActionButton_elevation:I
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
sget v4, Lcom/google/android/material/R$styleable;->FloatingActionButton_hoveredFocusedTranslationZ:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v4, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_pressedTranslationZ:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5, v3}, Landroid/content/res/TypedArray;->getDimension(IF)F
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_useCompatPadding:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
iput-boolean v5, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_maxImageSize:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5, v0}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iput v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
|
|
|
|
sget v0, Lcom/google/android/material/R$styleable;->FloatingActionButton_showMotionSpec:I
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
sget v5, Lcom/google/android/material/R$styleable;->FloatingActionButton_hideMotionSpec:I
|
|
|
|
|
|
|
|
invoke-static {p1, v1, v5}, Lcom/google/android/material/animation/MotionSpec;->createFromAttribute(Landroid/content/Context;Landroid/content/res/TypedArray;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
|
|
|
|
new-instance v1, Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Landroidx/appcompat/widget/AppCompatImageHelper;-><init>(Landroid/widget/ImageView;)V
|
|
|
|
|
|
|
|
iput-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2, p3}, Landroidx/appcompat/widget/AppCompatImageHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
new-instance p2, Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;-><init>(Lcom/google/android/material/expandable/ExpandableWidget;)V
|
|
|
|
|
|
|
|
iput-object p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget-object p3, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
iget-object v5, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
iget v6, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->borderWidth:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, v1, v5, v6}, Lcom/google/android/material/floatingactionbutton/a;->a(Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;Landroid/content/res/ColorStateList;I)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/floatingactionbutton/a;->setElevation(F)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p2, v4}, Lcom/google/android/material/floatingactionbutton/a;->s(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p2, v3}, Lcom/google/android/material/floatingactionbutton/a;->t(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget p3, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
|
|
|
|
iget v1, p2, Lcom/google/android/material/floatingactionbutton/a;->maxImageSize:I
|
|
|
|
|
|
|
|
if-eq v1, p3, :cond_0
|
|
|
|
|
|
|
|
iput p3, p2, Lcom/google/android/material/floatingactionbutton/a;->maxImageSize:I
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p2}, Lcom/google/android/material/floatingactionbutton/a;->yh()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iput-object v0, p2, Lcom/google/android/material/floatingactionbutton/a;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iput-object p1, p2, Lcom/google/android/material/floatingactionbutton/a;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
sget-object p1, Landroid/widget/ImageView$ScaleType;->MATRIX:Landroid/widget/ImageView$ScaleType;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic access$000(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)I
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget p0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imagePadding:I
|
|
|
|
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method static synthetic access$101(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private createImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v1, 0x15
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Lcom/google/android/material/floatingactionbutton/b;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/material/floatingactionbutton/b;-><init>(Lcom/google/android/material/internal/VisibilityAwareImageButton;Lcom/google/android/material/shadow/ShadowViewDelegate;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$a;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;)V
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/material/floatingactionbutton/a;-><init>(Lcom/google/android/material/internal/VisibilityAwareImageButton;Lcom/google/android/material/shadow/ShadowViewDelegate;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->createImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->impl:Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private getSizeDimension(I)I
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, -0x1
|
|
|
|
|
|
|
|
if-eq p1, v2, :cond_2
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_1
|
|
|
|
|
|
|
|
sget p1, Lcom/google/android/material/R$dimen;->design_fab_size_normal:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget p1, Lcom/google/android/material/R$dimen;->design_fab_size_mini:I
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget p1, p1, Landroid/content/res/Configuration;->screenWidthDp:I
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/content/res/Configuration;->screenHeightDp:I
|
|
|
|
|
|
|
|
invoke-static {p1, v1}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/16 v1, 0x1d6
|
|
|
|
|
|
|
|
if-ge p1, v1, :cond_3
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->top:I
|
|
|
|
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->top:I
|
|
|
|
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
iget v0, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
|
|
|
|
iput v0, p1, Landroid/graphics/Rect;->bottom:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private onApplySupportImageTint()V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
invoke-static {v0}, Landroidx/core/graphics/drawable/DrawableCompat;->clearColorFilter(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getDrawableState()[I
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->mutate()Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getPorterDuffColorFilter(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setColorFilter(Landroid/graphics/ColorFilter;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private static resolveAdjustedSize(II)I
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
const/high16 v1, -0x80000000
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
const/high16 p0, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
|
|
|
|
move p0, p1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
|
|
|
|
throw p0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-static {p0, p1}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_0
|
|
|
|
return p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lcom/google/android/material/floatingactionbutton/a$d;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton$1;-><init>(Lcom/google/android/material/floatingactionbutton/FloatingActionButton;Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public addOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public addOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public clearCustomSize()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCustomSize(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected drawableStateChanged()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->drawableStateChanged()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getDrawableState()[I
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/google/android/material/floatingactionbutton/a;->g([I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCompatElevation()F
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->getElevation()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCompatHoveredFocusedTranslationZ()F
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMV:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCompatPressedTranslationZ()F
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMW:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getContentBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMU:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getContentRect(Landroid/graphics/Rect;)Z
|
|
|
|
.locals 3
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getWidth()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getHeight()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1, v1, v0, v2}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCustomSize()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getExpandedComponentIdHint()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->getExpandedComponentIdHint()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getHideMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getMeasuredContentRect(Landroid/graphics/Rect;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p1, v2, v2, v0, v1}, Landroid/graphics/Rect;->set(IIII)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->offsetRectWithShadow(Landroid/graphics/Rect;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getRippleColor()I
|
|
|
|
.locals 1
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getRippleColorStateList()Landroid/content/res/ColorStateList;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getShowMotionSpec()Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSize()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method getSizeDimension()I
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
|
|
|
|
invoke-direct {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension(I)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getBackgroundTintList()Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSupportImageTintList()Landroid/content/res/ColorStateList;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSupportImageTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getUseCompatPadding()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hide()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method hide(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lcom/google/android/material/floatingactionbutton/a$d;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->isOrWillBeHidden()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMM:Landroid/animation/Animator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMM:Landroid/animation/Animator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/animation/Animator;->cancel()V
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->yp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMO:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_2
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget v2, Lcom/google/android/material/R$animator;->design_fab_hide_motion_spec:I
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMO:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMO:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2, v2, v2}, Lcom/google/android/material/floatingactionbutton/a;->a(Lcom/google/android/material/animation/MotionSpec;FFF)Landroid/animation/AnimatorSet;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Lcom/google/android/material/floatingactionbutton/a$1;
|
|
|
|
|
|
|
|
invoke-direct {v2, v0, p2, p1}, Lcom/google/android/material/floatingactionbutton/a$1;-><init>(Lcom/google/android/material/floatingactionbutton/a;ZLcom/google/android/material/floatingactionbutton/a$d;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroid/animation/Animator$AnimatorListener;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
const/4 v1, 0x4
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v0, v1, p2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->internalSetVisibility(IZ)V
|
|
|
|
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {p1}, Lcom/google/android/material/floatingactionbutton/a$d;->yg()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isExpanded()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->isExpanded()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOrWillBeHidden()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->isOrWillBeHidden()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOrWillBeShown()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->isOrWillBeShown()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public jumpDrawablesToCurrentState()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->jumpDrawablesToCurrentState()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->yi()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onAttachedToWindow()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onAttachedToWindow()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->yl()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/android/material/floatingactionbutton/a$3;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/floatingactionbutton/a$3;-><init>(Lcom/google/android/material/floatingactionbutton/a;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onDetachedFromWindow()V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onDetachedFromWindow()V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v2, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/ViewTreeObserver;->removeOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNg:Landroid/view/ViewTreeObserver$OnPreDrawListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onMeasure(II)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getSizeDimension()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->maxImageSize:I
|
|
|
|
|
|
|
|
sub-int v1, v0, v1
|
|
|
|
|
|
|
|
div-int/lit8 v1, v1, 0x2
|
|
|
|
|
|
|
|
iput v1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imagePadding:I
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/floatingactionbutton/a;->yk()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->resolveAdjustedSize(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {v0, p2}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->resolveAdjustedSize(II)I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iget-object p2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget p2, p2, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
add-int/2addr p2, p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
add-int/2addr p2, v0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->top:I
|
|
|
|
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->shadowPadding:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/graphics/Rect;->bottom:I
|
|
|
|
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p2, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setMeasuredDimension(II)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
instance-of v0, p1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/stateful/ExtendableSavedState;->getSuperState()Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-super {p0, v0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
iget-object p1, p1, Lcom/google/android/material/stateful/ExtendableSavedState;->extendableStates:Landroidx/collection/SimpleArrayMap;
|
|
|
|
|
|
|
|
const-string v1, "expandableWidgetHelper"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroid/os/Bundle;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->onRestoreInstanceState(Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method protected onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Lcom/google/android/material/stateful/ExtendableSavedState;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Lcom/google/android/material/stateful/ExtendableSavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
iget-object v0, v1, Lcom/google/android/material/stateful/ExtendableSavedState;->extendableStates:Landroidx/collection/SimpleArrayMap;
|
|
|
|
|
|
|
|
iget-object v2, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->onSaveInstanceState()Landroid/os/Bundle;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "expandableWidgetHelper"
|
|
|
|
|
|
|
|
invoke-virtual {v0, v3, v2}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContentRect(Landroid/graphics/Rect;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->touchArea:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
float-to-int v2, v2
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/Rect;->contains(II)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public removeOnHideAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMZ:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public removeOnShowAnimationListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBackgroundColor(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBackgroundResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string p1, "FloatingActionButton"
|
|
|
|
|
|
|
|
const-string v0, "Setting a custom background is not supported."
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_1
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMR:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMR:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMT:Lcom/google/android/material/internal/CircularBorderDrawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMT:Lcom/google/android/material/internal/CircularBorderDrawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/internal/CircularBorderDrawable;->setBorderTint(Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->backgroundTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMR:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v0, v0, Lcom/google/android/material/floatingactionbutton/a;->aMR:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintMode(Landroid/graphics/drawable/Drawable;Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatElevation(F)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/a;->setElevation(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatElevationResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatElevation(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatHoveredFocusedTranslationZ(F)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/a;->s(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatHoveredFocusedTranslationZResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatHoveredFocusedTranslationZ(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatPressedTranslationZ(F)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/floatingactionbutton/a;->t(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCompatPressedTranslationZResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDimension(I)F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setCompatPressedTranslationZ(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCustomSize(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string v0, "Custom size must be non-negative"
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setExpanded(Z)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->setExpanded(Z)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setExpandedComponentIdHint(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->expandableWidgetHelper:Lcom/google/android/material/expandable/ExpandableWidgetHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lcom/google/android/material/expandable/ExpandableWidgetHelper;->setExpandedComponentIdHint(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->hideMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setHideMotionSpecResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setHideMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/floatingactionbutton/a;->yh()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setImageResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageHelper:Landroidx/appcompat/widget/AppCompatImageHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatImageHelper;->setImageResource(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setRippleColor(I)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->rippleColor:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/google/android/material/floatingactionbutton/a;->setRippleColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShowMotionSpecResource(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setShowMotionSpec(Lcom/google/android/material/animation/MotionSpec;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSize(I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->customSize:I
|
|
|
|
|
|
|
|
iget v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
|
|
|
|
if-eq p1, v0, :cond_0
|
|
|
|
|
|
|
|
iput p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->size:I
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->requestLayout()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSupportImageTintList(Landroid/content/res/ColorStateList;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageTint:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSupportImageTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->imageMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->onApplySupportImageTint()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setUseCompatPadding(Z)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
|
|
|
|
if-eq v0, p1, :cond_0
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->compatPadding:Z
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {p1}, Lcom/google/android/material/floatingactionbutton/a;->yj()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public show()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method show(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;Z)V
|
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->getImpl()Lcom/google/android/material/floatingactionbutton/a;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->wrapOnVisibilityChangedListener(Lcom/google/android/material/floatingactionbutton/FloatingActionButton$OnVisibilityChangedListener;)Lcom/google/android/material/floatingactionbutton/a$d;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->isOrWillBeShown()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMM:Landroid/animation/Animator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMM:Landroid/animation/Animator;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/animation/Animator;->cancel()V
|
|
|
|
|
|
|
|
:cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/a;->yp()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/high16 v2, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setAlpha(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setScaleY(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setScaleX(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, v3}, Lcom/google/android/material/floatingactionbutton/a;->u(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->showMotionSpec:Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMN:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
sget v3, Lcom/google/android/material/R$animator;->design_fab_show_motion_spec:I
|
|
|
|
|
|
|
|
invoke-static {v1, v3}, Lcom/google/android/material/animation/MotionSpec;->createFromResource(Landroid/content/Context;I)Lcom/google/android/material/animation/MotionSpec;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iput-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMN:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMN:Lcom/google/android/material/animation/MotionSpec;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1, v2, v2, v2}, Lcom/google/android/material/floatingactionbutton/a;->a(Lcom/google/android/material/animation/MotionSpec;FFF)Landroid/animation/AnimatorSet;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Lcom/google/android/material/floatingactionbutton/a$2;
|
|
|
|
|
|
|
|
invoke-direct {v2, v0, p2, p1}, Lcom/google/android/material/floatingactionbutton/a$2;-><init>(Lcom/google/android/material/floatingactionbutton/a;ZLcom/google/android/material/floatingactionbutton/a$d;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p1, v0, Lcom/google/android/material/floatingactionbutton/a;->aMY:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Landroid/animation/Animator$AnimatorListener;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p2}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v1}, Landroid/animation/AnimatorSet;->start()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_5
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object v1, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3, p2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->internalSetVisibility(IZ)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p2, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setAlpha(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p2, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setScaleY(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
iget-object p2, v0, Lcom/google/android/material/floatingactionbutton/a;->aNd:Lcom/google/android/material/internal/VisibilityAwareImageButton;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v2}, Lcom/google/android/material/internal/VisibilityAwareImageButton;->setScaleX(F)V
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-virtual {v0, v2}, Lcom/google/android/material/floatingactionbutton/a;->u(F)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {p1}, Lcom/google/android/material/floatingactionbutton/a$d;->yf()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_6
|
|
|
|
return-void
|
|
|
|
.end method
|