今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1247 lines
33 KiB

.class public Lcom/viatech/community/UserFanActivity;
.super Landroid/app/Activity;
.source "UserFanActivity.java"
# interfaces
.implements Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;
# static fields
.field private static final a:Ljava/lang/String;
# instance fields
.field private b:Landroid/support/v7/widget/RecyclerView;
.field private c:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/via/vpaicloud/community/respond/UserCenterInfo;",
">;"
}
.end annotation
.end field
.field private d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Lcom/via/vpaicloud/community/respond/UserCenterInfo;",
">;"
}
.end annotation
.end field
.field private e:Lcom/viatech/community/adapter/UserFanAdapter;
.field private f:Z
.field private g:Landroid/os/Handler;
.field private h:Landroid/widget/RelativeLayout;
.field private i:Landroid/widget/TextView;
.field private j:Landroid/widget/RelativeLayout;
.field private k:Landroid/widget/RelativeLayout;
.field private l:Lcom/via/vpaicloud/community/respond/UserCenterInfo;
.field private m:Lcom/via/vpaicloud/community/CommunityClient;
.field private n:Landroid/support/v4/widget/SwipeRefreshLayout;
.field private o:Landroid/widget/TextView;
.field private p:Lcom/viatech/community/views/DrawableCenterEditText;
.field private q:Landroid/widget/TextView;
.field private r:I
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
.line 49
const-class v0, Lcom/viatech/community/UserFanActivity;
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/community/UserFanActivity;->a:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 2
.prologue
const/4 v1, 0x0
.line 47
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 51
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
.line 52
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->d:Ljava/util/List;
.line 54
iput-boolean v1, p0, Lcom/viatech/community/UserFanActivity;->f:Z
.line 55
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->g:Landroid/os/Handler;
.line 228
iput v1, p0, Lcom/viatech/community/UserFanActivity;->r:I
return-void
.end method
.method private a()V
.locals 0
.prologue
.line 81
invoke-direct {p0}, Lcom/viatech/community/UserFanActivity;->b()V
.line 82
invoke-direct {p0}, Lcom/viatech/community/UserFanActivity;->c()V
.line 83
invoke-direct {p0}, Lcom/viatech/community/UserFanActivity;->d()V
.line 84
return-void
.end method
.method private a(I)V
.locals 10
.prologue
const-wide/16 v8, 0x0
const/4 v7, 0x1
const/4 v6, 0x0
.line 232
new-instance v1, Lcom/via/vpaicloud/community/request/UserFanListReq;
invoke-direct {v1}, Lcom/via/vpaicloud/community/request/UserFanListReq;-><init>()V
.line 233
iput-boolean v7, p0, Lcom/viatech/community/UserFanActivity;->f:Z
.line 234
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v0
const-string v2, "forumid"
const-wide/16 v4, 0x1
invoke-interface {v0, v2, v4, v5}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide v2
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->forumid:J
.line 235
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->l:Lcom/via/vpaicloud/community/respond/UserCenterInfo;
iget-wide v2, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserId:J
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->lookeduserid:J
.line 236
if-nez p1, :cond_1
.line 237
iput v6, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->history:I
.line 238
iput-wide v8, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->updatetm:J
.line 239
iput v6, p0, Lcom/viatech/community/UserFanActivity;->r:I
.line 263
:cond_0
:goto_0
const/16 v0, 0xa
iput v0, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->count:I
.line 264
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a;
move-result-object v0
iget-wide v2, v0, Lcom/viatech/community/b/a;->e:J
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->userid:J
.line 265
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a;
move-result-object v0
iget-object v0, v0, Lcom/viatech/community/b/a;->b:Ljava/lang/String;
iput-object v0, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->unionid:Ljava/lang/String;
.line 266
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->m:Lcom/via/vpaicloud/community/CommunityClient;
new-instance v2, Lcom/viatech/community/UserFanActivity$6;
invoke-direct {v2, p0}, Lcom/viatech/community/UserFanActivity$6;-><init>(Lcom/viatech/community/UserFanActivity;)V
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/community/CommunityClient;->requestUserFanList(Lcom/via/vpaicloud/community/request/UserFanListReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V
.line 272
return-void
.line 240
:cond_1
if-ne p1, v7, :cond_3
.line 241
iput v6, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->history:I
.line 242
iput v7, p0, Lcom/viatech/community/UserFanActivity;->r:I
.line 243
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_0
.line 244
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->time:Ljava/lang/String;
.line 245
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_2
.line 246
iput-wide v8, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->updatetm:J
goto :goto_0
.line 248
:cond_2
invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v2
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->updatetm:J
goto :goto_0
.line 252
:cond_3
iput v7, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->history:I
.line 253
const/4 v0, 0x2
iput v0, p0, Lcom/viatech/community/UserFanActivity;->r:I
.line 254
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_0
.line 255
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
iget-object v2, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
add-int/lit8 v2, v2, -0x1
invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->time:Ljava/lang/String;
.line 256
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_4
.line 257
iput-wide v8, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->updatetm:J
goto :goto_0
.line 259
:cond_4
invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v2
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/UserFanListReq;->updatetm:J
goto/16 :goto_0
.end method
.method private a(ILjava/util/List;)V
.locals 3
.prologue
const/4 v2, 0x0
.line 276
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->j:Landroid/widget/RelativeLayout;
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 277
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
invoke-virtual {v0, v2}, Landroid/support/v4/widget/SwipeRefreshLayout;->setRefreshing(Z)V
.line 278
iput-boolean v2, p0, Lcom/viatech/community/UserFanActivity;->f:Z
.line 279
if-nez p1, :cond_1
.line 280
if-eqz p2, :cond_1
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v0
if-ltz v0, :cond_1
.line 281
if-nez p1, :cond_1
.line 282
iget v0, p0, Lcom/viatech/community/UserFanActivity;->r:I
const/4 v1, 0x2
if-ne v0, v1, :cond_3
.line 283
invoke-interface {p2}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_2
.line 284
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->q:Landroid/widget/TextView;
const v1, 0x7f0700f8
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V
.line 295
:cond_0
:goto_0
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
invoke-virtual {v0}, Lcom/viatech/community/adapter/UserFanAdapter;->notifyDataSetChanged()V
.line 303
:cond_1
return-void
.line 286
:cond_2
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
goto :goto_0
.line 289
:cond_3
iget v0, p0, Lcom/viatech/community/UserFanActivity;->r:I
if-nez v0, :cond_4
.line 290
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0, p2}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
goto :goto_0
.line 291
:cond_4
iget v0, p0, Lcom/viatech/community/UserFanActivity;->r:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
.line 292
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0, v2, p2}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z
goto :goto_0
.end method
.method static synthetic a(Lcom/viatech/community/UserFanActivity;I)V
.locals 0
.prologue
.line 47
invoke-direct {p0, p1}, Lcom/viatech/community/UserFanActivity;->b(I)V
return-void
.end method
.method static synthetic a(Lcom/viatech/community/UserFanActivity;ILjava/util/List;)V
.locals 0
.prologue
.line 47
invoke-direct {p0, p1, p2}, Lcom/viatech/community/UserFanActivity;->a(ILjava/util/List;)V
return-void
.end method
.method static synthetic a(Lcom/viatech/community/UserFanActivity;)Z
.locals 1
.prologue
.line 47
iget-boolean v0, p0, Lcom/viatech/community/UserFanActivity;->f:Z
return v0
.end method
.method static synthetic a(Lcom/viatech/community/UserFanActivity;Z)Z
.locals 0
.prologue
.line 47
iput-boolean p1, p0, Lcom/viatech/community/UserFanActivity;->f:Z
return p1
.end method
.method static synthetic b(Lcom/viatech/community/UserFanActivity;)Ljava/util/List;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
return-object v0
.end method
.method private b()V
.locals 3
.prologue
.line 87
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getActionBar()Landroid/app/ActionBar;
move-result-object v0
.line 88
if-eqz v0, :cond_0
.line 89
invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V
.line 91
:cond_0
const v0, 0x7f0c00a4
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->h:Landroid/widget/RelativeLayout;
.line 92
const v0, 0x7f0c00a5
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->i:Landroid/widget/TextView;
.line 93
const v0, 0x7f0c00a6
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->o:Landroid/widget/TextView;
.line 94
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->i:Landroid/widget/TextView;
new-instance v1, Lcom/viatech/community/UserFanActivity$1;
invoke-direct {v1, p0}, Lcom/viatech/community/UserFanActivity$1;-><init>(Lcom/viatech/community/UserFanActivity;)V
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 100
const v0, 0x7f0c00a7
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/support/v4/widget/SwipeRefreshLayout;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
.line 101
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
invoke-virtual {v0, p0}, Landroid/support/v4/widget/SwipeRefreshLayout;->setOnRefreshListener(Landroid/support/v4/widget/SwipeRefreshLayout$OnRefreshListener;)V
.line 102
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
const/4 v1, 0x4
new-array v1, v1, [I
fill-array-data v1, :array_0
invoke-virtual {v0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setColorSchemeResources([I)V
.line 107
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
const/16 v1, 0x12c
invoke-virtual {v0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setDistanceToTriggerSync(I)V
.line 108
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->n:Landroid/support/v4/widget/SwipeRefreshLayout;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Landroid/support/v4/widget/SwipeRefreshLayout;->setSize(I)V
.line 109
const v0, 0x7f0c00a8
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/support/v7/widget/RecyclerView;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->b:Landroid/support/v7/widget/RecyclerView;
.line 110
new-instance v0, Landroid/support/v7/widget/LinearLayoutManager;
invoke-direct {v0, p0}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V
.line 111
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->b:Landroid/support/v7/widget/RecyclerView;
invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V
.line 112
new-instance v1, Lcom/viatech/community/adapter/UserFanAdapter;
iget-object v2, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-direct {v1, p0, v2}, Lcom/viatech/community/adapter/UserFanAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V
iput-object v1, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
.line 113
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
new-instance v2, Lcom/viatech/community/UserFanActivity$2;
invoke-direct {v2, p0}, Lcom/viatech/community/UserFanActivity$2;-><init>(Lcom/viatech/community/UserFanActivity;)V
invoke-virtual {v1, v2}, Lcom/viatech/community/adapter/UserFanAdapter;->a(Lcom/viatech/community/adapter/UserFanAdapter$a;)V
.line 134
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->b:Landroid/support/v7/widget/RecyclerView;
iget-object v2, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V
.line 135
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->b:Landroid/support/v7/widget/RecyclerView;
new-instance v2, Lcom/viatech/community/UserFanActivity$3;
invoke-direct {v2, p0, v0}, Lcom/viatech/community/UserFanActivity$3;-><init>(Lcom/viatech/community/UserFanActivity;Landroid/support/v7/widget/LinearLayoutManager;)V
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->addOnScrollListener(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V
.line 151
return-void
.line 102
:array_0
.array-data 4
0x106001b
0x1060014
0x1060018
0x1060016
.end array-data
.end method
.method private b(I)V
.locals 6
.prologue
.line 307
new-instance v1, Lcom/via/vpaicloud/community/request/FollowReq;
invoke-direct {v1}, Lcom/via/vpaicloud/community/request/FollowReq;-><init>()V
.line 308
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;
.line 309
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;
move-result-object v2
const-string v3, "forumid"
const-wide/16 v4, 0x1
invoke-interface {v2, v3, v4, v5}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J
move-result-wide v2
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/FollowReq;->forumid:J
.line 310
iget-wide v2, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserId:J
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/FollowReq;->lookeduserid:J
.line 311
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a;
move-result-object v2
iget-wide v2, v2, Lcom/viatech/community/b/a;->e:J
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/FollowReq;->userid:J
.line 312
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a;
move-result-object v2
iget-object v2, v2, Lcom/viatech/community/b/a;->b:Ljava/lang/String;
iput-object v2, v1, Lcom/via/vpaicloud/community/request/FollowReq;->unionid:Ljava/lang/String;
.line 313
iget v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->isFollowed:I
rsub-int/lit8 v0, v0, 0x1
iput v0, v1, Lcom/via/vpaicloud/community/request/FollowReq;->type:I
.line 314
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->m:Lcom/via/vpaicloud/community/CommunityClient;
new-instance v2, Lcom/viatech/community/UserFanActivity$7;
invoke-direct {v2, p0, p1, v1}, Lcom/viatech/community/UserFanActivity$7;-><init>(Lcom/viatech/community/UserFanActivity;ILcom/via/vpaicloud/community/request/FollowReq;)V
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/community/CommunityClient;->requestFollow(Lcom/via/vpaicloud/community/request/FollowReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V
.line 330
return-void
.end method
.method static synthetic b(Lcom/viatech/community/UserFanActivity;I)V
.locals 0
.prologue
.line 47
invoke-direct {p0, p1}, Lcom/viatech/community/UserFanActivity;->a(I)V
return-void
.end method
.method static synthetic c(Lcom/viatech/community/UserFanActivity;)Landroid/widget/RelativeLayout;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->j:Landroid/widget/RelativeLayout;
return-object v0
.end method
.method private c()V
.locals 3
.prologue
const/4 v2, 0x0
.line 154
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f03004d
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->k:Landroid/widget/RelativeLayout;
.line 155
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getLayoutInflater()Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f03004f
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/RelativeLayout;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->j:Landroid/widget/RelativeLayout;
.line 156
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->j:Landroid/widget/RelativeLayout;
const v1, 0x7f0c01c4
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->q:Landroid/widget/TextView;
.line 157
const v0, 0x7f0c020d
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Lcom/viatech/community/views/DrawableCenterEditText;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->p:Lcom/viatech/community/views/DrawableCenterEditText;
.line 158
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->p:Lcom/viatech/community/views/DrawableCenterEditText;
new-instance v1, Lcom/viatech/community/UserFanActivity$4;
invoke-direct {v1, p0}, Lcom/viatech/community/UserFanActivity$4;-><init>(Lcom/viatech/community/UserFanActivity;)V
invoke-virtual {v0, v1}, Lcom/viatech/community/views/DrawableCenterEditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
.line 195
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->p:Lcom/viatech/community/views/DrawableCenterEditText;
new-instance v1, Lcom/viatech/community/UserFanActivity$5;
invoke-direct {v1, p0}, Lcom/viatech/community/UserFanActivity$5;-><init>(Lcom/viatech/community/UserFanActivity;)V
invoke-virtual {v0, v1}, Lcom/viatech/community/views/DrawableCenterEditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V
.line 209
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->k:Landroid/widget/RelativeLayout;
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFanAdapter;->a(Landroid/view/View;)V
.line 210
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
iget-object v1, p0, Lcom/viatech/community/UserFanActivity;->j:Landroid/widget/RelativeLayout;
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/UserFanAdapter;->b(Landroid/view/View;)V
.line 211
return-void
.end method
.method static synthetic d(Lcom/viatech/community/UserFanActivity;)Landroid/os/Handler;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->g:Landroid/os/Handler;
return-object v0
.end method
.method private d()V
.locals 4
.prologue
.line 214
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getIntent()Landroid/content/Intent;
move-result-object v0
.line 215
const-string v1, "lookeduser"
invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->l:Lcom/via/vpaicloud/community/respond/UserCenterInfo;
.line 216
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->l:Lcom/via/vpaicloud/community/respond/UserCenterInfo;
if-nez v0, :cond_0
.line 226
:goto_0
return-void
.line 219
:cond_0
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->l:Lcom/via/vpaicloud/community/respond/UserCenterInfo;
iget-wide v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserId:J
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a;
move-result-object v2
iget-wide v2, v2, Lcom/viatech/community/b/a;->e:J
cmp-long v0, v0, v2
if-nez v0, :cond_1
.line 220
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->o:Landroid/widget/TextView;
const v1, 0x7f070100
invoke-virtual {p0, v1}, Lcom/viatech/community/UserFanActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 224
:goto_1
invoke-static {}, Lcom/via/vpaicloud/community/CommunityClient;->getClient()Lcom/via/vpaicloud/community/CommunityClient;
move-result-object v0
iput-object v0, p0, Lcom/viatech/community/UserFanActivity;->m:Lcom/via/vpaicloud/community/CommunityClient;
.line 225
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/viatech/community/UserFanActivity;->a(I)V
goto :goto_0
.line 222
:cond_1
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->o:Landroid/widget/TextView;
const v1, 0x7f0701d6
invoke-virtual {p0, v1}, Lcom/viatech/community/UserFanActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
goto :goto_1
.end method
.method static synthetic e(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/views/DrawableCenterEditText;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->p:Lcom/viatech/community/views/DrawableCenterEditText;
return-object v0
.end method
.method static synthetic f(Lcom/viatech/community/UserFanActivity;)Ljava/util/List;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->d:Ljava/util/List;
return-object v0
.end method
.method static synthetic g(Lcom/viatech/community/UserFanActivity;)Lcom/viatech/community/adapter/UserFanAdapter;
.locals 1
.prologue
.line 47
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->e:Lcom/viatech/community/adapter/UserFanAdapter;
return-object v0
.end method
# virtual methods
.method public a(Landroid/view/View;Landroid/view/MotionEvent;)Z
.locals 7
.prologue
const/4 v1, 0x1
const/4 v0, 0x0
.line 362
if-eqz p1, :cond_0
instance-of v2, p1, Landroid/widget/EditText;
if-eqz v2, :cond_0
.line 363
const/4 v2, 0x2
new-array v2, v2, [I
fill-array-data v2, :array_0
.line 365
invoke-virtual {p1, v2}, Landroid/view/View;->getLocationInWindow([I)V
.line 366
aget v3, v2, v0
.line 367
aget v2, v2, v1
.line 368
invoke-virtual {p1}, Landroid/view/View;->getHeight()I
move-result v4
add-int/2addr v4, v2
.line 369
invoke-virtual {p1}, Landroid/view/View;->getWidth()I
move-result v5
add-int/2addr v5, v3
.line 370
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result v6
int-to-float v3, v3
cmpl-float v3, v6, v3
if-lez v3, :cond_1
invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F
move-result v3
int-to-float v5, v5
cmpg-float v3, v3, v5
if-gez v3, :cond_1
.line 371
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result v3
int-to-float v2, v2
cmpl-float v2, v3, v2
if-lez v2, :cond_1
invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F
move-result v2
int-to-float v3, v4
cmpg-float v2, v2, v3
if-gez v2, :cond_1
.line 378
:cond_0
:goto_0
return v0
:cond_1
move v0, v1
.line 375
goto :goto_0
.line 363
:array_0
.array-data 4
0x0
0x0
.end array-data
.end method
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
.locals 3
.prologue
.line 342
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I
move-result v0
if-nez v0, :cond_1
.line 343
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getCurrentFocus()Landroid/view/View;
move-result-object v1
.line 344
invoke-virtual {p0, v1, p1}, Lcom/viatech/community/UserFanActivity;->a(Landroid/view/View;Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_0
.line 346
const-string v0, "input_method"
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
.line 347
if-eqz v0, :cond_0
.line 348
invoke-virtual {v1}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
move-result-object v1
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
.line 349
iget-object v0, p0, Lcom/viatech/community/UserFanActivity;->p:Lcom/viatech/community/views/DrawableCenterEditText;
invoke-virtual {v0}, Lcom/viatech/community/views/DrawableCenterEditText;->clearFocus()V
.line 352
:cond_0
invoke-super {p0, p1}, Landroid/app/Activity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
.line 358
:goto_0
return v0
.line 355
:cond_1
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->getWindow()Landroid/view/Window;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/view/Window;->superDispatchTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
if-eqz v0, :cond_2
.line 356
const/4 v0, 0x1
goto :goto_0
.line 358
:cond_2
invoke-virtual {p0, p1}, Lcom/viatech/community/UserFanActivity;->onTouchEvent(Landroid/view/MotionEvent;)Z
move-result v0
goto :goto_0
.end method
.method protected onCreate(Landroid/os/Bundle;)V
.locals 1
.param p1 # Landroid/os/Bundle;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
.prologue
.line 69
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 70
const v0, 0x7f030023
invoke-virtual {p0, v0}, Lcom/viatech/community/UserFanActivity;->setContentView(I)V
.line 71
invoke-direct {p0}, Lcom/viatech/community/UserFanActivity;->a()V
.line 72
return-void
.end method
.method protected onPause()V
.locals 0
.prologue
.line 76
invoke-super {p0}, Landroid/app/Activity;->onPause()V
.line 77
invoke-virtual {p0}, Lcom/viatech/community/UserFanActivity;->finish()V
.line 78
return-void
.end method
.method public onRefresh()V
.locals 1
.prologue
.line 334
iget-boolean v0, p0, Lcom/viatech/community/UserFanActivity;->f:Z
if-eqz v0, :cond_0
.line 338
:goto_0
return-void
.line 337
:cond_0
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/viatech/community/UserFanActivity;->a(I)V
goto :goto_0
.end method