.class Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;
.super Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;
.source "DailyDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->a(Lcom/moji/mjweather/dailydetail/ObservableScrollView;)V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;

.field final synthetic b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;Lcom/moji/mjad/common/view/CommonAdView;Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;)V
    .locals 0

    .line 722
    iput-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

    iput-object p3, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->a:Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;

    invoke-direct {p0, p2}, Lcom/moji/mjad/common/listener/AbsCommonViewVisibleListenerImpl;-><init>(Lcom/moji/mjad/common/view/CommonAdView;)V

    return-void
.end method


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

    .line 725
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->a:Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;

    if-eqz v0, :cond_0

    .line 726
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

    invoke-static {v0}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->b(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->a:Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/DailyDetailPagerAdapter;->a(Lcom/moji/mjad/common/view/DailyDetailMiddleAdView;)V

    :cond_0
    return-void
.end method

.method public a(Lcom/moji/mjad/enumdata/MojiAdGoneType;)V
    .locals 2

    if-eqz p1, :cond_1

    .line 732
    sget-object v0, Lcom/moji/mjad/enumdata/MojiAdGoneType;->GONE_WITH_CLICK_CLOSE:Lcom/moji/mjad/enumdata/MojiAdGoneType;

    invoke-virtual {p1, v0}, Lcom/moji/mjad/enumdata/MojiAdGoneType;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    iget-object p1, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

    .line 733
    invoke-static {p1}, Lcom/moji/mjweather/dailydetail/DailyDetailActivity;->k(Lcom/moji/mjweather/dailydetail/DailyDetailActivity;)Landroid/support/v4/util/ArrayMap;

    move-result-object p1

    invoke-virtual {p1}, Landroid/support/v4/util/ArrayMap;->size()I

    move-result p1

    if-lez p1, :cond_1

    const/4 p1, 0x0

    .line 734
    :goto_0
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

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

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/util/ArrayMap;->size()I

    move-result v0

    if-ge p1, v0, :cond_1

    .line 735
    iget-object v0, p0, Lcom/moji/mjweather/dailydetail/DailyDetailActivity$5;->b:Lcom/moji/mjweather/dailydetail/DailyDetailActivity;

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

    move-result-object v0

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

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/dailydetail/ObservableScrollView;

    const v1, 0x7f090119

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/dailydetail/ObservableScrollView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 736
    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v1

    if-nez v1, :cond_0

    const/16 v1, 0x8

    .line 737
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    :cond_0
    add-int/lit8 p1, p1, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method
