109 lines
2.5 KiB
Smali
109 lines
2.5 KiB
Smali
.class Lcom/moji/mjweather/feed/ChannelBaseFragment$MyHandler;
|
|
.super Landroid/os/Handler;
|
|
.source "ChannelBaseFragment.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/mjweather/feed/ChannelBaseFragment;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "MyHandler"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Landroid/content/Context;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
.locals 1
|
|
|
|
.line 125
|
|
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
|
|
|
|
.line 126
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
iput-object p1, p0, Lcom/moji/mjweather/feed/ChannelBaseFragment$MyHandler;->a:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public handleMessage(Landroid/os/Message;)V
|
|
.locals 5
|
|
|
|
.line 131
|
|
invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
|
|
|
|
.line 132
|
|
iget v0, p1, Landroid/os/Message;->what:I
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 134
|
|
:cond_0
|
|
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
.line 135
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
move-result-object v0
|
|
|
|
.line 136
|
|
iget v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
const/4 v3, 0x5
|
|
|
|
const/16 v4, 0x8
|
|
|
|
if-ge v2, v3, :cond_1
|
|
|
|
.line 137
|
|
invoke-virtual {p1, v4}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 139
|
|
:cond_1
|
|
iget v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
sub-int/2addr v2, v4
|
|
|
|
iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
.line 140
|
|
invoke-virtual {p1}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 141
|
|
invoke-virtual {p0, v1, p1}, Lcom/moji/mjweather/feed/ChannelBaseFragment$MyHandler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
|
|
|
|
move-result-object p1
|
|
|
|
const-wide/16 v0, 0x8
|
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lcom/moji/mjweather/feed/ChannelBaseFragment$MyHandler;->sendMessageDelayed(Landroid/os/Message;J)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|