.class Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;
.super Ljava/lang/Object;
.source "RadarMapFragment.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->g()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)V
    .locals 0

    .line 172
    iput-object p1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

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

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .line 175
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->isAdded()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->isDetached()Z

    move-result v0

    if-nez v0, :cond_3

    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    if-nez v0, :cond_0

    goto/16 :goto_1

    .line 178
    :cond_0
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->getChildFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v1

    const-string v2, "MAP"

    invoke-virtual {v1, v2}, Landroid/support/v4/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroid/support/v4/app/Fragment;

    move-result-object v1

    check-cast v1, Lcom/amap/api/maps2d/SupportMapFragment;

    invoke-static {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;Lcom/amap/api/maps2d/SupportMapFragment;)Lcom/amap/api/maps2d/SupportMapFragment;

    .line 179
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/SupportMapFragment;

    move-result-object v0

    if-nez v0, :cond_2

    .line 180
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->isAdded()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 181
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {}, Lcom/amap/api/maps2d/SupportMapFragment;->newInstance()Lcom/amap/api/maps2d/SupportMapFragment;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;Lcom/amap/api/maps2d/SupportMapFragment;)Lcom/amap/api/maps2d/SupportMapFragment;

    .line 182
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->getChildFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    const v1, 0x7f0905ac

    .line 183
    iget-object v2, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v2}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/SupportMapFragment;

    move-result-object v2

    const-string v3, "MAP"

    invoke-virtual {v0, v1, v2, v3}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;Ljava/lang/String;)Landroid/support/v4/app/FragmentTransaction;

    .line 184
    invoke-virtual {v0}, Landroid/support/v4/app/FragmentTransaction;->commitNowAllowingStateLoss()V

    .line 185
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/SupportMapFragment;

    move-result-object v1

    invoke-virtual {v1}, Lcom/amap/api/maps2d/SupportMapFragment;->getMap()Lcom/amap/api/maps2d/AMap;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->a(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;Lcom/amap/api/maps2d/AMap;)Lcom/amap/api/maps2d/AMap;

    .line 186
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/AMap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/amap/api/maps2d/AMap;->getUiSettings()Lcom/amap/api/maps2d/UiSettings;

    move-result-object v0

    const/4 v1, 0x0

    .line 187
    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/UiSettings;->setZoomControlsEnabled(Z)V

    .line 188
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/AMap;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    iget-object v1, v1, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b:Lcom/moji/mjweather/shorttimedetail/view/RadarMapViewContainerView;

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->setOnCameraChangeListener(Lcom/amap/api/maps2d/AMap$OnCameraChangeListener;)V

    .line 189
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/AMap;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-virtual {v0, v1}, Lcom/amap/api/maps2d/AMap;->setOnMapClickListener(Lcom/amap/api/maps2d/AMap$OnMapClickListener;)V

    .line 190
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    iget-object v0, v0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b:Lcom/moji/mjweather/shorttimedetail/view/RadarMapViewContainerView;

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/AMap;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapViewContainerView;->setAMap(Lcom/amap/api/maps2d/AMap;)V

    .line 193
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->c(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 194
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    iget-object v0, v0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->b:Lcom/moji/mjweather/shorttimedetail/view/RadarMapViewContainerView;

    invoke-virtual {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapViewContainerView;->e()V

    goto :goto_0

    .line 196
    :cond_1
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->d(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/model/LatLng;

    move-result-object v0

    if-eqz v0, :cond_2

    .line 197
    iget-object v0, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v0}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->e(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/moji/mjweather/shorttimedetail/map/MapViewContracts$IMapViewPresenter;

    move-result-object v0

    iget-object v1, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v1}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->d(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/model/LatLng;

    move-result-object v1

    iget-wide v1, v1, Lcom/amap/api/maps2d/model/LatLng;->latitude:D

    iget-object v3, p0, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment$1;->a:Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;

    invoke-static {v3}, Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;->d(Lcom/moji/mjweather/shorttimedetail/view/RadarMapFragment;)Lcom/amap/api/maps2d/model/LatLng;

    move-result-object v3

    iget-wide v3, v3, Lcom/amap/api/maps2d/model/LatLng;->longitude:D

    invoke-interface {v0, v1, v2, v3, v4}, Lcom/moji/mjweather/shorttimedetail/map/MapViewContracts$IMapViewPresenter;->a(DD)V

    :cond_2
    :goto_0
    return-void

    :cond_3
    :goto_1
    return-void
.end method
