GenericDraweeHierarchyInflater.smali
.class public Lcom/facebook/drawee/generic/GenericDraweeHierarchyInflater;
.super Ljava/lang/Object;
.source "SourceFile"
# direct methods
.method public constructor <init>()V
.registers 1
.line 61
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 267
invoke-virtual {p1, p2, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
move-result p1
if-nez p1, :cond_9
const/4 p0, 0x0
return-object p0
.line 268
: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
return-object p0
.end method
.method private static getRoundingParams(Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;)Lcom/facebook/drawee/generic/RoundingParams;
.registers 2
.line 256
invoke-virtual {p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getRoundingParams()Lcom/facebook/drawee/generic/RoundingParams;
move-result-object v0
if-nez v0, :cond_e
.line 257
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 259
: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 279
invoke-virtual {p0, p1, v0}, Landroid/content/res/TypedArray;->getInt(II)I
move-result p0
packed-switch p0, :pswitch_data_2e
.line 302
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 299
:pswitch_10
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_BOTTOM_START:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 297
:pswitch_13
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FOCUS_CROP:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 295
:pswitch_16
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER_CROP:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 293
:pswitch_19
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER_INSIDE:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 291
:pswitch_1c
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->CENTER:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 289
:pswitch_1f
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_END:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 287
:pswitch_22
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_CENTER:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 285
:pswitch_25
sget-object p0, Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;->FIT_START:Lcom/facebook/drawee/drawable/ScalingUtils$ScaleType;
return-object p0
.line 283
: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 78
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result v0
if-eqz v0, :cond_b
const-string v0, "GenericDraweeHierarchyBuilder#inflateBuilder"
.line 79
invoke-static {v0}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->beginSection(Ljava/lang/String;)V
.line 81
:cond_b
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v0
.line 82
new-instance v1, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
invoke-direct {v1, v0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;-><init>(Landroid/content/res/Resources;)V
.line 83
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 84
invoke-static {}, Lcom/facebook/imagepipeline/systrace/FrescoSystrace;->isTracing()Z
move-result p1
if-eqz p1, :cond_21
.line 85
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
.line 69
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 21
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
if-eqz v2, :cond_208
.line 118
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 122
:try_start_e
invoke-virtual {v2}, Landroid/content/res/TypedArray;->getIndexCount()I
move-result v7
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v8, 0x0
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 v8, v7, :cond_197
.line 124
invoke-virtual {v2, v8}, Landroid/content/res/TypedArray;->getIndex(I)I
move-result v3
.line 126
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_actualImageScaleType:I
if-ne v3, v4, :cond_31
.line 127
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 129
:cond_31
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_placeholderImage:I
if-ne v3, v4, :cond_3e
.line 130
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 132
:cond_3e
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_pressedStateOverlayImage:I
if-ne v3, v4, :cond_4b
.line 133
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 135
:cond_4b
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarImage:I
if-ne v3, v4, :cond_58
.line 136
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 139
:cond_58
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_fadeDuration:I
if-ne v3, v4, :cond_65
const/4 v4, 0x0
.line 140
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 142
:cond_65
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_viewAspectRatio:I
if-ne v3, v4, :cond_72
const/4 v4, 0x0
.line 143
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 145
:cond_72
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_placeholderImageScaleType:I
if-ne v3, v4, :cond_7e
.line 146
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 148
:cond_7e
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_retryImage:I
if-ne v3, v4, :cond_8a
.line 149
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 151
:cond_8a
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_retryImageScaleType:I
if-ne v3, v4, :cond_96
.line 152
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 154
:cond_96
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_failureImage:I
if-ne v3, v4, :cond_a2
.line 155
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 157
:cond_a2
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_failureImageScaleType:I
if-ne v3, v4, :cond_ae
.line 158
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 160
:cond_ae
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarImageScaleType:I
if-ne v3, v4, :cond_ba
.line 161
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 163
:cond_ba
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_progressBarAutoRotateInterval:I
if-ne v3, v4, :cond_c5
.line 165
invoke-virtual {v2, v3, v6}, Landroid/content/res/TypedArray;->getInteger(II)I
move-result v6
:cond_c2
:goto_c2
const/4 v4, 0x0
goto/16 :goto_191
.line 167
:cond_c5
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_backgroundImage:I
if-ne v3, v4, :cond_d1
.line 168
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 170
:cond_d1
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_overlayImage:I
if-ne v3, v4, :cond_dd
.line 171
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 173
:cond_dd
sget v4, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundAsCircle:I
if-ne v3, v4, :cond_ee
.line 174
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 176
:cond_ee
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundedCornerRadius:I
if-ne v3, v1, :cond_f9
move/from16 v4, v16
.line 177
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 179
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopLeft:I
if-ne v3, v1, :cond_106
.line 180
invoke-virtual {v2, v3, v9}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v9
:goto_103
move/from16 v16, v4
goto :goto_c2
.line 182
:cond_106
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopRight:I
if-ne v3, v1, :cond_10f
.line 183
invoke-virtual {v2, v3, v11}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v11
goto :goto_103
.line 185
:cond_10f
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomLeft:I
if-ne v3, v1, :cond_118
.line 186
invoke-virtual {v2, v3, v15}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v15
goto :goto_103
.line 188
:cond_118
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomRight:I
if-ne v3, v1, :cond_121
.line 189
invoke-virtual {v2, v3, v13}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v13
goto :goto_103
.line 191
:cond_121
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopStart:I
if-ne v3, v1, :cond_12a
.line 192
invoke-virtual {v2, v3, v10}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v10
goto :goto_103
.line 194
:cond_12a
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundTopEnd:I
if-ne v3, v1, :cond_133
.line 195
invoke-virtual {v2, v3, v12}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v12
goto :goto_103
.line 197
:cond_133
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomStart:I
if-ne v3, v1, :cond_13c
.line 198
invoke-virtual {v2, v3, v5}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v5
goto :goto_103
.line 200
:cond_13c
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundBottomEnd:I
if-ne v3, v1, :cond_145
.line 201
invoke-virtual {v2, v3, v14}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
move-result v14
goto :goto_103
.line 203
:cond_145
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundWithOverlayColor:I
if-ne v3, v1, :cond_159
.line 204
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 206
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderWidth:I
if-ne v3, v1, :cond_16e
.line 207
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 209
:cond_16e
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderColor:I
if-ne v3, v1, :cond_180
.line 210
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 212
:cond_180
sget v1, Lcom/facebook/drawee/R$styleable;->GenericDraweeHierarchy_roundingBorderPadding:I
if-ne v3, v1, :cond_c2
.line 213
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_e .. :try_end_191} :catchall_1f2
:goto_191
add-int/lit8 v8, v8, 0x1
move-object/from16 v1, p1
goto/16 :goto_1e
:cond_197
const/4 v4, 0x0
.line 218
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
.line 220
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x11
if-lt v1, v2, :cond_1cd
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 221
invoke-virtual {v1}, Landroid/content/res/Configuration;->getLayoutDirection()I
move-result v1
const/4 v2, 0x1
if-ne v1, v2, :cond_1ce
if-eqz v9, :cond_1b6
if-eqz v12, :cond_1b6
const/4 v1, 0x1
goto :goto_1b7
:cond_1b6
const/4 v1, 0x0
:goto_1b7
if-eqz v11, :cond_1bd
if-eqz v10, :cond_1bd
const/4 v3, 0x1
goto :goto_1be
:cond_1bd
const/4 v3, 0x0
:goto_1be
if-eqz v13, :cond_1c4
if-eqz v5, :cond_1c4
const/4 v5, 0x1
goto :goto_1c5
:cond_1c4
const/4 v5, 0x0
:goto_1c5
if-eqz v15, :cond_1ca
if-eqz v14, :cond_1ca
const/4 v4, 0x1
:cond_1ca
move v2, v5
move v5, v1
goto :goto_1ea
:cond_1cd
const/4 v2, 0x1
:cond_1ce
if-eqz v9, :cond_1d4
if-eqz v10, :cond_1d4
const/4 v1, 0x1
goto :goto_1d5
:cond_1d4
const/4 v1, 0x0
:goto_1d5
if-eqz v11, :cond_1db
if-eqz v12, :cond_1db
const/4 v3, 0x1
goto :goto_1dc
:cond_1db
const/4 v3, 0x0
:goto_1dc
if-eqz v13, :cond_1e2
if-eqz v14, :cond_1e2
const/4 v7, 0x1
goto :goto_1e3
:cond_1e2
const/4 v7, 0x0
:goto_1e3
if-eqz v15, :cond_1e8
if-eqz v5, :cond_1e8
const/4 v4, 0x1
:cond_1e8
move v5, v1
move v2, v7
:goto_1ea
move/from16 v1, v16
move/from16 v17, v6
move v6, v4
move/from16 v4, v17
goto :goto_20e
:catchall_1f2
move-exception v0
.line 218
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
.line 220
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x11
if-lt v1, v2, :cond_207
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 221
invoke-virtual {v1}, Landroid/content/res/Configuration;->getLayoutDirection()I
.line 230
:cond_207
throw v0
:cond_208
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 237
:goto_20e
invoke-virtual/range {p0 .. p0}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->getProgressBarImage()Landroid/graphics/drawable/Drawable;
move-result-object v7
if-eqz v7, :cond_222
if-lez v4, :cond_222
.line 238
new-instance v7, Lcom/facebook/drawee/drawable/AutoRotateDrawable;
.line 239
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 238
invoke-virtual {v0, v7}, Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;->setProgressBarImage(Landroid/graphics/drawable/Drawable;)Lcom/facebook/drawee/generic/GenericDraweeHierarchyBuilder;
:cond_222
if-lez v1, :cond_23f
.line 244
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_22c
int-to-float v5, v1
goto :goto_22d
:cond_22c
const/4 v5, 0x0
:goto_22d
if-eqz v3, :cond_231
int-to-float v3, v1
goto :goto_232
:cond_231
const/4 v3, 0x0
:goto_232
if-eqz v2, :cond_236
int-to-float v2, v1
goto :goto_237
:cond_236
const/4 v2, 0x0
:goto_237
if-eqz v6, :cond_23b
int-to-float v1, v1
goto :goto_23c
:cond_23b
const/4 v1, 0x0
:goto_23c
invoke-virtual {v4, v5, v3, v2, v1}, Lcom/facebook/drawee/generic/RoundingParams;->setCornersRadii(FFFF)Lcom/facebook/drawee/generic/RoundingParams;
:cond_23f
return-object v0
.end method