.class public Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;
.super Landroid/content/BroadcastReceiver;
.source "VideoDetailsActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/moji/mjweather/feed/VideoDetailsActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "NetChangeReceiver"
.end annotation


# instance fields
.field final synthetic a:Lcom/moji/mjweather/feed/VideoDetailsActivity;


# direct methods
.method public constructor <init>(Lcom/moji/mjweather/feed/VideoDetailsActivity;)V
    .locals 0

    .line 683
    iput-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 0

    .line 686
    invoke-static {}, Lcom/moji/tool/DeviceTool;->o()Z

    move-result p1

    if-nez p1, :cond_0

    invoke-static {}, Lcom/moji/tool/DeviceTool;->m()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-static {p1}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->m(Lcom/moji/mjweather/feed/VideoDetailsActivity;)Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-static {p1}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->b(Lcom/moji/mjweather/feed/VideoDetailsActivity;)Z

    move-result p1

    if-nez p1, :cond_0

    .line 688
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    const/4 p2, 0x1

    invoke-static {p1, p2}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->b(Lcom/moji/mjweather/feed/VideoDetailsActivity;Z)Z

    .line 689
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-static {p1}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->c(Lcom/moji/mjweather/feed/VideoDetailsActivity;)Lcom/moji/webview/webview/VideoEnabledWebView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/webview/webview/VideoEnabledWebView;->onPause()V

    .line 690
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-static {p1}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->c(Lcom/moji/mjweather/feed/VideoDetailsActivity;)Lcom/moji/webview/webview/VideoEnabledWebView;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/webview/webview/VideoEnabledWebView;->onResume()V

    .line 691
    iget-object p1, p0, Lcom/moji/mjweather/feed/VideoDetailsActivity$NetChangeReceiver;->a:Lcom/moji/mjweather/feed/VideoDetailsActivity;

    invoke-static {p1}, Lcom/moji/mjweather/feed/VideoDetailsActivity;->n(Lcom/moji/mjweather/feed/VideoDetailsActivity;)V

    :cond_0
    return-void
.end method
