96 lines
3 KiB
Smali
96 lines
3 KiB
Smali
.class public Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;
|
|
.super Landroid/view/animation/Animation;
|
|
.source "SwipeRefreshLayout.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;->this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
invoke-direct {p0}, Landroid/view/animation/Animation;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public applyTransformation(FLandroid/view/animation/Transformation;)V
|
|
.locals 2
|
|
|
|
iget-object p2, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;->this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
iget-boolean v0, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mUsingCustomStart:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget v0, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
iget p2, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mOriginalOffsetTop:I
|
|
|
|
invoke-static {p2}, Ljava/lang/Math;->abs(I)I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr v0, p2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget v0, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mSpinnerOffsetEnd:I
|
|
|
|
:goto_0
|
|
iget-object p2, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;->this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
iget v1, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mFrom:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
int-to-float v0, v0
|
|
|
|
mul-float v0, v0, p1
|
|
|
|
float-to-int v0, v0
|
|
|
|
add-int/2addr v1, v0
|
|
|
|
iget-object p2, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mCircleView:Landroidx/swiperefreshlayout/widget/CircleImageView;
|
|
|
|
invoke-virtual {p2}, Landroid/widget/ImageView;->getTop()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr v1, p2
|
|
|
|
iget-object p2, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;->this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
invoke-virtual {p2, v1}, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->setTargetOffsetTopAndBottom(I)V
|
|
|
|
iget-object p2, p0, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout$6;->this$0:Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;
|
|
|
|
iget-object p2, p2, Landroidx/swiperefreshlayout/widget/SwipeRefreshLayout;->mProgress:Landroidx/swiperefreshlayout/widget/CircularProgressDrawable;
|
|
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
sub-float/2addr v0, p1
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/swiperefreshlayout/widget/CircularProgressDrawable;->setArrowScale(F)V
|
|
|
|
return-void
|
|
.end method
|