e.smali

.class public final Le2/e;
.super Ljava/lang/Object;
.source "HierarchyUtils.kt"


# static fields
.field public static final a:Le2/e;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    new-instance v0, Le2/e;

    invoke-direct {v0}, Le2/e;-><init>()V

    sput-object v0, Le2/e;->a:Le2/e;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Lcom/facebook/drawee/generic/RoundingParams;Le2/k;)Lcom/facebook/drawee/generic/RoundingParams;
    .registers 6

    invoke-virtual {p2}, Le2/k;->f()Ljava/lang/Integer;

    move-result-object v0

    if-eqz v0, :cond_d

    invoke-virtual {v0}, Ljava/lang/Number;->intValue()I

    move-result v0

    invoke-virtual {p1, v0}, Lcom/facebook/drawee/generic/RoundingParams;->setOverlayColor(I)Lcom/facebook/drawee/generic/RoundingParams;

    :cond_d
    invoke-virtual {p2}, Le2/k;->h()Ljava/lang/Integer;

    move-result-object v0

    const/4 v1, 0x0

    if-eqz v0, :cond_23

    invoke-virtual {v0}, Ljava/lang/Number;->intValue()I

    move-result v0

    invoke-virtual {p2}, Le2/k;->j()F

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->max(FF)F

    move-result v2

    invoke-virtual {p1, v0, v2}, Lcom/facebook/drawee/generic/RoundingParams;->setBorder(IF)Lcom/facebook/drawee/generic/RoundingParams;

    :cond_23
    sget-object v0, Lcom/facebook/drawee/generic/RoundingParams$RoundingMethod;->BITMAP_ONLY:Lcom/facebook/drawee/generic/RoundingParams$RoundingMethod;

    invoke-virtual {p1}, Lcom/facebook/drawee/generic/RoundingParams;->getRoundingMethod()Lcom/facebook/drawee/generic/RoundingParams$RoundingMethod;

    move-result-object v2

    if-ne v0, v2, :cond_36

    invoke-virtual {p2}, Le2/k;->i()F

    move-result p2

    invoke-static {v1, p2}, Ljava/lang/Math;->max(FF)F

    move-result p2

    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/RoundingParams;->setPadding(F)Lcom/facebook/drawee/generic/RoundingParams;

    :cond_36
    return-object p1
.end method

