199 lines
5.3 KiB
Smali
199 lines
5.3 KiB
Smali
.class Lcom/moji/mjweather/setting/activity/FeedBackActivity$FeedBackHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "FeedBackActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/setting/activity/FeedBackActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "FeedBackHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Ljava/lang/ref/WeakReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/moji/mjweather/setting/activity/FeedBackActivity;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/ref/WeakReference;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Lcom/moji/mjweather/setting/activity/FeedBackActivity;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 960
|
|
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
|
|
|
|
.line 961
|
|
iput-object p1, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$FeedBackHandler;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 4
|
|
|
|
.line 965
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
|
|
|
.line 966
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$FeedBackHandler;->a:Ljava/lang/ref/WeakReference;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 967
|
|
iget-object v0, p0, Lcom/moji/mjweather/setting/activity/FeedBackActivity$FeedBackHandler;->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/setting/activity/FeedBackActivity;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 968
|
|
invoke-virtual {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->isFinishing()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 969
|
|
iget v1, p1, Landroid/os/Message;->what:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
packed-switch v1, :pswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 985
|
|
:pswitch_0
|
|
invoke-static {v0, v2}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->e(Lcom/moji/mjweather/setting/activity/FeedBackActivity;Z)Z
|
|
|
|
.line 986
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->n(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 987
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->n(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->clearAnimation()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 972
|
|
:pswitch_1
|
|
iget-object v1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast v1, Ljava/util/ArrayList;
|
|
|
|
.line 973
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->f(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v3, v2, v1}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z
|
|
|
|
.line 974
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->g(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Ljava/util/List;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v3, v2, v1}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z
|
|
|
|
.line 975
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->c(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Lcom/moji/mjweather/setting/adapter/FeedMsgViewAdapter;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/moji/mjweather/setting/adapter/FeedMsgViewAdapter;->notifyDataSetChanged()V
|
|
|
|
.line 976
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v2
|
|
|
|
const/16 v3, 0xf
|
|
|
|
if-ge v2, v3, :cond_0
|
|
|
|
.line 977
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->d(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Landroid/widget/ListView;
|
|
|
|
move-result-object v0
|
|
|
|
iget v2, p1, Landroid/os/Message;->arg1:I
|
|
|
|
.line 978
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
iget p1, p1, Landroid/os/Message;->arg2:I
|
|
|
|
.line 977
|
|
invoke-virtual {v0, v2, p1}, Landroid/widget/ListView;->setSelectionFromTop(II)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 980
|
|
:cond_0
|
|
invoke-static {v0}, Lcom/moji/mjweather/setting/activity/FeedBackActivity;->d(Lcom/moji/mjweather/setting/activity/FeedBackActivity;)Landroid/widget/ListView;
|
|
|
|
move-result-object v0
|
|
|
|
iget v2, p1, Landroid/os/Message;->arg1:I
|
|
|
|
.line 981
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iget p1, p1, Landroid/os/Message;->arg2:I
|
|
|
|
.line 980
|
|
invoke-virtual {v0, v2, p1}, Landroid/widget/ListView;->setSelectionFromTop(II)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0xb
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|