.class Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;
.super Ljava/lang/Object;
.source "WeatherAndShortView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->onGlobalLayout()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;)V
    .locals 0

    .line 1726
    iput-object p1, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

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

    return-void
.end method


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

    .line 1729
    iget-object v0, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v0, v0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->a:Lcom/moji/mjweather/TabWeatherFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/TabWeatherFragment;->getView()Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1731
    iget-object v0, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v0, v0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    invoke-static {v0}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->g(Lcom/moji/mjweather/weather/view/WeatherAndShortView;)Lcom/moji/mjweather/weather/WeatherPageView;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 1732
    invoke-virtual {v0}, Lcom/moji/mjweather/weather/WeatherPageView;->z()Z

    move-result v0

    if-nez v0, :cond_0

    .line 1733
    invoke-static {}, Lcom/moji/weathersence/avatar/AvatarSkin;->b()Lcom/moji/weathersence/avatar/AvatarSkin;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/weathersence/avatar/AvatarSkin;->c()V

    const-string v0, "WeatherAndShortView"

    .line 1735
    new-instance v1, Ljava/lang/StringBuilder;

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

    iget-object v2, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v2, v2, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    iget-object v3, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v3, v3, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->b:Lcom/moji/base/MJActivity;

    invoke-static {v2, v3}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->a(Lcom/moji/mjweather/weather/view/WeatherAndShortView;Landroid/app/Activity;)Lcom/moji/mjweather/MainFragment;

    move-result-object v2

    invoke-virtual {v2}, Lcom/moji/mjweather/MainFragment;->a()Lcom/moji/mjweather/TAB_TYPE;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 1736
    new-instance v0, Lcom/moji/novice/preference/UserGuidePrefence;

    invoke-direct {v0}, Lcom/moji/novice/preference/UserGuidePrefence;-><init>()V

    invoke-virtual {v0}, Lcom/moji/novice/preference/UserGuidePrefence;->f()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v0, v0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    iget-object v1, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v1, v1, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->b:Lcom/moji/base/MJActivity;

    invoke-static {v0, v1}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->a(Lcom/moji/mjweather/weather/view/WeatherAndShortView;Landroid/app/Activity;)Lcom/moji/mjweather/MainFragment;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/mjweather/MainFragment;->a()Lcom/moji/mjweather/TAB_TYPE;

    move-result-object v0

    sget-object v1, Lcom/moji/mjweather/TAB_TYPE;->WEATHER_TAB:Lcom/moji/mjweather/TAB_TYPE;

    if-ne v0, v1, :cond_0

    const/4 v0, 0x2

    .line 1737
    new-array v0, v0, [I

    .line 1738
    iget-object v1, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v1, v1, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    invoke-static {v1}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->f(Lcom/moji/mjweather/weather/view/WeatherAndShortView;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->getLocationInWindow([I)V

    const/4 v1, 0x0

    .line 1739
    aget v2, v0, v1

    if-eqz v2, :cond_0

    const/4 v2, 0x1

    aget v3, v0, v2

    if-eqz v3, :cond_0

    .line 1740
    new-instance v3, Landroid/graphics/Rect;

    aget v4, v0, v1

    aget v5, v0, v2

    aget v1, v0, v1

    iget-object v6, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v6, v6, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    invoke-static {v6}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->f(Lcom/moji/mjweather/weather/view/WeatherAndShortView;)Landroid/widget/ImageView;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/ImageView;->getWidth()I

    move-result v6

    add-int/2addr v1, v6

    aget v0, v0, v2

    iget-object v2, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v2, v2, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->c:Lcom/moji/mjweather/weather/view/WeatherAndShortView;

    invoke-static {v2}, Lcom/moji/mjweather/weather/view/WeatherAndShortView;->f(Lcom/moji/mjweather/weather/view/WeatherAndShortView;)Landroid/widget/ImageView;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/ImageView;->getHeight()I

    move-result v2

    add-int/2addr v0, v2

    invoke-direct {v3, v4, v5, v1, v0}, Landroid/graphics/Rect;-><init>(IIII)V

    .line 1741
    iget-object v0, p0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12$1;->a:Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;

    iget-object v0, v0, Lcom/moji/mjweather/weather/view/WeatherAndShortView$12;->b:Lcom/moji/base/MJActivity;

    invoke-static {v3, v0}, Lcom/moji/novice/guide/GuideShowManager;->a(Landroid/graphics/Rect;Landroid/app/Activity;)V

    :cond_0
    return-void
.end method