.method public final a(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V
    .registers 4

    invoke-static {p1, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p0, p2, p1}, Le2/e;->a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final a(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;I)V
    .registers 4

    invoke-static {p1, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p2, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setPressedStateOverlay(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;

    return-void
.end method

.method public final a(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/res/TypedArray;)V
    .registers 23

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p3

    move-object/from16 v3, p4

    sget v4, Le2/j;->AsyncImageView_pressedStateOverlayImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    const/4 v5, -0x1

    if-eqz v4, :cond_1c

    sget v4, Le2/j;->AsyncImageView_pressedStateOverlayImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    move-object/from16 v6, p2

    invoke-virtual {v0, v1, v6, v4}, Le2/e;->a(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;I)V

    :cond_1c
    if-eqz v2, :cond_113

    sget v4, Le2/j;->AsyncImageView_actualScaleType:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_2f

    sget v4, Le2/j;->AsyncImageView_actualScaleType:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v4

    invoke-virtual {v0, v2, v4}, Le2/e;->a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V

    :cond_2f
    sget v4, Le2/j;->AsyncImageView_fadeDuration:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    const/4 v6, 0x0

    if-eqz v4, :cond_42

    sget v4, Le2/j;->AsyncImageView_fadeDuration:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v4

    invoke-virtual {v2, v4}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setFadeDuration(I)V

    goto :goto_45

    :cond_42
    invoke-virtual {v2, v6}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setFadeDuration(I)V

    :goto_45
    sget v4, Le2/j;->AsyncImageView_placeholderImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_5c

    sget v4, Le2/j;->AsyncImageView_placeholderImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    sget v7, Le2/j;->AsyncImageView_placeholderScaleType:I

    invoke-virtual {v3, v7, v5}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v7

    invoke-virtual {v0, v2, v1, v4, v7}, Le2/e;->b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V

    :cond_5c
    sget v4, Le2/j;->AsyncImageView_retryImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_73

    sget v4, Le2/j;->AsyncImageView_retryImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    sget v7, Le2/j;->AsyncImageView_retryScaleType:I

    invoke-virtual {v3, v7, v5}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v7

    invoke-virtual {v0, v2, v1, v4, v7}, Le2/e;->c(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V

    :cond_73
    sget v4, Le2/j;->AsyncImageView_failureImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_8a

    sget v4, Le2/j;->AsyncImageView_failureImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    sget v7, Le2/j;->AsyncImageView_failureScaleType:I

    invoke-virtual {v3, v7, v5}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result v7

    invoke-virtual {v0, v2, v1, v4, v7}, Le2/e;->a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V

    :cond_8a
    sget v4, Le2/j;->AsyncImageView_backgroundImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_9b

    sget v4, Le2/j;->AsyncImageView_backgroundImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    invoke-virtual {v0, v1, v2, v4}, Le2/e;->a(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V

    :cond_9b
    sget v4, Le2/j;->AsyncImageView_overlayImage:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_ac

    sget v4, Le2/j;->AsyncImageView_overlayImage:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result v4

    invoke-virtual {v0, v1, v2, v4}, Le2/e;->b(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V

    :cond_ac
    new-instance v1, Le2/k;

    sget v4, Le2/j;->AsyncImageView_roundAsCircle:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v8

    sget v4, Le2/j;->AsyncImageView_roundedCornerRadius:I

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result v9

    sget v4, Le2/j;->AsyncImageView_roundTopLeft:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v10

    sget v4, Le2/j;->AsyncImageView_roundTopRight:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v11

    sget v4, Le2/j;->AsyncImageView_roundBottomRight:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v12

    sget v4, Le2/j;->AsyncImageView_roundBottomLeft:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result v13

    sget v4, Le2/j;->AsyncImageView_roundWithOverlayColor:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    const/4 v7, 0x0

    if-eqz v4, :cond_e8

    sget v4, Le2/j;->AsyncImageView_roundWithOverlayColor:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    move-object v14, v4

    goto :goto_e9

    :cond_e8
    move-object v14, v7

    :goto_e9
    sget v4, Le2/j;->AsyncImageView_roundingBorderWidth:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result v15

    sget v4, Le2/j;->AsyncImageView_roundingBorderColor:I

    invoke-virtual {v3, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v4

    if-eqz v4, :cond_104

    sget v4, Le2/j;->AsyncImageView_roundingBorderColor:I

    invoke-virtual {v3, v4, v6}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v4

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    move-object/from16 v16, v4

    goto :goto_106

    :cond_104
    move-object/from16 v16, v7

    :goto_106
    sget v4, Le2/j;->AsyncImageView_roundingBorderPadding:I

    invoke-virtual {v3, v4, v5}, Landroid/content/res/TypedArray;->getDimension(IF)F

    move-result v17

    move-object v7, v1

    invoke-direct/range {v7 .. v17}, Le2/k;-><init>(ZFZZZZLjava/lang/Integer;FLjava/lang/Integer;F)V

    invoke-virtual {v0, v2, v1}, Le2/e;->a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Le2/k;)V

    :cond_113
    return-void
.end method

.method public final a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V
    .registers 3

    invoke-static {p2}, Le2/f;->b(I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setActualImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    return-void
.end method

.method public final a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V
    .registers 5

    invoke-static {p2, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-static {p4}, Le2/f;->b(I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;

    move-result-object p3

    invoke-virtual {p0, p1, p2, p3}, Le2/e;->a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    return-void
.end method

.method public final a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;)V
    .registers 3

    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setBackgroundImage(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
    .registers 4

    if-eqz p3, :cond_6

    invoke-virtual {p1, p2, p3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setFailureImage(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    goto :goto_9

    :cond_6
    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setFailureImage(Landroid/graphics/drawable/Drawable;)V

    :goto_9
    return-void
.end method

.method public final a(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Le2/k;)V
    .registers 8

    invoke-virtual {p2}, Le2/k;->a()Z

    move-result v0

    if-eqz v0, :cond_16

    invoke-static {}, Lcom/facebook/drawee/generic/RoundingParams;->asCircle()Lcom/facebook/drawee/generic/RoundingParams;

    move-result-object v0

    const-string v1, "RoundingParams.asCircle()"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0, v0, p2}, Le2/e;->a(Lcom/facebook/drawee/generic/RoundingParams;Le2/k;)Lcom/facebook/drawee/generic/RoundingParams;

    invoke-virtual {p1, v0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setRoundingParams(Lcom/facebook/drawee/generic/RoundingParams;)V

    return-void

    :cond_16
    invoke-virtual {p2}, Le2/k;->d()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_22

    invoke-virtual {p2}, Le2/k;->g()F

    move-result v0

    goto :goto_23

    :cond_22
    const/4 v0, 0x0

    :goto_23
    invoke-virtual {p2}, Le2/k;->e()Z

    move-result v2

    if-eqz v2, :cond_2e

    invoke-virtual {p2}, Le2/k;->g()F

    move-result v2

    goto :goto_2f

    :cond_2e
    const/4 v2, 0x0

    :goto_2f
    invoke-virtual {p2}, Le2/k;->c()Z

    move-result v3

    if-eqz v3, :cond_3a

    invoke-virtual {p2}, Le2/k;->g()F

    move-result v3

    goto :goto_3b

    :cond_3a
    const/4 v3, 0x0

    :goto_3b
    invoke-virtual {p2}, Le2/k;->b()Z

    move-result v4

    if-eqz v4, :cond_45

    invoke-virtual {p2}, Le2/k;->g()F

    move-result v1

    :cond_45
    invoke-static {v0, v2, v3, v1}, Lcom/facebook/drawee/generic/RoundingParams;->fromCornersRadii(FFFF)Lcom/facebook/drawee/generic/RoundingParams;

    move-result-object v0

    const-string v1, "RoundingParams.fromCorne\u2026rRadius else 0f\n        )"

    invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p0, v0, p2}, Le2/e;->a(Lcom/facebook/drawee/generic/RoundingParams;Le2/k;)Lcom/facebook/drawee/generic/RoundingParams;

    invoke-virtual {p1, v0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setRoundingParams(Lcom/facebook/drawee/generic/RoundingParams;)V

    return-void
.end method

.method public final b(Landroid/content/Context;Lcom/facebook/drawee/generic/GenericDraweeHierarchy;I)V
    .registers 4

    invoke-static {p1, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    invoke-virtual {p0, p2, p1}, Le2/e;->b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V
    .registers 5

    invoke-static {p2, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-static {p4}, Le2/f;->b(I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;

    move-result-object p3

    invoke-virtual {p0, p1, p2, p3}, Le2/e;->b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    return-void
.end method

.method public final b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;)V
    .registers 3

    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setOverlayImage(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final b(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
    .registers 4

    if-eqz p3, :cond_6

    invoke-virtual {p1, p2, p3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setPlaceholderImage(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    goto :goto_9

    :cond_6
    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setPlaceholderImage(Landroid/graphics/drawable/Drawable;)V

    :goto_9
    return-void
.end method

.method public final c(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/content/Context;II)V
    .registers 5

    invoke-static {p2, p3}, Le2/b;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;

    move-result-object p2

    invoke-static {p4}, Le2/f;->b(I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;

    move-result-object p3

    invoke-virtual {p0, p1, p2, p3}, Le2/e;->c(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    return-void
.end method

.method public final c(Lcom/facebook/drawee/generic/GenericDraweeHierarchy;Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V
    .registers 4

    if-eqz p3, :cond_6

    invoke-virtual {p1, p2, p3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setRetryImage(Landroid/graphics/drawable/Drawable;Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)V

    goto :goto_9

    :cond_6
    invoke-virtual {p1, p2}, Lcom/facebook/drawee/generic/GenericDraweeHierarchy;->setRetryImage(Landroid/graphics/drawable/Drawable;)V

    :goto_9
    return-void
.end method