160 lines
4.2 KiB
Smali
160 lines
4.2 KiB
Smali
.class Lcom/moji/mjweather/TabNewLiveViewFragment$23;
|
|
.super Ljava/lang/Object;
|
|
.source "TabNewLiveViewFragment.java"
|
|
|
|
# interfaces
|
|
.implements Landroid/animation/ValueAnimator$AnimatorUpdateListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/mjweather/TabNewLiveViewFragment;->b(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:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
.field final synthetic b:[I
|
|
|
|
.field final synthetic c:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/TabNewLiveViewFragment;Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;[I)V
|
|
.locals 0
|
|
|
|
.line 1051
|
|
iput-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->c:Lcom/moji/mjweather/TabNewLiveViewFragment;
|
|
|
|
iput-object p2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->a:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iput-object p3, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->b:[I
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onAnimationUpdate(Landroid/animation/ValueAnimator;)V
|
|
.locals 5
|
|
|
|
.line 1054
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->getAnimatedValue()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/Float;
|
|
|
|
.line 1055
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->a:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v0, v0, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->b:[I
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aget v2, v2, v3
|
|
|
|
int-to-float v2, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
neg-int v1, v1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->b:[I
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aget v3, v3, v4
|
|
|
|
int-to-float v3, v3
|
|
|
|
mul-float v2, v2, v3
|
|
|
|
float-to-int v2, v2
|
|
|
|
neg-int v2, v2
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/view/View;->scrollTo(II)V
|
|
|
|
.line 1056
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->a:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v0, v0, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/mjad/tab/data/AdBlocking;->BLOCKING_WIDTH:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result v2
|
|
|
|
const/high16 v3, 0x3f800000 # 1.0f
|
|
|
|
sub-float v2, v3, v2
|
|
|
|
mul-float v1, v1, v2
|
|
|
|
float-to-int v1, v1
|
|
|
|
iput v1, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
|
|
|
|
.line 1057
|
|
iget-object v0, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->a:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object v0, v0, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/ImageView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lcom/moji/mjad/tab/data/AdBlocking;->BLOCKING_HEIGHT:I
|
|
|
|
int-to-float v1, v1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result p1
|
|
|
|
sub-float/2addr v3, p1
|
|
|
|
mul-float v1, v1, v3
|
|
|
|
float-to-int p1, v1
|
|
|
|
iput p1, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 1058
|
|
iget-object p1, p0, Lcom/moji/mjweather/TabNewLiveViewFragment$23;->a:Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;
|
|
|
|
iget-object p1, p1, Lcom/moji/mjad/tab/BlockingViewCreater$BlockingView;->b:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1}, Landroid/widget/ImageView;->requestLayout()V
|
|
|
|
return-void
|
|
.end method
|