778 lines
18 KiB
Smali
778 lines
18 KiB
Smali
.class public Lcom/moji/mjweather/weather/ViewAnimator;
|
|
.super Landroid/widget/FrameLayout;
|
|
.source "ViewAnimator.java"
|
|
|
|
|
|
# instance fields
|
|
.field a:I
|
|
|
|
.field b:Z
|
|
|
|
.field c:Z
|
|
|
|
.field d:Landroid/view/animation/Animation;
|
|
|
|
.field e:Landroid/view/animation/Animation;
|
|
|
|
.field private f:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.field private g:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.field private h:Landroid/view/View;
|
|
|
|
.field private i:Landroid/view/View;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 52
|
|
invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 41
|
|
iput v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 42
|
|
iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
.line 44
|
|
iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->c:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 53
|
|
invoke-direct {p0, p1, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 4
|
|
|
|
.line 57
|
|
invoke-direct {p0, p1, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 41
|
|
iput v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 42
|
|
iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
.line 44
|
|
iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->c:Z
|
|
|
|
.line 59
|
|
sget-object v2, Lcom/moji/mjweather/R$styleable;->ViewAnimator:[I
|
|
|
|
invoke-virtual {p1, p2, v2}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v2
|
|
|
|
.line 60
|
|
invoke-virtual {v2, v1, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_0
|
|
|
|
.line 62
|
|
invoke-virtual {p0, p1, v3}, Lcom/moji/mjweather/weather/ViewAnimator;->a(Landroid/content/Context;I)V
|
|
|
|
:cond_0
|
|
const/4 v3, 0x2
|
|
|
|
.line 65
|
|
invoke-virtual {v2, v3, v0}, Landroid/content/res/TypedArray;->getResourceId(II)I
|
|
|
|
move-result v3
|
|
|
|
if-lez v3, :cond_1
|
|
|
|
.line 67
|
|
invoke-virtual {p0, p1, v3}, Lcom/moji/mjweather/weather/ViewAnimator;->b(Landroid/content/Context;I)V
|
|
|
|
.line 70
|
|
:cond_1
|
|
invoke-virtual {v2, v0, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v0
|
|
|
|
.line 71
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->setAnimateFirstView(Z)V
|
|
|
|
.line 73
|
|
invoke-virtual {v2}, Landroid/content/res/TypedArray;->recycle()V
|
|
|
|
.line 75
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/weather/ViewAnimator;->a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/weather/ViewAnimator;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->h:Landroid/view/View;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
.line 85
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setMeasureAllChildren(Z)V
|
|
|
|
return-void
|
|
|
|
.line 91
|
|
:cond_0
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setMeasureAllChildren(Z)V
|
|
|
|
.line 93
|
|
new-instance p1, Lcom/moji/mjweather/weather/ViewAnimator$1;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/mjweather/weather/ViewAnimator$1;-><init>(Lcom/moji/mjweather/weather/ViewAnimator;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->f:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
.line 113
|
|
new-instance p1, Lcom/moji/mjweather/weather/ViewAnimator$2;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/mjweather/weather/ViewAnimator$2;-><init>(Lcom/moji/mjweather/weather/ViewAnimator;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->g:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic b(Lcom/moji/mjweather/weather/ViewAnimator;)Landroid/view/View;
|
|
.locals 0
|
|
|
|
.line 39
|
|
iget-object p0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->i:Landroid/view/View;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 1
|
|
|
|
.line 166
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->setDisplayedChild(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method a(I)V
|
|
.locals 1
|
|
|
|
.line 215
|
|
iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->c:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 216
|
|
:goto_1
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->a(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method a(IZ)V
|
|
.locals 6
|
|
|
|
.line 187
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v0, :cond_4
|
|
|
|
.line 189
|
|
invoke-virtual {p0, v2}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v3
|
|
|
|
if-ne v2, p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 191
|
|
iget-object v4, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
if-eqz v4, :cond_0
|
|
|
|
.line 192
|
|
iput-object v3, p0, Lcom/moji/mjweather/weather/ViewAnimator;->h:Landroid/view/View;
|
|
|
|
.line 193
|
|
iget-object v4, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
.line 195
|
|
:cond_0
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 196
|
|
iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 198
|
|
iget-object v4, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
.line 199
|
|
iput-object v3, p0, Lcom/moji/mjweather/weather/ViewAnimator;->i:Landroid/view/View;
|
|
|
|
.line 200
|
|
iget-object v4, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->startAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 201
|
|
:cond_2
|
|
invoke-virtual {v3}, Landroid/view/View;->getAnimation()Landroid/view/animation/Animation;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
if-ne v4, v5, :cond_3
|
|
|
|
.line 202
|
|
invoke-virtual {v3}, Landroid/view/View;->clearAnimation()V
|
|
|
|
:cond_3
|
|
:goto_1
|
|
const/16 v4, 0x8
|
|
|
|
.line 203
|
|
invoke-virtual {v3, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_2
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Landroid/content/Context;I)V
|
|
.locals 0
|
|
|
|
.line 364
|
|
invoke-static {p1, p2}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setInAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
.locals 1
|
|
|
|
.line 221
|
|
invoke-super {p0, p1, p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
.line 222
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result p3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p3, v0, :cond_0
|
|
|
|
const/4 p3, 0x0
|
|
|
|
.line 223
|
|
invoke-virtual {p1, p3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 p3, 0x8
|
|
|
|
.line 225
|
|
invoke-virtual {p1, p3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:goto_0
|
|
if-ltz p2, :cond_1
|
|
|
|
.line 227
|
|
iget p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
if-lt p1, p2, :cond_1
|
|
|
|
.line 229
|
|
iget p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
add-int/2addr p1, v0
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setDisplayedChild(I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Landroid/content/Context;I)V
|
|
.locals 0
|
|
|
|
.line 377
|
|
invoke-static {p1, p2}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setOutAnimation(Landroid/view/animation/Animation;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getAccessibilityClassName()Ljava/lang/CharSequence;
|
|
.locals 1
|
|
|
|
.line 411
|
|
const-class v0, Lcom/moji/mjweather/weather/ViewAnimator;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getAnimateFirstView()Z
|
|
.locals 1
|
|
|
|
.line 390
|
|
iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->c:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getBaseline()I
|
|
.locals 1
|
|
|
|
.line 406
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getCurrentView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getCurrentView()Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getBaseline()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->getBaseline()I
|
|
|
|
move-result v0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getCurrentView()Landroid/view/View;
|
|
.locals 1
|
|
|
|
.line 291
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildAt(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getDisplayedChild()I
|
|
.locals 1
|
|
|
|
.line 159
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public getInAnimation()Landroid/view/animation/Animation;
|
|
.locals 1
|
|
|
|
.line 303
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getOutAnimation()Landroid/view/animation/Animation;
|
|
.locals 1
|
|
|
|
.line 333
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public removeAllViews()V
|
|
.locals 1
|
|
|
|
.line 235
|
|
invoke-super {p0}, Landroid/widget/FrameLayout;->removeAllViews()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 236
|
|
iput v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 237
|
|
iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeView(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 242
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->indexOfChild(Landroid/view/View;)I
|
|
|
|
move-result p1
|
|
|
|
if-ltz p1, :cond_0
|
|
|
|
.line 244
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->removeViewAt(I)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeViewAt(I)V
|
|
.locals 3
|
|
|
|
.line 250
|
|
invoke-super {p0, p1}, Landroid/widget/FrameLayout;->removeViewAt(I)V
|
|
|
|
.line 251
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 253
|
|
iput p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
.line 254
|
|
iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 255
|
|
:cond_0
|
|
iget v2, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
if-lt v2, v0, :cond_1
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 257
|
|
invoke-virtual {p0, v0}, Lcom/moji/mjweather/weather/ViewAnimator;->setDisplayedChild(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 258
|
|
:cond_1
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
if-ne v0, p1, :cond_2
|
|
|
|
.line 260
|
|
iget p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setDisplayedChild(I)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeViewInLayout(Landroid/view/View;)V
|
|
.locals 0
|
|
|
|
.line 265
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->removeView(Landroid/view/View;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeViews(II)V
|
|
.locals 1
|
|
|
|
.line 269
|
|
invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->removeViews(II)V
|
|
|
|
.line 270
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 271
|
|
iput p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 272
|
|
iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->b:Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 273
|
|
:cond_0
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
if-lt v0, p1, :cond_1
|
|
|
|
iget v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
if-ge v0, p1, :cond_1
|
|
|
|
.line 275
|
|
iget p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->setDisplayedChild(I)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public removeViewsInLayout(II)V
|
|
.locals 0
|
|
|
|
.line 280
|
|
invoke-virtual {p0, p1, p2}, Lcom/moji/mjweather/weather/ViewAnimator;->removeViews(II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setAnimateFirstView(Z)V
|
|
.locals 0
|
|
|
|
.line 401
|
|
iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->c:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDisplayedChild(I)V
|
|
.locals 3
|
|
|
|
.line 140
|
|
iput p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
.line 141
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 142
|
|
iput v2, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-gez p1, :cond_1
|
|
|
|
.line 144
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getChildCount()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr p1, v1
|
|
|
|
iput p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
.line 146
|
|
:cond_1
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->getFocusedChild()Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
.line 148
|
|
:goto_1
|
|
iget p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->a:I
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->a(I)V
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
const/4 p1, 0x2
|
|
|
|
.line 151
|
|
invoke-virtual {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->requestFocus(I)Z
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setInAnimation(Landroid/view/animation/Animation;)V
|
|
.locals 2
|
|
|
|
.line 315
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 316
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 318
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
.line 319
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 320
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->d:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->f:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOutAnimation(Landroid/view/animation/Animation;)V
|
|
.locals 2
|
|
|
|
.line 345
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 346
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
.line 348
|
|
:cond_0
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
.line 349
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 350
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/ViewAnimator;->e:Landroid/view/animation/Animation;
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/ViewAnimator;->g:Landroid/view/animation/Animation$AnimationListener;
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|