GlideRoundUtils$3.smali

.class final Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;
.super Ljava/lang/Object;
.source "GlideRoundUtils.java"

# interfaces
.implements Landroid/view/View$OnLayoutChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils;->setRoundCorner(Landroid/view/View;Landroid/graphics/drawable/Drawable;FLjava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# instance fields
.field final synthetic val$cornerDipValue:F

.field final synthetic val$currentTag:Ljava/lang/String;

.field final synthetic val$resourceId:Landroid/graphics/drawable/Drawable;

.field final synthetic val$view:Landroid/view/View;


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

    return-void
.end method

.method constructor <init>(Landroid/view/View;Landroid/graphics/drawable/Drawable;FLjava/lang/String;)V
    .registers 5

    .line 84
    iput-object p1, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$view:Landroid/view/View;

    iput-object p2, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$resourceId:Landroid/graphics/drawable/Drawable;

    iput p3, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$cornerDipValue:F

    iput-object p4, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$currentTag:Ljava/lang/String;

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

    return-void
.end method


# virtual methods
.method public onLayoutChange(Landroid/view/View;IIIIIIII)V
    .registers 14
    .param p1, "v"    # Landroid/view/View;
    .param p2, "left"    # I
    .param p3, "top"    # I
    .param p4, "right"    # I
    .param p5, "bottom"    # I
    .param p6, "oldLeft"    # I
    .param p7, "oldTop"    # I
    .param p8, "oldRight"    # I
    .param p9, "oldBottom"    # I

    .line 87
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$view:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->removeOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V

    .line 88
    iget-object v0, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$view:Landroid/view/View;

    invoke-static {v0}, Lcom/bumptech/glide/Glide;->with(Landroid/view/View;)Lcom/bumptech/glide/RequestManager;

    move-result-object v0

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$resourceId:Landroid/graphics/drawable/Drawable;

    .line 89
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestManager;->load(Landroid/graphics/drawable/Drawable;)Lcom/bumptech/glide/RequestBuilder;

    move-result-object v0

    const/4 v1, 0x2

    new-array v1, v1, [Lcom/bumptech/glide/load/Transformation;

    new-instance v2, Lcom/bumptech/glide/load/resource/bitmap/CenterCrop;

    invoke-direct {v2}, Lcom/bumptech/glide/load/resource/bitmap/CenterCrop;-><init>()V

    const/4 v3, 0x0

    aput-object v2, v1, v3

    new-instance v2, Lcom/bumptech/glide/load/resource/bitmap/RoundedCorners;

    iget v3, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$cornerDipValue:F

    float-to-int v3, v3

    invoke-direct {v2, v3}, Lcom/bumptech/glide/load/resource/bitmap/RoundedCorners;-><init>(I)V

    const/4 v3, 0x1

    aput-object v2, v1, v3

    .line 90
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->transform([Lcom/bumptech/glide/load/Transformation;)Lcom/bumptech/glide/request/BaseRequestOptions;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/RequestBuilder;

    iget-object v1, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$view:Landroid/view/View;

    .line 91
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v1

    iget-object v2, p0, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;->val$view:Landroid/view/View;

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Lcom/bumptech/glide/RequestBuilder;->override(II)Lcom/bumptech/glide/request/BaseRequestOptions;

    move-result-object v0

    check-cast v0, Lcom/bumptech/glide/RequestBuilder;

    new-instance v1, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3$1;

    invoke-direct {v1, p0}, Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3$1;-><init>(Lim/tpelyyftgw/ui/components/shadow/GlideRoundUtils$3;)V

    .line 92
    invoke-virtual {v0, v1}, Lcom/bumptech/glide/RequestBuilder;->into(Lcom/bumptech/glide/request/target/Target;)Lcom/bumptech/glide/request/target/Target;

    .line 111
    return-void
.end method