144 lines
3.5 KiB
Smali
144 lines
3.5 KiB
Smali
.class Lcom/moji/mjweather/weather/window/Label$ViewHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "Label.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/weather/window/Label;
|
|
.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/Label;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/mjweather/weather/window/Label;)V
|
|
.locals 1
|
|
|
|
.line 141
|
|
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 142
|
|
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/Label$ViewHandler;->a:Ljava/lang/ref/SoftReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public dispatchMessage(Landroid/os/Message;)V
|
|
.locals 3
|
|
|
|
.line 147
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->dispatchMessage(Landroid/os/Message;)V
|
|
|
|
.line 148
|
|
iget-object v0, p0, Lcom/moji/mjweather/weather/window/Label$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/Label;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 150
|
|
iget v1, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v2, 0x58
|
|
|
|
if-eq v1, v2, :cond_2
|
|
|
|
const/16 v2, 0x63
|
|
|
|
if-eq v1, v2, :cond_1
|
|
|
|
const/16 v2, 0x7a
|
|
|
|
if-eq v1, v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 160
|
|
:cond_0
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
instance-of v1, v1, Landroid/view/View$OnClickListener;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 161
|
|
invoke-static {v0}, Lcom/moji/mjweather/weather/window/Label;->a(Lcom/moji/mjweather/weather/window/Label;)Landroid/widget/LinearLayout;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Landroid/view/View$OnClickListener;
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 157
|
|
:cond_1
|
|
iget p1, p1, Landroid/os/Message;->arg1:I
|
|
|
|
invoke-static {v0, p1}, Lcom/moji/mjweather/weather/window/Label;->a(Lcom/moji/mjweather/weather/window/Label;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 152
|
|
:cond_2
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
instance-of v1, v1, Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 153
|
|
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/Label;->a(Lcom/moji/mjweather/weather/window/Label;Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
.end method
|