.class public Lcom/moji/mjweather/weather/ViewFlipper;
.super Lcom/moji/mjweather/weather/ViewAnimator;
.source "ViewFlipper.java"


# instance fields
.field private f:I

.field private g:Z

.field private h:Z

.field private i:Z

.field private j:Z

.field private k:Z

.field private final l:Ljava/lang/Runnable;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0

    .line 55
    invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;-><init>(Landroid/content/Context;)V

    const/16 p1, 0x1f40

    .line 46
    iput p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    const/4 p1, 0x0

    .line 47
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->g:Z

    .line 49
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->h:Z

    .line 50
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->i:Z

    .line 51
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->j:Z

    const/4 p1, 0x1

    .line 52
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->k:Z

    .line 213
    new-instance p1, Lcom/moji/mjweather/weather/ViewFlipper$1;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/weather/ViewFlipper$1;-><init>(Lcom/moji/mjweather/weather/ViewFlipper;)V

    iput-object p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->l:Ljava/lang/Runnable;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 4

    .line 59
    invoke-direct {p0, p1, p2}, Lcom/moji/mjweather/weather/ViewAnimator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/16 v0, 0x1f40

    .line 46
    iput v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    const/4 v1, 0x0

    .line 47
    iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->g:Z

    .line 49
    iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->h:Z

    .line 50
    iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->i:Z

    .line 51
    iput-boolean v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->j:Z

    const/4 v2, 0x1

    .line 52
    iput-boolean v2, p0, Lcom/moji/mjweather/weather/ViewFlipper;->k:Z

    .line 213
    new-instance v3, Lcom/moji/mjweather/weather/ViewFlipper$1;

    invoke-direct {v3, p0}, Lcom/moji/mjweather/weather/ViewFlipper$1;-><init>(Lcom/moji/mjweather/weather/ViewFlipper;)V

    iput-object v3, p0, Lcom/moji/mjweather/weather/ViewFlipper;->l:Ljava/lang/Runnable;

    .line 61
    sget-object v3, Lcom/moji/mjweather/R$styleable;->ViewFlipper:[I

    invoke-virtual {p1, p2, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p1

    .line 63
    invoke-virtual {p1, v2, v0}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result p2

    iput p2, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    .line 65
    invoke-virtual {p1, v1, v1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p2

    iput-boolean p2, p0, Lcom/moji/mjweather/weather/ViewFlipper;->g:Z

    .line 67
    invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V

    return-void
.end method

.method private a(Z)V
    .locals 3

    .line 175
    iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->j:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->i:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->k:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    .line 176
    :goto_0
    iget-boolean v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->h:Z

    if-eq v0, v1, :cond_2

    .line 177
    iget-object v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->l:Ljava/lang/Runnable;

    invoke-virtual {p0, v1}, Lcom/moji/mjweather/weather/ViewFlipper;->removeCallbacks(Ljava/lang/Runnable;)Z

    if-eqz v0, :cond_1

    .line 179
    iget v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->a:I

    invoke-virtual {p0, v1, p1}, Lcom/moji/mjweather/weather/ViewFlipper;->a(IZ)V

    .line 180
    iget-object p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->l:Ljava/lang/Runnable;

    iget v1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    int-to-long v1, v1

    invoke-virtual {p0, p1, v1, v2}, Lcom/moji/mjweather/weather/ViewFlipper;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 182
    :cond_1
    iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->h:Z

    :cond_2
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/weather/ViewFlipper;)Z
    .locals 0

    .line 40
    iget-boolean p0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->h:Z

    return p0
.end method

.method static synthetic b(Lcom/moji/mjweather/weather/ViewFlipper;)Ljava/lang/Runnable;
    .locals 0

    .line 40
    iget-object p0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->l:Ljava/lang/Runnable;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/weather/ViewFlipper;)I
    .locals 0

    .line 40
    iget p0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    return p0
.end method

.method private d()V
    .locals 1

    const/4 v0, 0x1

    .line 163
    invoke-direct {p0, v0}, Lcom/moji/mjweather/weather/ViewFlipper;->a(Z)V

    return-void
.end method


# virtual methods
.method public b()V
    .locals 1

    const/4 v0, 0x1

    .line 141
    iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->i:Z

    const/4 v0, 0x0

    .line 142
    invoke-direct {p0, v0}, Lcom/moji/mjweather/weather/ViewFlipper;->a(Z)V

    return-void
.end method

.method public c()V
    .locals 1

    const/4 v0, 0x0

    .line 149
    iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->i:Z

    .line 150
    invoke-direct {p0}, Lcom/moji/mjweather/weather/ViewFlipper;->d()V

    return-void
.end method

.method public getAccessibilityClassName()Ljava/lang/CharSequence;
    .locals 1

    .line 155
    const-class v0, Lcom/moji/mjweather/weather/ViewFlipper;

    invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onAttachedToWindow()V
    .locals 1

    .line 88
    invoke-super {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->onAttachedToWindow()V

    .line 105
    iget-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->g:Z

    if-eqz v0, :cond_0

    .line 107
    invoke-virtual {p0}, Lcom/moji/mjweather/weather/ViewFlipper;->b()V

    :cond_0
    return-void
.end method

.method protected onDetachedFromWindow()V
    .locals 1

    .line 113
    invoke-super {p0}, Lcom/moji/mjweather/weather/ViewAnimator;->onDetachedFromWindow()V

    const/4 v0, 0x0

    .line 114
    iput-boolean v0, p0, Lcom/moji/mjweather/weather/ViewFlipper;->j:Z

    .line 117
    invoke-direct {p0}, Lcom/moji/mjweather/weather/ViewFlipper;->d()V

    return-void
.end method

.method protected onWindowVisibilityChanged(I)V
    .locals 1

    .line 122
    invoke-super {p0, p1}, Lcom/moji/mjweather/weather/ViewAnimator;->onWindowVisibilityChanged(I)V

    const/4 v0, 0x0

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 123
    :goto_0
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->j:Z

    .line 124
    invoke-direct {p0, v0}, Lcom/moji/mjweather/weather/ViewFlipper;->a(Z)V

    return-void
.end method

.method public setAutoStart(Z)V
    .locals 0

    .line 202
    iput-boolean p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->g:Z

    return-void
.end method

.method public setFlipInterval(I)V
    .locals 0

    .line 134
    iput p1, p0, Lcom/moji/mjweather/weather/ViewFlipper;->f:I

    return-void
.end method
