今奥全景相机
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.

478 lines
17 KiB

.class Lcom/viatech/community/UserCenterActivity$5;
.super Ljava/lang/Object;
.source "UserCenterActivity.java"
# interfaces
.implements Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/community/UserCenterActivity;->e()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/viatech/community/UserCenterActivity;
# direct methods
.method constructor <init>(Lcom/viatech/community/UserCenterActivity;)V
.locals 0
.prologue
.line 290
iput-object p1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCommunityHttpCallback(IILjava/util/List;)V
.locals 9
.prologue
const v2, 0x7f02018f
const/4 v8, 0x1
const/4 v7, 0x0
const/4 v6, 0x0
.line 293
if-nez p1, :cond_2
.line 294
if-eqz p3, :cond_2
invoke-interface {p3}, Ljava/util/List;->size()I
move-result v0
if-lez v0, :cond_2
.line 295
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-interface {p3, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;
invoke-static {v1, v0}, Lcom/viatech/community/UserCenterActivity;->a(Lcom/viatech/community/UserCenterActivity;Lcom/via/vpaicloud/community/respond/UserCenterInfo;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
.line 296
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v0
if-eqz v0, :cond_2
.line 297
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v0
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserName:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_0
.line 298
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->h(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v1}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v1
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserName:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 300
:cond_0
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v0
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserLocation:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_1
.line 301
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->i(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v1}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v1
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserLocation:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 303
:cond_1
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v0
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserHeadImg:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_3
.line 304
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/util/VPaiPicasso;->networkPicasso(Landroid/content/Context;)Lcom/squareup/picasso/Picasso;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
.line 305
invoke-static {v1}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v1
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->lookedUserHeadImg:Ljava/lang/String;
invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator;
move-result-object v0
.line 306
invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator;
move-result-object v0
.line 307
invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->error(I)Lcom/squareup/picasso/RequestCreator;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
.line 308
invoke-static {v1}, Lcom/viatech/community/UserCenterActivity;->j(Lcom/viatech/community/UserCenterActivity;)Lde/hdodenhof/circleimageview/CircleImageView;
move-result-object v1
new-instance v2, Lcom/viatech/community/UserCenterActivity$5$1;
invoke-direct {v2, p0}, Lcom/viatech/community/UserCenterActivity$5$1;-><init>(Lcom/viatech/community/UserCenterActivity$5;)V
invoke-virtual {v0, v1, v2}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;Lcom/squareup/picasso/Callback;)V
.line 322
:goto_0
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->k(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
const v2, 0x7f0701ce
invoke-virtual {v1, v2}, Lcom/viatech/community/UserCenterActivity;->getString(I)Ljava/lang/String;
move-result-object v1
new-array v2, v8, [Ljava/lang/Object;
iget-object v3, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v3}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v3
iget-wide v4, v3, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->fannum:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v2, v7
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 323
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->l(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
const v2, 0x7f0701d0
invoke-virtual {v1, v2}, Lcom/viatech/community/UserCenterActivity;->getString(I)Ljava/lang/String;
move-result-object v1
new-array v2, v8, [Ljava/lang/Object;
iget-object v3, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v3}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v3
iget-wide v4, v3, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->follownum:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v2, v7
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 324
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->m(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
const v2, 0x7f0701d1
invoke-virtual {v1, v2}, Lcom/viatech/community/UserCenterActivity;->getString(I)Ljava/lang/String;
move-result-object v1
new-array v2, v8, [Ljava/lang/Object;
iget-object v3, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v3}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v3
iget-wide v4, v3, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->postnum:J
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
aput-object v3, v2, v7
invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 325
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->g(Lcom/viatech/community/UserCenterActivity;)Lcom/via/vpaicloud/community/respond/UserCenterInfo;
move-result-object v0
iget v0, v0, Lcom/via/vpaicloud/community/respond/UserCenterInfo;->isFollowed:I
if-ne v0, v8, :cond_4
.line 326
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
const v2, 0x7f0701d3
invoke-virtual {v1, v2}, Lcom/viatech/community/UserCenterActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 327
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-virtual {v1}, Lcom/viatech/community/UserCenterActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f020218
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 328
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
invoke-virtual {v0, v6, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
.line 336
:goto_1
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->o(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/RelativeLayout;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V
.line 342
:cond_2
return-void
.line 320
:cond_3
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->j(Lcom/viatech/community/UserCenterActivity;)Lde/hdodenhof/circleimageview/CircleImageView;
move-result-object v0
invoke-virtual {v0, v2}, Lde/hdodenhof/circleimageview/CircleImageView;->setImageResource(I)V
goto/16 :goto_0
.line 330
:cond_4
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
const v2, 0x7f0701cf
invoke-virtual {v1, v2}, Lcom/viatech/community/UserCenterActivity;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
.line 331
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v0}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v0
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-virtual {v1}, Lcom/viatech/community/UserCenterActivity;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f020217
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackground(Landroid/graphics/drawable/Drawable;)V
.line 332
iget-object v0, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-virtual {v0}, Lcom/viatech/community/UserCenterActivity;->getResources()Landroid/content/res/Resources;
move-result-object v0
const v1, 0x7f02013e
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
move-result-object v0
.line 333
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getMinimumWidth()I
move-result v1
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getMinimumHeight()I
move-result v2
invoke-virtual {v0, v7, v7, v1, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 334
iget-object v1, p0, Lcom/viatech/community/UserCenterActivity$5;->a:Lcom/viatech/community/UserCenterActivity;
invoke-static {v1}, Lcom/viatech/community/UserCenterActivity;->n(Lcom/viatech/community/UserCenterActivity;)Landroid/widget/TextView;
move-result-object v1
invoke-virtual {v1, v0, v6, v6, v6}, Landroid/widget/TextView;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
goto :goto_1
.end method