67 lines
1.5 KiB
Smali
67 lines
1.5 KiB
Smali
.class public Lcom/moji/novice/component/LocationInfoComponent;
|
|
.super Ljava/lang/Object;
|
|
.source "LocationInfoComponent.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/novice/guide/Component;
|
|
|
|
|
|
# instance fields
|
|
.field public a:Landroid/graphics/Rect;
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/view/LayoutInflater;)Landroid/view/View;
|
|
.locals 4
|
|
|
|
.line 25
|
|
sget v0, Lcom/moji/novice/R$layout;->layout_guide_location_info: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 26
|
|
iget-object v0, p0, Lcom/moji/novice/component/LocationInfoComponent;->a:Landroid/graphics/Rect;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 28
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x13
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 29
|
|
invoke-static {}, Lcom/moji/tool/DeviceTool;->e()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 31
|
|
:goto_0
|
|
iget-object v1, p0, Lcom/moji/novice/component/LocationInfoComponent;->a:Landroid/graphics/Rect;
|
|
|
|
iget v1, v1, Landroid/graphics/Rect;->left:I
|
|
|
|
iget-object v3, p0, Lcom/moji/novice/component/LocationInfoComponent;->a:Landroid/graphics/Rect;
|
|
|
|
iget v3, v3, Landroid/graphics/Rect;->top:I
|
|
|
|
sub-int/2addr v3, v0
|
|
|
|
invoke-virtual {p1, v1, v3, v2, v2}, Landroid/view/View;->setPadding(IIII)V
|
|
|
|
:cond_1
|
|
return-object p1
|
|
.end method
|