204 lines
4.8 KiB
Smali
204 lines
4.8 KiB
Smali
.class Lcom/moji/mjweather/weather/window/BigLabel$ViewHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "BigLabel.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/weather/window/BigLabel;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "ViewHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/ref/SoftReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/SoftReference<",
|
|
"Lcom/moji/mjweather/weather/window/BigLabel;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/weather/window/BigLabel;)V
|
|
.locals 1
|
|
|
|
.line 190
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p0, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
.line 191
|
|
new-instance v0, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/weather/window/BigLabel$ViewHandler;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispatchMessage(Landroid/os/Message;)V
|
|
.locals 3
|
|
|
|
.line 196
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->dispatchMessage(Landroid/os/Message;)V
|
|
|
|
.line 197
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/BigLabel$ViewHandler;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/weather/window/BigLabel;
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 199
|
|
iget v1, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v2, 0x42
|
|
|
|
if-eq v1, v2, :cond_5
|
|
|
|
const/16 v2, 0x4d
|
|
|
|
if-eq v1, v2, :cond_4
|
|
|
|
const/16 v2, 0x58
|
|
|
|
if-eq v1, v2, :cond_3
|
|
|
|
const/16 v2, 0x63
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const/16 v2, 0x6f
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/16 v2, 0x7a
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 222
|
|
:cond_0
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
instance-of v1, v1, Landroid/view/View$OnClickListener;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 223
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Landroid/view/View$OnClickListener;
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/mjweather/weather/window/BigLabel;->a(Lcom/moji/mjweather/weather/window/BigLabel;Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 206
|
|
:cond_1
|
|
iget v1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 207
|
|
invoke-static {v0}, Lcom/moji/mjweather/weather/window/BigLabel;->a(Lcom/moji/mjweather/weather/window/BigLabel;)Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
iget p1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setMaxLines(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 219
|
|
:cond_2
|
|
iget p1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/mjweather/weather/window/BigLabel;->a(Lcom/moji/mjweather/weather/window/BigLabel;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 211
|
|
:cond_3
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
instance-of v1, v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 212
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/mjweather/weather/window/BigLabel;->a(Lcom/moji/mjweather/weather/window/BigLabel;Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 216
|
|
:cond_4
|
|
invoke-static {v0}, Lcom/moji/mjweather/weather/window/BigLabel;->b(Lcom/moji/mjweather/weather/window/BigLabel;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 201
|
|
:cond_5
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
instance-of v1, v1, Ljava/lang/Float;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
.line 202
|
|
invoke-static {v0}, Lcom/moji/mjweather/weather/window/BigLabel;->a(Lcom/moji/mjweather/weather/window/BigLabel;)Landroid/widget/TextView;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/Float;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Float;->floatValue()F
|
|
|
|
move-result p1
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextSize(F)V
|
|
|
|
:cond_6
|
|
:goto_0
|
|
return-void
|
|
.end method
|