115 lines
2.7 KiB
Smali
115 lines
2.7 KiB
Smali
.class Lcom/moji/mjweather/MainActivity$MainHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "MainActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/MainActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "MainHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/moji/mjweather/MainActivity;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/moji/mjweather/MainActivity;)V
|
|
.locals 1
|
|
|
|
.line 1222
|
|
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 1223
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lcom/moji/mjweather/MainActivity$MainHandler;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 2
|
|
|
|
.line 1228
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
|
|
|
.line 1229
|
|
iget-object v0, p0, Lcom/moji/mjweather/MainActivity$MainHandler;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 1230
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/mjweather/MainActivity$MainHandler;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/moji/mjweather/MainActivity;
|
|
|
|
.line 1231
|
|
iget p1, p1, Landroid/os/Message;->what:I
|
|
|
|
const/16 v1, 0xc8
|
|
|
|
if-eq p1, v1, :cond_1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 1236
|
|
:pswitch_0
|
|
invoke-static {v0}, Lcom/moji/mjweather/MainActivity;->i(Lcom/moji/mjweather/MainActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1233
|
|
:pswitch_1
|
|
invoke-static {v0}, Lcom/moji/mjweather/MainActivity;->h(Lcom/moji/mjweather/MainActivity;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 1239
|
|
:cond_1
|
|
invoke-static {v0}, Lcom/moji/mjweather/MainActivity;->j(Lcom/moji/mjweather/MainActivity;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x63
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|