.class Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;
.super Ljava/lang/Object;
.source "DailyDetailPagerAdapter.java"

# interfaces
.implements Lcom/moji/mjweather/dailydetail/presenter/CalendarAndConstellationPresenter$CalendarConstellAtionCallBack;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(ZLcom/moji/mjweather/dailydetail/ObservableScrollView;ILcom/moji/weatherprovider/data/ForecastDayList$ForecastDay;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/dailydetail/ObservableScrollView;

.field final synthetic b:I

.field final synthetic c:Landroid/widget/LinearLayout;

.field final synthetic d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;Lcom/moji/mjweather/dailydetail/ObservableScrollView;ILandroid/widget/LinearLayout;)V
    .locals 0

    .line 378
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iput-object p2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->a:Lcom/moji/mjweather/dailydetail/ObservableScrollView;

    iput p3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    iput-object p4, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->c:Landroid/widget/LinearLayout;

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

    return-void
.end method


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

    .line 402
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 403
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;->a(I)V

    :cond_0
    return-void
.end method

.method public a(Lcom/moji/http/sch/DailyDetailEntity;)V
    .locals 3

    if-eqz p1, :cond_2

    .line 383
    iget-object v0, p1, Lcom/moji/http/sch/DailyDetailEntity;->calendar:Lcom/moji/http/sch/DailyDetailEntity$CalendarBean;

    if-eqz v0, :cond_0

    .line 384
    new-instance v0, Lcom/moji/mjweather/dailydetail/presenter/CalendarControl;

    invoke-direct {v0}, Lcom/moji/mjweather/dailydetail/presenter/CalendarControl;-><init>()V

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->a:Lcom/moji/mjweather/dailydetail/ObservableScrollView;

    iget-object v2, p1, Lcom/moji/http/sch/DailyDetailEntity;->calendar:Lcom/moji/http/sch/DailyDetailEntity$CalendarBean;

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/dailydetail/presenter/CalendarControl;->a(Landroid/view/View;Lcom/moji/http/sch/DailyDetailEntity$CalendarBean;)V

    .line 385
    iget v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->e(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)I

    move-result v1

    if-ne v0, v1, :cond_0

    .line 386
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->c:Landroid/widget/LinearLayout;

    iget v2, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-virtual {v0, v1, v2}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(Landroid/widget/LinearLayout;I)V

    .line 390
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 391
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;

    invoke-virtual {v0, p1}, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;->a(Lcom/moji/http/sch/DailyDetailEntity;)V

    .line 392
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->b(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Landroid/support/v4/util/ArrayMap;

    move-result-object v0

    iget v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->b:I

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/support/v4/util/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    invoke-static {v1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->f(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;)Lcom/moji/opevent/model/OperationEvent;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/presenter/ConstellationControl;->a(Lcom/moji/opevent/model/OperationEvent;)V

    .line 395
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->d:Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter$5;->a:Lcom/moji/mjweather/dailydetail/ObservableScrollView;

    iget-object p1, p1, Lcom/moji/http/sch/DailyDetailEntity;->source:Ljava/lang/String;

    invoke-static {v0, v1, p1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;Landroid/view/View;Ljava/lang/String;)V

    :cond_2
    return-void
.end method
