.class Lcom/moji/mjweather/weather/WeatherPageView$9;
.super Ljava/lang/Object;
.source "WeatherPageView.java"

# interfaces
.implements Lcom/moji/mjweather/weather/view/HomePageFrameLayout$ScrollerFinalListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/weather/WeatherPageView;->O()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/weather/WeatherPageView;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/weather/WeatherPageView;)V
    .locals 0

    .line 511
    iput-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(II)V
    .locals 2

    .line 515
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->c(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->d(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p1

    if-nez p1, :cond_1

    .line 516
    :cond_0
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->e(Lcom/moji/mjweather/weather/WeatherPageView;)Lcom/moji/mjweather/weather/adapter/WeatherListAdapter;

    move-result-object p1

    sget-object v0, Lcom/moji/viewcontrol/CardType;->CONDITION:Lcom/moji/viewcontrol/CardType;

    invoke-virtual {p1, v0}, Lcom/moji/mjweather/weather/adapter/WeatherListAdapter;->a(Lcom/moji/viewcontrol/CardType;)Lcom/moji/mjweather/weather/control/MJWhetherViewControl;

    move-result-object p1

    check-cast p1, Lcom/moji/mjweather/weather/control/WeatherShorterAndInfoViewControl;

    if-eqz p1, :cond_1

    .line 518
    invoke-virtual {p1}, Lcom/moji/mjweather/weather/control/WeatherShorterAndInfoViewControl;->a()[I

    move-result-object p1

    if-eqz p1, :cond_1

    .line 520
    iget-object v0, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    const/4 v1, 0x0

    aget v1, p1, v1

    invoke-static {v0, v1}, Lcom/moji/mjweather/weather/WeatherPageView;->b(Lcom/moji/mjweather/weather/WeatherPageView;I)I

    .line 521
    iget-object v0, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    const/4 v1, 0x1

    aget p1, p1, v1

    invoke-static {v0, p1}, Lcom/moji/mjweather/weather/WeatherPageView;->c(Lcom/moji/mjweather/weather/WeatherPageView;I)I

    .line 526
    :cond_1
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->c(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p1

    if-eqz p1, :cond_3

    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->d(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p1

    if-eqz p1, :cond_3

    .line 527
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->f(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p1

    add-int/2addr p1, p2

    if-lez p1, :cond_3

    .line 529
    iget-object v0, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->d(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result v0

    if-ge p1, v0, :cond_3

    if-gez p2, :cond_2

    .line 531
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->g(Lcom/moji/mjweather/weather/WeatherPageView;)Lcom/moji/mjweather/weather/view/HomePageFrameLayout;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p2}, Lcom/moji/mjweather/weather/WeatherPageView;->f(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p2

    neg-int p2, p2

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/weather/view/HomePageFrameLayout;->setFinalY(I)V

    goto :goto_0

    .line 533
    :cond_2
    iget-object p1, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p1}, Lcom/moji/mjweather/weather/WeatherPageView;->g(Lcom/moji/mjweather/weather/WeatherPageView;)Lcom/moji/mjweather/weather/view/HomePageFrameLayout;

    move-result-object p1

    iget-object p2, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {p2}, Lcom/moji/mjweather/weather/WeatherPageView;->d(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result p2

    iget-object v0, p0, Lcom/moji/mjweather/weather/WeatherPageView$9;->a:Lcom/moji/mjweather/weather/WeatherPageView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->f(Lcom/moji/mjweather/weather/WeatherPageView;)I

    move-result v0

    sub-int/2addr p2, v0

    invoke-virtual {p1, p2}, Lcom/moji/mjweather/weather/view/HomePageFrameLayout;->setFinalY(I)V

    :cond_3
    :goto_0
    return-void
.end method
