GenericDraweeHierarchyInflater.smali
.class public Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private static getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
.registers 4
const/4 v0, 0x0
.line 1
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p1
if-nez p1, :cond_9
const/4 p0, 0x0
goto :goto_11
.line 2
:cond_9
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p0
invoke-virtual {p0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object p0
:goto_11
return-object p0
.end method
.method private static getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
.registers 2
.annotation build Lcom/facebook/infer/annotation/ReturnsOwnership;
.end annotation
.line 1
invoke-virtual {p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getRoundingParams()Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v0
if-nez v0, :cond_e
.line 2
new-instance v0, Lcom/facebook/drawee/generic/RoundingParams;
invoke-direct {v0}, Lcom/facebook/drawee/generic/RoundingParams;-><init>()V
invoke-virtual {p0, v0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setRoundingParams(Lcom/facebook/drawee/generic/RoundingParams;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
.line 3
:cond_e
invoke-virtual {p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getRoundingParams()Lcom/facebook/drawee/generic/RoundingParams;
move-result-object p0
return-object p0
.end method
.method private static getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
.registers 3
const/4 v0, -0x2
.line 1
invoke-virtual {p0, p1, v0}, Landroid/content/res/TypedArray;->getInt(II)I
move-result p0
packed-switch p0, :pswitch_data_2e
.line 2
new-instance p0, Ljava/lang/RuntimeException;
const-string p1, "XML attribute not specified!"
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
throw p0
.line 3
:pswitch_10
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_BOTTOM_START:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 4
:pswitch_13
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FOCUS_CROP:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 5
:pswitch_16
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER_CROP:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 6
:pswitch_19
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER_INSIDE:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 7
:pswitch_1c
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 8
:pswitch_1f
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_END:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 9
:pswitch_22
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_CENTER:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 10
:pswitch_25
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_START:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 11
:pswitch_28
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_XY:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
:pswitch_2b
const/4 p0, 0x0
return-object p0
nop
:pswitch_data_2e
.packed-switch -0x1
:pswitch_2b
:pswitch_28
:pswitch_25
:pswitch_22
:pswitch_1f
:pswitch_1c
:pswitch_19
:pswitch_16
:pswitch_13
:pswitch_10
.end packed-switch
.end method
.method public static inflateBuilder(Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
.registers 4
.line 1
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "GenericDraweeHierarchyBuilder#inflateBuilder"
.line 2
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
.line 3
:cond_b
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 4
new-instance v1, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
invoke-direct {v1, v0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;-><init>(Landroid/content/res/Resources;)V
.line 5
invoke-static {v1, p0, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->updateBuilder(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
move-result-object p0
.line 6
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_21
.line 7
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->endSection()V
:cond_21
return-object p0
.end method
.method public static inflateHierarchy(Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
.registers 2
invoke-static {p0, p1}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->inflateBuilder(Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
move-result-object p0
invoke-virtual {p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->build()Lcom/facebook/drawee/generic/GenericDraweeHierarchy;
move-result-object p0
return-object p0
.end method
.method public static updateBuilder(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;Landroid/content/Context;Landroid/util/AttributeSet;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
.registers 20
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
if-eqz v2, :cond_201
.line 1
sget-object v6, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy:[I
invoke-virtual {v1, v2, v6}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
move-result-object v2
.line 2
:try_start_e
invoke-virtual {v2}, Landroid/content/res/TypedArray;->getIndexCount()I
move-result v6
:try_end_12
.catchall {:try_start_e .. :try_end_12} :catchall_1e7
const/4 v5, 0x0
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x1
const/4 v10, 0x1
const/4 v11, 0x1
const/4 v12, 0x1
const/4 v13, 0x1
const/4 v14, 0x1
const/4 v15, 0x1
const/16 v16, 0x0
:goto_1e
if-ge v7, v6, :cond_19a
.line 3
:try_start_20
invoke-virtual {v2, v7}, Landroid/content/res/TypedArray;->getIndex(I)I
move-result v3
.line 4
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_actualImageScaleType:I
if-ne v3, v4, :cond_31
.line 5
invoke-static {v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setActualImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto/16 :goto_c2
.line 6
:cond_31
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_placeholderImage:I
if-ne v3, v4, :cond_3e
.line 7
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setPlaceholderImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto/16 :goto_c2
.line 8
:cond_3e
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_pressedStateOverlayImage:I
if-ne v3, v4, :cond_4b
.line 9
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setPressedStateOverlay(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto/16 :goto_c2
.line 10
:cond_4b
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarImage:I
if-ne v3, v4, :cond_58
.line 11
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setProgressBarImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto/16 :goto_c2
.line 12
:cond_58
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_fadeDuration:I
if-ne v3, v4, :cond_65
const/4 v4, 0x0
.line 13
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getInt(II)I
move-result v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setFadeDuration(I)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 14
:cond_65
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_viewAspectRatio:I
if-ne v3, v4, :cond_72
const/4 v4, 0x0
.line 15
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getFloat(IF)F
move-result v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setDesiredAspectRatio(F)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 16
:cond_72
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_placeholderImageScaleType:I
if-ne v3, v4, :cond_7e
.line 17
invoke-static {v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setPlaceholderImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 18
:cond_7e
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_retryImage:I
if-ne v3, v4, :cond_8a
.line 19
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setRetryImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 20
:cond_8a
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_retryImageScaleType:I
if-ne v3, v4, :cond_96
.line 21
invoke-static {v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setRetryImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 22
:cond_96
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_failureImage:I
if-ne v3, v4, :cond_a2
.line 23
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setFailureImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 24
:cond_a2
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_failureImageScaleType:I
if-ne v3, v4, :cond_ae
.line 25
invoke-static {v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setFailureImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 26
:cond_ae
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarImageScaleType:I
if-ne v3, v4, :cond_ba
.line 27
invoke-static {v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getScaleTypeFromXml(Landroid/content/res/TypedArray;I)Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setProgressBarImageScaleType(Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 28
:cond_ba
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarAutoRotateInterval:I
if-ne v3, v4, :cond_c5
.line 29
invoke-virtual {v2, v3, v5}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v5
:cond_c2
:goto_c2
const/4 v4, 0x0
goto/16 :goto_191
.line 30
:cond_c5
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_backgroundImage:I
if-ne v3, v4, :cond_d1
.line 31
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setBackground(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 32
:cond_d1
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_overlayImage:I
if-ne v3, v4, :cond_dd
.line 33
invoke-static {v1, v2, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getDrawable(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/graphics/drawable/Drawable;
move-result-object v3
invoke-virtual {v0, v3}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setOverlay(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
goto :goto_c2
.line 34
:cond_dd
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundAsCircle:I
if-ne v3, v4, :cond_ee
.line 35
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v4
const/4 v1, 0x0
invoke-virtual {v2, v3, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v3
invoke-virtual {v4, v3}, Lcom/facebook/drawee/generic/RoundingParams;->setRoundAsCircle(Z)Lcom/facebook/drawee/generic/RoundingParams;
goto :goto_c2
.line 36
:cond_ee
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundedCornerRadius:I
if-ne v3, v1, :cond_f9
move/from16 v4, v16
.line 37
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v16
goto :goto_c2
:cond_f9
move/from16 v4, v16
.line 38
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopLeft:I
if-ne v3, v1, :cond_106
.line 39
invoke-virtual {v2, v3, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v8
:goto_103
move/from16 v16, v4
goto :goto_c2
.line 40
:cond_106
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopRight:I
if-ne v3, v1, :cond_10f
.line 41
invoke-virtual {v2, v3, v10}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v10
goto :goto_103
.line 42
:cond_10f
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomLeft:I
if-ne v3, v1, :cond_118
.line 43
invoke-virtual {v2, v3, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v14
goto :goto_103
.line 44
:cond_118
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomRight:I
if-ne v3, v1, :cond_121
.line 45
invoke-virtual {v2, v3, v12}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v12
goto :goto_103
.line 46
:cond_121
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopStart:I
if-ne v3, v1, :cond_12a
.line 47
invoke-virtual {v2, v3, v9}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v9
goto :goto_103
.line 48
:cond_12a
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopEnd:I
if-ne v3, v1, :cond_133
.line 49
invoke-virtual {v2, v3, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v11
goto :goto_103
.line 50
:cond_133
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomStart:I
if-ne v3, v1, :cond_13c
.line 51
invoke-virtual {v2, v3, v15}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v15
goto :goto_103
.line 52
:cond_13c
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomEnd:I
if-ne v3, v1, :cond_145
.line 53
invoke-virtual {v2, v3, v13}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v13
goto :goto_103
.line 54
:cond_145
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundWithOverlayColor:I
if-ne v3, v1, :cond_159
.line 55
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v1
move/from16 v16, v4
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v3
invoke-virtual {v1, v3}, Lcom/facebook/drawee/generic/RoundingParams;->setOverlayColor(I)Lcom/facebook/drawee/generic/RoundingParams;
goto/16 :goto_c2
:cond_159
move/from16 v16, v4
.line 56
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderWidth:I
if-ne v3, v1, :cond_16e
.line 57
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v1
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v3
int-to-float v3, v3
invoke-virtual {v1, v3}, Lcom/facebook/drawee/generic/RoundingParams;->setBorderWidth(F)Lcom/facebook/drawee/generic/RoundingParams;
goto/16 :goto_c2
.line 58
:cond_16e
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderColor:I
if-ne v3, v1, :cond_180
.line 59
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v1
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getColor(II)I
move-result v3
invoke-virtual {v1, v3}, Lcom/facebook/drawee/generic/RoundingParams;->setBorderColor(I)Lcom/facebook/drawee/generic/RoundingParams;
goto/16 :goto_c2
.line 60
:cond_180
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderPadding:I
if-ne v3, v1, :cond_c2
.line 61
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v1
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/res/TypedArray;->getDimensionPixelSize(II)I
move-result v3
int-to-float v3, v3
invoke-virtual {v1, v3}, Lcom/facebook/drawee/generic/RoundingParams;->setPadding(F)Lcom/facebook/drawee/generic/RoundingParams;
:try_end_191
.catchall {:try_start_20 .. :try_end_191} :catchall_197
:goto_191
add-int/lit8 v7, v7, 0x1
move-object/from16 v1, p1
goto/16 :goto_1e
:catchall_197
move-exception v0
goto/16 :goto_1f0
:cond_19a
const/4 v4, 0x0
.line 62
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
.line 63
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v1
.line 64
invoke-virtual {v1}, Landroid/content/res/Configuration;->getLayoutDirection()I
move-result v1
const/4 v2, 0x1
if-ne v1, v2, :cond_1c7
if-eqz v8, :cond_1b3
if-eqz v11, :cond_1b3
const/4 v1, 0x1
goto :goto_1b4
:cond_1b3
const/4 v1, 0x0
:goto_1b4
if-eqz v10, :cond_1ba
if-eqz v9, :cond_1ba
const/4 v2, 0x1
goto :goto_1bb
:cond_1ba
const/4 v2, 0x0
:goto_1bb
if-eqz v12, :cond_1c1
if-eqz v15, :cond_1c1
const/4 v3, 0x1
goto :goto_1c2
:cond_1c1
const/4 v3, 0x0
:goto_1c2
if-eqz v14, :cond_1e1
if-eqz v13, :cond_1e1
goto :goto_1e0
:cond_1c7
if-eqz v8, :cond_1cd
if-eqz v9, :cond_1cd
const/4 v1, 0x1
goto :goto_1ce
:cond_1cd
const/4 v1, 0x0
:goto_1ce
if-eqz v10, :cond_1d4
if-eqz v11, :cond_1d4
const/4 v2, 0x1
goto :goto_1d5
:cond_1d4
const/4 v2, 0x0
:goto_1d5
if-eqz v12, :cond_1db
if-eqz v13, :cond_1db
const/4 v3, 0x1
goto :goto_1dc
:cond_1db
const/4 v3, 0x0
:goto_1dc
if-eqz v14, :cond_1e1
if-eqz v15, :cond_1e1
:goto_1e0
const/4 v4, 0x1
:cond_1e1
move v6, v4
move v4, v5
move v5, v1
move/from16 v1, v16
goto :goto_207
:catchall_1e7
move-exception v0
const/4 v8, 0x1
const/4 v9, 0x1
const/4 v10, 0x1
const/4 v11, 0x1
const/4 v12, 0x1
const/4 v13, 0x1
const/4 v14, 0x1
const/4 v15, 0x1
.line 65
:goto_1f0
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
.line 66
invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
move-result-object v1
.line 67
invoke-virtual {v1}, Landroid/content/res/Configuration;->getLayoutDirection()I
move-result v1
const/4 v2, 0x1
.line 68
throw v0
:cond_201
const/4 v2, 0x1
const/4 v4, 0x0
const/4 v1, 0x0
const/4 v3, 0x1
const/4 v5, 0x1
const/4 v6, 0x1
.line 69
:goto_207
invoke-virtual/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getProgressBarImage()Landroid/graphics/drawable/Drawable;
move-result-object v7
if-eqz v7, :cond_21b
if-lez v4, :cond_21b
.line 70
new-instance v7, Lcom/facebook/drawee/drawable/AutoRotateDrawable;
.line 71
invoke-virtual/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getProgressBarImage()Landroid/graphics/drawable/Drawable;
move-result-object v8
invoke-direct {v7, v8, v4}, Lcom/facebook/drawee/drawable/AutoRotateDrawable;-><init>(Landroid/graphics/drawable/Drawable;I)V
.line 72
invoke-virtual {v0, v7}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setProgressBarImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
:cond_21b
if-lez v1, :cond_238
.line 73
invoke-static/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;->getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v4
if-eqz v5, :cond_225
int-to-float v5, v1
goto :goto_226
:cond_225
const/4 v5, 0x0
:goto_226
if-eqz v2, :cond_22a
int-to-float v2, v1
goto :goto_22b
:cond_22a
const/4 v2, 0x0
:goto_22b
if-eqz v3, :cond_22f
int-to-float v3, v1
goto :goto_230
:cond_22f
const/4 v3, 0x0
:goto_230
if-eqz v6, :cond_234
int-to-float v1, v1
goto :goto_235
:cond_234
const/4 v1, 0x0
:goto_235
invoke-virtual {v4, v5, v2, v3, v1}, Lcom/facebook/drawee/generic/RoundingParams;->setCornersRadii(FFFF)Lcom/facebook/drawee/generic/RoundingParams;
:cond_238
return-object v0
.end method