.class public Lcom/moji/novice/component/WeatherShortComponent; .super Ljava/lang/Object; .source "WeatherShortComponent.java" # interfaces .implements Lcom/moji/novice/guide/Component; # instance fields .field public a:Landroid/graphics/Rect; # direct methods .method public constructor (Landroid/graphics/Rect;)V .locals 0 .line 18 invoke-direct {p0}, Ljava/lang/Object;->()V .line 19 iput-object p1, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; return-void .end method # virtual methods .method public a(Landroid/view/LayoutInflater;)Landroid/view/View; .locals 5 .line 24 sget v0, Lcom/moji/novice/R$layout;->layout_weather_correct_novice:I const/4 v1, 0x0 invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View; move-result-object p1 .line 25 iget-object v0, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; if-eqz v0, :cond_1 .line 26 iget-object v0, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; if-eqz v0, :cond_1 iget-object v0, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; iget v0, v0, Landroid/graphics/Rect;->left:I if-lez v0, :cond_1 .line 27 iget-object v0, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; iget v0, v0, Landroid/graphics/Rect;->bottom:I iget-object v1, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; iget v1, v1, Landroid/graphics/Rect;->top:I sub-int/2addr v0, v1 const/high16 v1, 0x41f00000 # 30.0f .line 28 invoke-static {v1}, Lcom/moji/tool/DeviceTool;->a(F)I move-result v1 int-to-float v0, v0 const/high16 v2, 0x40000000 # 2.0f div-float/2addr v0, v2 int-to-float v1, v1 div-float/2addr v1, v2 sub-float/2addr v0, v1 float-to-int v0, v0 .line 32 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x13 const/4 v3, 0x0 if-ge v1, v2, :cond_0 .line 33 invoke-static {}, Lcom/moji/tool/DeviceTool;->e()I move-result v1 goto :goto_0 :cond_0 const/4 v1, 0x0 .line 35 :goto_0 iget-object v2, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; iget v2, v2, Landroid/graphics/Rect;->right:I iget-object v4, p0, Lcom/moji/novice/component/WeatherShortComponent;->a:Landroid/graphics/Rect; iget v4, v4, Landroid/graphics/Rect;->top:I add-int/2addr v4, v0 const/high16 v0, 0x40e00000 # 7.0f invoke-static {v0}, Lcom/moji/tool/DeviceTool;->a(F)I move-result v0 sub-int/2addr v4, v0 sub-int/2addr v4, v1 invoke-virtual {p1, v2, v4, v3, v3}, Landroid/view/View;->setPadding(IIII)V :cond_1 return-object p1 .end method