.class public Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;
.super Landroid/widget/RelativeLayout;
.source "ShortServiceLayout.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter;

.field private b:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter$ServiceCallback;

.field private c:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

.field private d:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

.field private e:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

.field private f:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

.field private g:Landroid/view/View;

.field private h:J

.field private i:Landroid/view/View;

.field private j:Landroid/view/View;

.field private k:Z


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

    .line 38
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    const/4 p1, 0x0

    .line 34
    iput-boolean p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->k:Z

    .line 39
    invoke-direct {p0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a()V

    return-void
.end method

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

    .line 43
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 p1, 0x0

    .line 34
    iput-boolean p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->k:Z

    .line 44
    invoke-direct {p0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a()V

    return-void
.end method

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

    .line 48
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const/4 p1, 0x0

    .line 34
    iput-boolean p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->k:Z

    .line 49
    invoke-direct {p0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a()V

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->e:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    return-object p0
.end method

.method private a()V
    .locals 1

    .line 78
    new-instance v0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout$1;

    invoke-direct {v0, p0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout$1;-><init>(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)V

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->b:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter$ServiceCallback;

    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;[I)V
    .locals 0

    .line 19
    invoke-direct {p0, p1}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a([I)V

    return-void
.end method

.method private varargs a([I)V
    .locals 5

    .line 119
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->h:J

    sub-long/2addr v0, v2

    const-wide/16 v2, 0x3e8

    cmp-long v4, v0, v2

    if-lez v4, :cond_1

    .line 120
    array-length v0, p1

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_0

    aget v2, p1, v1

    .line 121
    invoke-static {}, Lcom/moji/statistics/EventManager;->a()Lcom/moji/statistics/EventManager;

    move-result-object v3

    sget-object v4, Lcom/moji/statistics/EVENT_TAG;->SHOWER_SERVICE_SHOW:Lcom/moji/statistics/EVENT_TAG;

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v3, v4, v2}, Lcom/moji/statistics/EventManager;->a(Lcom/moji/statistics/EVENT_TAG;Ljava/lang/String;)Lcom/moji/statistics/EventManager;

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 123
    :cond_0
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->h:J

    :cond_1
    return-void
.end method

.method static synthetic a(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;Z)Z
    .locals 0

    .line 19
    iput-boolean p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->k:Z

    return p1
.end method

.method static synthetic b(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->f:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    return-object p0
.end method

.method static synthetic c(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Landroid/view/View;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->i:Landroid/view/View;

    return-object p0
.end method

.method static synthetic d(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Landroid/view/View;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->j:Landroid/view/View;

    return-object p0
.end method

.method static synthetic e(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->c:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    return-object p0
.end method

.method static synthetic f(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->d:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    return-object p0
.end method

.method static synthetic g(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Landroid/view/View;
    .locals 0

    .line 19
    iget-object p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->g:Landroid/view/View;

    return-object p0
.end method

.method static synthetic h(Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;)Z
    .locals 0

    .line 19
    iget-boolean p0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->k:Z

    return p0
.end method


# virtual methods
.method public getServiceCallback()Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter$ServiceCallback;
    .locals 1

    .line 129
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->b:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter$ServiceCallback;

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 0

    .line 142
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result p1

    packed-switch p1, :pswitch_data_0

    goto :goto_0

    .line 145
    :pswitch_0
    iget-object p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter;

    invoke-virtual {p1}, Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter;->a()V

    :goto_0
    return-void

    :pswitch_data_0
    .packed-switch 0x7f090855
        :pswitch_0
        :pswitch_0
    .end packed-switch
.end method

.method protected onFinishInflate()V
    .locals 2

    .line 55
    invoke-super {p0}, Landroid/widget/RelativeLayout;->onFinishInflate()V

    const v0, 0x7f09084f

    .line 56
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->c:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const v0, 0x7f090850

    .line 57
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->d:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const v0, 0x7f090851

    .line 58
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->e:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const v0, 0x7f090852

    .line 59
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->f:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    .line 61
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->c:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const-string v1, "1"

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;->setTag(Ljava/lang/Object;)V

    .line 62
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->d:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const-string v1, "2"

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;->setTag(Ljava/lang/Object;)V

    .line 63
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->e:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const-string v1, "3"

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;->setTag(Ljava/lang/Object;)V

    .line 64
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->f:Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;

    const-string v1, "4"

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/ServiceItemLayout;->setTag(Ljava/lang/Object;)V

    const v0, 0x7f090853

    .line 66
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->i:Landroid/view/View;

    const v0, 0x7f090854

    .line 67
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->j:Landroid/view/View;

    const v0, 0x7f090855

    .line 68
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->g:Landroid/view/View;

    const v0, 0x7f090856

    .line 69
    invoke-virtual {p0, v0}, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 70
    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->g:Landroid/view/View;

    invoke-virtual {v1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 71
    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method public setPresenter(Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter;)V
    .locals 0

    .line 135
    iput-object p1, p0, Lcom/moji/mjweather/shorttimedetail/view/ShortServiceLayout;->a:Lcom/moji/mjweather/shorttimedetail/service/ServicePresenter;

    return-void
.end method
