.class public Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;
.super Lcom/moji/base/MJFragment;
.source "ThunderStormEventFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/moji/mjweather/thunderstorm/TsEventCallback;


# instance fields
.field private b:Landroid/widget/TextView;

.field private c:Landroid/view/View;

.field private d:Lcom/moji/opevent/model/OperationEvent;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 21
    invoke-direct {p0}, Lcom/moji/base/MJFragment;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/opevent/model/OperationEvent;)V
    .locals 1

    .line 47
    iput-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->d:Lcom/moji/opevent/model/OperationEvent;

    .line 48
    iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->b:Landroid/widget/TextView;

    iget-object p1, p1, Lcom/moji/opevent/model/OperationEvent;->f:Ljava/lang/String;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 49
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->c:Landroid/view/View;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

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

    .line 55
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->d:Lcom/moji/opevent/model/OperationEvent;

    iget p1, p1, Lcom/moji/opevent/model/OperationEvent;->i:I

    iget-object v0, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->d:Lcom/moji/opevent/model/OperationEvent;

    iget v0, v0, Lcom/moji/opevent/model/OperationEvent;->h:I

    iget-object v1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->d:Lcom/moji/opevent/model/OperationEvent;

    iget-object v1, v1, Lcom/moji/opevent/model/OperationEvent;->g:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/moji/webview/EventJumpTool;->a(IILjava/lang/String;)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 1
    .param p2    # Landroid/view/ViewGroup;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .param p3    # Landroid/os/Bundle;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    const p3, 0x7f0b03d9

    const/4 v0, 0x0

    .line 30
    invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->c:Landroid/view/View;

    .line 32
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->c:Landroid/view/View;

    const p2, 0x7f09098e

    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->b:Landroid/widget/TextView;

    .line 34
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->c:Landroid/view/View;

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

    .line 36
    new-instance p1, Lcom/moji/mjweather/thunderstorm/TsEventPresenter;

    invoke-direct {p1, p0}, Lcom/moji/mjweather/thunderstorm/TsEventPresenter;-><init>(Lcom/moji/mjweather/thunderstorm/TsEventCallback;)V

    .line 37
    invoke-virtual {p1}, Lcom/moji/mjweather/thunderstorm/TsEventPresenter;->a()V

    .line 40
    iget-object p1, p0, Lcom/moji/mjweather/thunderstorm/ThunderStormEventFragment;->c:Landroid/view/View;

    return-object p1
.end method
