322 lines
9.3 KiB
Smali
322 lines
9.3 KiB
Smali
.class public Lcom/moji/mjweather/weather/window/Label;
|
|
.super Ljava/lang/Object;
|
|
.source "Label.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/moji/mjweather/weather/window/ILabel;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/mjweather/weather/window/Label$ViewHandler;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/widget/TextView;
|
|
|
|
.field private b:Landroid/widget/LinearLayout;
|
|
|
|
.field private c:Landroid/widget/LinearLayout;
|
|
|
|
.field private d:Landroid/widget/ImageView;
|
|
|
|
.field private e:Landroid/content/Context;
|
|
|
|
.field private f:Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;
|
|
|
|
.field private g:Lcom/moji/http/show/IWindowData;
|
|
|
|
.field private h:I
|
|
|
|
.field private i:Lcom/moji/mjweather/weather/window/Label$ViewHandler;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 40
|
|
invoke-direct {p0, p1, p2, v0}, Lcom/moji/mjweather/weather/window/Label;-><init>(Landroid/content/Context;Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;Lcom/moji/http/show/IWindowData;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;Lcom/moji/http/show/IWindowData;)V
|
|
.locals 0
|
|
|
|
.line 43
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 44
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->e:Landroid/content/Context;
|
|
|
|
.line 45
|
|
iput-object p2, p0, Lcom/moji/mjweather/weather/window/Label;->f:Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;
|
|
|
|
.line 46
|
|
iput-object p3, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
.line 47
|
|
invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
|
|
|
move-result-object p1
|
|
|
|
const p2, 0x7f0b024d
|
|
|
|
const/4 p3, 0x0
|
|
|
|
invoke-virtual {p1, p2, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
.line 48
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
const p2, 0x7f090503
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/LinearLayout;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->c:Landroid/widget/LinearLayout;
|
|
|
|
.line 49
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->c:Landroid/widget/LinearLayout;
|
|
|
|
new-instance p2, Lcom/moji/tool/drawable/MJStateDrawable;
|
|
|
|
const p3, 0x7f080498
|
|
|
|
invoke-direct {p2, p3}, Lcom/moji/tool/drawable/MJStateDrawable;-><init>(I)V
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 50
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
invoke-virtual {p1, p0}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V
|
|
|
|
.line 51
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
const p2, 0x7f090ab8
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->a:Landroid/widget/TextView;
|
|
|
|
.line 52
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
const p2, 0x7f0903ac
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
.line 53
|
|
new-instance p1, Lcom/moji/mjweather/weather/window/Label$ViewHandler;
|
|
|
|
invoke-direct {p1, p0}, Lcom/moji/mjweather/weather/window/Label$ViewHandler;-><init>(Lcom/moji/mjweather/weather/window/Label;)V
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->i:Lcom/moji/mjweather/weather/window/Label$ViewHandler;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/weather/window/Label;)Landroid/widget/LinearLayout;
|
|
.locals 0
|
|
|
|
.line 28
|
|
iget-object p0, p0, Lcom/moji/mjweather/weather/window/Label;->b:Landroid/widget/LinearLayout;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private a(I)V
|
|
.locals 2
|
|
|
|
.line 99
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
invoke-interface {v0}, Lcom/moji/http/show/IWindowData;->c()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 100
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
.line 101
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->e:Landroid/content/Context;
|
|
|
|
invoke-static {p1}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
invoke-interface {v0}, Lcom/moji/http/show/IWindowData;->c()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/Picasso;->a(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
.line 104
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
const/16 v0, 0x8
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 106
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V
|
|
|
|
.line 107
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->e:Landroid/content/Context;
|
|
|
|
invoke-static {v0}, Lcom/squareup/picasso/Picasso;->a(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/squareup/picasso/Picasso;->a(I)Lcom/squareup/picasso/RequestCreator;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->d:Landroid/widget/ImageView;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/squareup/picasso/RequestCreator;->a(Landroid/widget/ImageView;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/weather/window/Label;I)V
|
|
.locals 0
|
|
|
|
.line 28
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/window/Label;->a(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/mjweather/weather/window/Label;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
.line 28
|
|
invoke-direct {p0, p1}, Lcom/moji/mjweather/weather/window/Label;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 81
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
invoke-interface {v0}, Lcom/moji/http/show/IWindowData;->a()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 82
|
|
iget-object p1, p0, Lcom/moji/mjweather/weather/window/Label;->a:Landroid/widget/TextView;
|
|
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->g:Lcom/moji/http/show/IWindowData;
|
|
|
|
invoke-interface {v0}, Lcom/moji/http/show/IWindowData;->a()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 84
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->a:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()I
|
|
.locals 1
|
|
|
|
.line 123
|
|
iget v0, p0, Lcom/moji/mjweather/weather/window/Label;->h:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public b()Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;
|
|
.locals 1
|
|
|
|
.line 67
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label;->f:Lcom/moji/mjweather/weather/window/LabelWindow$LABEL_POSITION;
|
|
|
|
return-object v0
|
|
.end method
|