304 lines
8.9 KiB
Smali
304 lines
8.9 KiB
Smali
.class Lcom/moji/mjweather/TabNewLiveViewFragment$22;
|
|
.super Landroid/animation/AnimatorListenerAdapter;
|
|
.source "TabNewLiveViewFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/TabNewLiveViewFragment;->a(Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;Lcom/moji/mjad/tab/data/AdBlocking;Landroid/app/Dialog;Z)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:[I
|
|
|
|
.field final synthetic b:[I
|
|
|
|
.field final synthetic c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
.field final synthetic d:Landroid/app/Dialog;
|
|
|
|
.field final synthetic e:Lcom/moji/mjad/tab/data/AdBlocking;
|
|
|
|
.field final synthetic f:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/TabNewLiveViewFragment;[I[ILcom/moji/mjad/tab/BlockingViewCreater$BlockingView;Landroid/app/Dialog;Lcom/moji/mjad/tab/data/AdBlocking;)V
|
|
.locals 0
|
|
|
|
.line 976
|
|
iput-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->f:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
iput-object p2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->a:[I
|
|
|
|
iput-object p3, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->b:[I
|
|
|
|
iput-object p4, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iput-object p5, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->d:Landroid/app/Dialog;
|
|
|
|
iput-object p6, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->e:Lcom/moji/mjad/tab/data/AdBlocking;
|
|
|
|
invoke-direct {p0}, Landroid/animation/AnimatorListenerAdapter;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onAnimationEnd(Landroid/animation/Animator;)V
|
|
.locals 7
|
|
|
|
.line 979
|
|
invoke-super {p0, p1}, Landroid/animation/AnimatorListenerAdapter;->onAnimationEnd(Landroid/animation/Animator;)V
|
|
|
|
.line 980
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->a:[I
|
|
|
|
const/4 v0, 0x0
|
|
|
|
aget v1, p1, v0
|
|
|
|
int-to-float v1, v1
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->f:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {v2}, Lcom/moji/mjweather/TabNewLiveViewFragment;->r(Lcom/moji/mjweather/TabNewLiveViewFragment;)Lcom/moji/mjad/view/DragFloatButton;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/moji/mjad/view/DragFloatButton;->getWidth()I
|
|
|
|
move-result v2
|
|
|
|
int-to-float v2, v2
|
|
|
|
const/high16 v3, 0x40000000 # 2.0f
|
|
|
|
div-float/2addr v2, v3
|
|
|
|
const/high16 v4, 0x42400000 # 48.0f
|
|
|
|
invoke-static {v4}, Lcom/moji/tool/DeviceTool;->a(F)I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
sub-float/2addr v2, v4
|
|
|
|
add-float/2addr v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
aput v1, p1, v0
|
|
|
|
.line 981
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->a:[I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
aget v2, p1, v1
|
|
|
|
int-to-float v2, v2
|
|
|
|
iget-object v4, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->f:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
invoke-static {v4}, Lcom/moji/mjweather/TabNewLiveViewFragment;->r(Lcom/moji/mjweather/TabNewLiveViewFragment;)Lcom/moji/mjad/view/DragFloatButton;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v4}, Lcom/moji/mjad/view/DragFloatButton;->getHeight()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v4, v3
|
|
|
|
add-float/2addr v2, v4
|
|
|
|
float-to-int v2, v2
|
|
|
|
aput v2, p1, v1
|
|
|
|
.line 982
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->b:[I
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v2, v2, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/ImageView;->getX()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v4, v4, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/ImageView;->getWidth()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v4, v3
|
|
|
|
add-float/2addr v2, v4
|
|
|
|
float-to-int v2, v2
|
|
|
|
aput v2, p1, v0
|
|
|
|
.line 983
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->b:[I
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v2, v2, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v2}, Landroid/widget/ImageView;->getY()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v4, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v4, v4, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v4}, Landroid/widget/ImageView;->getHeight()I
|
|
|
|
move-result v4
|
|
|
|
int-to-float v4, v4
|
|
|
|
div-float/2addr v4, v3
|
|
|
|
add-float/2addr v2, v4
|
|
|
|
float-to-int v2, v2
|
|
|
|
aput v2, p1, v1
|
|
|
|
.line 985
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->a:[I
|
|
|
|
aget p1, p1, v0
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->b:[I
|
|
|
|
aget v2, v2, v0
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
.line 986
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->a:[I
|
|
|
|
aget v2, v2, v1
|
|
|
|
iget-object v3, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->b:[I
|
|
|
|
aget v3, v3, v1
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
const-string v3, "translationX"
|
|
|
|
const/4 v4, 0x2
|
|
|
|
.line 988
|
|
new-array v4, v4, [F
|
|
|
|
const/4 v5, 0x0
|
|
|
|
aput v5, v4, v0
|
|
|
|
int-to-float v6, p1
|
|
|
|
aput v6, v4, v1
|
|
|
|
invoke-static {v3, v4}, Landroid/animation/PropertyValuesHolder;->ofFloat(Ljava/lang/String;[F)Landroid/animation/PropertyValuesHolder;
|
|
|
|
move-result-object v3
|
|
|
|
const/high16 v4, 0x3f800000 # 1.0f
|
|
|
|
.line 991
|
|
invoke-static {v5, v4}, Landroid/support/v4/view/animation/PathInterpolatorCompat;->create(FF)Landroid/view/animation/Interpolator;
|
|
|
|
move-result-object v4
|
|
|
|
.line 994
|
|
iget-object v5, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v5, v5, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->a:Landroid/view/View;
|
|
|
|
new-array v1, v1, [Landroid/animation/PropertyValuesHolder;
|
|
|
|
aput-object v3, v1, v0
|
|
|
|
invoke-static {v5, v1}, Landroid/animation/ObjectAnimator;->ofPropertyValuesHolder(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;
|
|
|
|
move-result-object v0
|
|
|
|
const-wide/16 v5, 0x2bc
|
|
|
|
.line 995
|
|
invoke-virtual {v0, v5, v6}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
|
|
|
|
.line 996
|
|
new-instance v1, Lcom/moji/mjweather/TabNewLiveViewFragment$22$1;
|
|
|
|
invoke-direct {v1, p0, v2, v4, p1}, Lcom/moji/mjweather/TabNewLiveViewFragment$22$1;-><init>(Lcom/moji/mjweather/TabNewLiveViewFragment$22;ILandroid/view/animation/Interpolator;I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 1002
|
|
new-instance p1, Lcom/moji/mjweather/TabNewLiveViewFragment$22$2;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/mjweather/TabNewLiveViewFragment$22$2;-><init>(Lcom/moji/mjweather/TabNewLiveViewFragment$22;)V
|
|
|
|
invoke-virtual {v0, p1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 1012
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->e:Lcom/moji/mjad/tab/data/AdBlocking;
|
|
|
|
iget-object p1, p1, Lcom/moji/mjad/tab/data/AdBlocking;->closeAnimation:Landroid/graphics/drawable/Drawable;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1013
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->c:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object p1, p1, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
iget-object v1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$22;->e:Lcom/moji/mjad/tab/data/AdBlocking;
|
|
|
|
iget-object v1, v1, Lcom/moji/mjad/tab/data/AdBlocking;->closeAnimation:Landroid/graphics/drawable/Drawable;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
const-wide/16 v1, 0x12c
|
|
|
|
.line 1014
|
|
invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setStartDelay(J)V
|
|
|
|
.line 1015
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1017
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|