869 lines
23 KiB
Smali
869 lines
23 KiB
Smali
.class public Lcom/facebook/drawee/view/DraweeView;
|
|
.super Landroid/widget/ImageView;
|
|
.source "DraweeView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<DH::",
|
|
"Lcom/facebook/drawee/interfaces/DraweeHierarchy;",
|
|
">",
|
|
"Landroid/widget/ImageView;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static sGlobalLegacyVisibilityHandlingEnabled:Z = false
|
|
|
|
|
|
# instance fields
|
|
.field public mAspectRatio:F
|
|
|
|
.field public mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/facebook/drawee/view/DraweeHolder<",
|
|
"TDH;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public mInitialised:Z
|
|
|
|
.field public mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
.field public final mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V
|
|
|
|
new-instance v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
invoke-direct {v0}, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput v0, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
|
|
iput-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
new-instance p2, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
invoke-direct {p2}, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput p2, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
new-instance p2, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
invoke-direct {p2}, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput p2, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
.locals 0
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x15
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1, p2, p3, p4}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;II)V
|
|
|
|
new-instance p2, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
invoke-direct {p2}, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;-><init>()V
|
|
|
|
iput-object p2, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput p2, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
const/4 p2, 0x0
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
|
|
iput-boolean p2, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
invoke-direct {p0, p1}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private init(Landroid/content/Context;)V
|
|
.locals 3
|
|
|
|
:try_start_0
|
|
invoke-static {}, Lf/g/j/r/b;->b()Z
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Lf/g/j/r/b;->b()Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
:try_start_1
|
|
iput-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mInitialised:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
new-instance v2, Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-direct {v2, v1}, Lcom/facebook/drawee/view/DraweeHolder;-><init>(Lcom/facebook/drawee/interfaces/DraweeHierarchy;)V
|
|
|
|
iput-object v2, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getImageTintList()Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-static {}, Lf/g/j/r/b;->b()Z
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
:try_start_2
|
|
invoke-virtual {v1}, Landroid/content/res/ColorStateList;->getDefaultColor()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0, v1}, Landroid/widget/ImageView;->setColorFilter(I)V
|
|
|
|
sget-boolean v1, Lcom/facebook/drawee/view/DraweeView;->sGlobalLegacyVisibilityHandlingEnabled:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object p1
|
|
|
|
iget p1, p1, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
|
|
|
|
const/16 v1, 0x18
|
|
|
|
if-lt p1, v1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
invoke-static {}, Lf/g/j/r/b;->b()Z
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {}, Lf/g/j/r/b;->b()Z
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method private maybeOverrideVisibilityHandling()V
|
|
.locals 3
|
|
|
|
iget-boolean v0, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual {v0, v1, v2}, Landroid/graphics/drawable/Drawable;->setVisible(ZZ)Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static setGlobalLegacyVisibilityHandlingEnabled(Z)V
|
|
.locals 0
|
|
|
|
sput-boolean p0, Lcom/facebook/drawee/view/DraweeView;->sGlobalLegacyVisibilityHandlingEnabled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public doAttach()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v1, v0, Lcom/facebook/drawee/view/DraweeHolder;->f:Lf/g/g/b/b;
|
|
|
|
sget-object v2, Lf/g/g/b/b$a;->r:Lf/g/g/b/b$a;
|
|
|
|
invoke-virtual {v1, v2}, Lf/g/g/b/b;->a(Lf/g/g/b/b$a;)V
|
|
|
|
const/4 v1, 0x1
|
|
|
|
iput-boolean v1, v0, Lcom/facebook/drawee/view/DraweeHolder;->b:Z
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeHolder;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public doDetach()V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v1, v0, Lcom/facebook/drawee/view/DraweeHolder;->f:Lf/g/g/b/b;
|
|
|
|
sget-object v2, Lf/g/g/b/b$a;->s:Lf/g/g/b/b$a;
|
|
|
|
invoke-virtual {v1, v2}, Lf/g/g/b/b;->a(Lf/g/g/b/b$a;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput-boolean v1, v0, Lcom/facebook/drawee/view/DraweeHolder;->b:Z
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeHolder;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAspectRatio()F
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getController()Lcom/facebook/drawee/interfaces/DraweeController;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v0, v0, Lcom/facebook/drawee/view/DraweeHolder;->e:Lcom/facebook/drawee/interfaces/DraweeController;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getHierarchy()Lcom/facebook/drawee/interfaces/DraweeHierarchy;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TDH;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v0, v0, Lcom/facebook/drawee/view/DraweeHolder;->d:Lcom/facebook/drawee/interfaces/DraweeHierarchy;
|
|
|
|
invoke-static {v0}, Ld0/a/b/b/a;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTopLevelDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeHolder;->d()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public hasController()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v0, v0, Lcom/facebook/drawee/view/DraweeHolder;->e:Lcom/facebook/drawee/interfaces/DraweeController;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public hasHierarchy()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
iget-object v0, v0, Lcom/facebook/drawee/view/DraweeHolder;->d:Lcom/facebook/drawee/interfaces/DraweeHierarchy;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public onAttach()V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->doAttach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onAttachedToWindow()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onAttachedToWindow()V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/view/DraweeView;->maybeOverrideVisibilityHandling()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->onAttach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetach()V
|
|
.locals 0
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->doDetach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDetachedFromWindow()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onDetachedFromWindow()V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/view/DraweeView;->maybeOverrideVisibilityHandling()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->onDetach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onFinishTemporaryDetach()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onFinishTemporaryDetach()V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/view/DraweeView;->maybeOverrideVisibilityHandling()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->onAttach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onMeasure(II)V
|
|
.locals 8
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
iput p1, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->a:I
|
|
|
|
iput p2, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->b:I
|
|
|
|
iget p1, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingLeft()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingRight()I
|
|
|
|
move-result v2
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingTop()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getPaddingBottom()I
|
|
|
|
move-result v3
|
|
|
|
add-int/2addr v3, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
cmpg-float v1, p1, v1
|
|
|
|
if-lez v1, :cond_6
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_0
|
|
iget v1, p2, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
const/4 v4, -0x2
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-ne v1, v4, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
:goto_1
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget p2, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->a:I
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p2, v2
|
|
|
|
int-to-float p2, p2
|
|
|
|
div-float/2addr p2, p1
|
|
|
|
int-to-float p1, v3
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
float-to-int p1, p2
|
|
|
|
iget p2, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->b:I
|
|
|
|
invoke-static {p1, p2}, Landroid/view/View;->resolveSize(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->b:I
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget p2, p2, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
if-eqz p2, :cond_5
|
|
|
|
if-ne p2, v4, :cond_4
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v5, 0x0
|
|
|
|
:cond_5
|
|
:goto_2
|
|
if-eqz v5, :cond_6
|
|
|
|
iget p2, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->b:I
|
|
|
|
invoke-static {p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p2, v3
|
|
|
|
int-to-float p2, p2
|
|
|
|
mul-float p2, p2, p1
|
|
|
|
int-to-float p1, v2
|
|
|
|
add-float/2addr p2, p1
|
|
|
|
float-to-int p1, p2
|
|
|
|
iget p2, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->a:I
|
|
|
|
invoke-static {p1, p2}, Landroid/view/View;->resolveSize(II)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, v0, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->a:I
|
|
|
|
:cond_6
|
|
:goto_3
|
|
iget-object p1, p0, Lcom/facebook/drawee/view/DraweeView;->mMeasureSpec:Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;
|
|
|
|
iget p2, p1, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->a:I
|
|
|
|
iget p1, p1, Lcom/facebook/drawee/view/AspectRatioMeasure$Spec;->b:I
|
|
|
|
invoke-super {p0, p2, p1}, Landroid/widget/ImageView;->onMeasure(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartTemporaryDetach()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Landroid/widget/ImageView;->onStartTemporaryDetach()V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/view/DraweeView;->maybeOverrideVisibilityHandling()V
|
|
|
|
invoke-virtual {p0}, Lcom/facebook/drawee/view/DraweeView;->onDetach()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {v0}, Lcom/facebook/drawee/view/DraweeHolder;->e()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, v0, Lcom/facebook/drawee/view/DraweeHolder;->e:Lcom/facebook/drawee/interfaces/DraweeController;
|
|
|
|
invoke-interface {v0, p1}, Lcom/facebook/drawee/interfaces/DraweeController;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_1
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public onVisibilityChanged(Landroid/view/View;I)V
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/widget/ImageView;->onVisibilityChanged(Landroid/view/View;I)V
|
|
|
|
invoke-direct {p0}, Lcom/facebook/drawee/view/DraweeView;->maybeOverrideVisibilityHandling()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAspectRatio(F)V
|
|
.locals 1
|
|
|
|
iget v0, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
cmpl-float v0, p1, v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iput p1, p0, Lcom/facebook/drawee/view/DraweeView;->mAspectRatio:F
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setController(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/view/DraweeHolder;->g(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/drawee/view/DraweeHolder;->d()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setHierarchy(Lcom/facebook/drawee/interfaces/DraweeHierarchy;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TDH;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/facebook/drawee/view/DraweeHolder;->h(Lcom/facebook/drawee/interfaces/DraweeHierarchy;)V
|
|
|
|
iget-object p1, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
invoke-virtual {p1}, Lcom/facebook/drawee/view/DraweeHolder;->d()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/drawee/view/DraweeHolder;->g(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/drawee/view/DraweeHolder;->g(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageResource(I)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/drawee/view/DraweeHolder;->g(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImageURI(Landroid/net/Uri;)V
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroid/widget/ImageView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Lcom/facebook/drawee/view/DraweeView;->init(Landroid/content/Context;)V
|
|
|
|
iget-object v0, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Lcom/facebook/drawee/view/DraweeHolder;->g(Lcom/facebook/drawee/interfaces/DraweeController;)V
|
|
|
|
invoke-super {p0, p1}, Landroid/widget/ImageView;->setImageURI(Landroid/net/Uri;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setLegacyVisibilityHandlingEnabled(Z)V
|
|
.locals 0
|
|
|
|
iput-boolean p1, p0, Lcom/facebook/drawee/view/DraweeView;->mLegacyVisibilityHandlingEnabled:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
invoke-static {p0}, Ld0/a/b/b/a;->W0(Ljava/lang/Object;)Lf/g/d/d/g;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lcom/facebook/drawee/view/DraweeView;->mDraweeHolder:Lcom/facebook/drawee/view/DraweeHolder;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Lcom/facebook/drawee/view/DraweeHolder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-string v1, "<no holder set>"
|
|
|
|
:goto_0
|
|
const-string v2, "holder"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/g/d/d/g;->b(Ljava/lang/String;Ljava/lang/Object;)Lf/g/d/d/g;
|
|
|
|
invoke-virtual {v0}, Lf/g/d/d/g;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|