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.
2081 lines
60 KiB
2081 lines
60 KiB
.class public Lcom/viatech/community/VideoDetailActivity; |
|
.super Landroid/app/Activity; |
|
.source "VideoDetailActivity.java" |
|
|
|
# interfaces |
|
.implements Landroid/text/TextWatcher; |
|
.implements Landroid/view/View$OnClickListener; |
|
|
|
|
|
# static fields |
|
.field private static final b:Ljava/lang/String; |
|
|
|
|
|
# instance fields |
|
.field private A:Landroid/widget/ImageView; |
|
|
|
.field private B:Landroid/widget/LinearLayout; |
|
|
|
.field private C:Landroid/widget/RelativeLayout; |
|
|
|
.field private D:Landroid/widget/TextView; |
|
|
|
.field private E:Ljava/util/List; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"Ljava/util/List", |
|
"<", |
|
"Lcom/via/vpaicloud/community/respond/CommentRsp;", |
|
">;" |
|
} |
|
.end annotation |
|
.end field |
|
|
|
.field private F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
.field private G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
.field private a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
.field private c:Z |
|
|
|
.field private d:Z |
|
|
|
.field private e:Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener; |
|
|
|
.field private f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
.field private g:Landroid/widget/RelativeLayout; |
|
|
|
.field private h:Landroid/widget/TextView; |
|
|
|
.field private i:Landroid/support/v7/widget/RecyclerView; |
|
|
|
.field private j:Landroid/widget/LinearLayout; |
|
|
|
.field private k:Landroid/widget/EditText; |
|
|
|
.field private l:Landroid/widget/TextView; |
|
|
|
.field private m:Landroid/widget/RelativeLayout; |
|
|
|
.field private n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
.field private o:Landroid/os/Handler; |
|
|
|
.field private p:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
.field private q:Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
.field private r:Landroid/widget/TextView; |
|
|
|
.field private s:Landroid/widget/TextView; |
|
|
|
.field private t:Landroid/widget/TextView; |
|
|
|
.field private u:Landroid/widget/TextView; |
|
|
|
.field private v:Landroid/widget/ImageView; |
|
|
|
.field private w:Landroid/widget/TextView; |
|
|
|
.field private x:Landroid/widget/ImageView; |
|
|
|
.field private y:Landroid/widget/TextView; |
|
|
|
.field private z:Landroid/widget/ImageView; |
|
|
|
|
|
# direct methods |
|
.method static constructor <clinit>()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 67 |
|
const-class v0, Lcom/viatech/community/VideoDetailActivity; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
sput-object v0, Lcom/viatech/community/VideoDetailActivity;->b:Ljava/lang/String; |
|
|
|
return-void |
|
.end method |
|
|
|
.method public constructor <init>()V |
|
.locals 1 |
|
|
|
.prologue |
|
const/4 v0, 0x0 |
|
|
|
.line 64 |
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V |
|
|
|
.line 68 |
|
iput-boolean v0, p0, Lcom/viatech/community/VideoDetailActivity;->c:Z |
|
|
|
.line 69 |
|
iput-boolean v0, p0, Lcom/viatech/community/VideoDetailActivity;->d:Z |
|
|
|
.line 101 |
|
new-instance v0, Lcom/viatech/community/VideoDetailActivity$1; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/community/VideoDetailActivity$1;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->o:Landroid/os/Handler; |
|
|
|
.line 414 |
|
new-instance v0, Ljava/util/ArrayList; |
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic a(Lcom/viatech/community/VideoDetailActivity;)Landroid/widget/RelativeLayout; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->m:Landroid/widget/RelativeLayout; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic a(Lcom/viatech/community/VideoDetailActivity;Lcom/via/vpaicloud/community/respond/CommentRsp;)Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
iput-object p1, p0, Lcom/viatech/community/VideoDetailActivity;->p:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
return-object p1 |
|
.end method |
|
|
|
.method private a()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 88 |
|
invoke-direct {p0}, Lcom/viatech/community/VideoDetailActivity;->b()V |
|
|
|
.line 89 |
|
invoke-direct {p0}, Lcom/viatech/community/VideoDetailActivity;->e()V |
|
|
|
.line 90 |
|
invoke-direct {p0}, Lcom/viatech/community/VideoDetailActivity;->c()V |
|
|
|
.line 91 |
|
return-void |
|
.end method |
|
|
|
.method private a(I)V |
|
.locals 6 |
|
|
|
.prologue |
|
.line 167 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
if-lez v0, :cond_0 |
|
|
|
.line 168 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
if-le v0, p1, :cond_0 |
|
|
|
.line 169 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E: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/CommentRsp; |
|
|
|
.line 170 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 171 |
|
iget-wide v2, v0, Lcom/via/vpaicloud/community/respond/CommentRsp;->replyid:J |
|
|
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v1 |
|
|
|
iget-wide v4, v1, Lcom/viatech/community/b/a;->e:J |
|
|
|
cmp-long v1, v2, v4 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
.line 172 |
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v1 |
|
|
|
iget-object v1, v1, Lcom/viatech/community/b/a;->b:Ljava/lang/String; |
|
|
|
iput-object v1, v0, Lcom/via/vpaicloud/community/respond/CommentRsp;->replyuid:Ljava/lang/String; |
|
|
|
.line 173 |
|
invoke-direct {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->a(Lcom/via/vpaicloud/community/respond/CommentRsp;)V |
|
|
|
.line 178 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method private a(Lcom/via/vpaicloud/community/respond/CommentRsp;)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 183 |
|
new-instance v0, Lcom/viatech/widget/VPaiDialog$Builder; |
|
|
|
invoke-direct {v0, p0}, Lcom/viatech/widget/VPaiDialog$Builder;-><init>(Landroid/content/Context;)V |
|
|
|
.line 184 |
|
const v1, 0x7f070190 |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/community/VideoDetailActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 185 |
|
const v1, 0x7f07018f |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/community/VideoDetailActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/widget/VPaiDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 186 |
|
const v1, 0x7f07018c |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/community/VideoDetailActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$9; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$9;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 192 |
|
const v1, 0x7f07018d |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/community/VideoDetailActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$10; |
|
|
|
invoke-direct {v2, p0, p1}, Lcom/viatech/community/VideoDetailActivity$10;-><init>(Lcom/viatech/community/VideoDetailActivity;Lcom/via/vpaicloud/community/respond/CommentRsp;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/viatech/widget/VPaiDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder; |
|
|
|
.line 231 |
|
invoke-virtual {v0}, Lcom/viatech/widget/VPaiDialog$Builder;->create()Landroid/app/AlertDialog; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V |
|
|
|
.line 232 |
|
return-void |
|
.end method |
|
|
|
.method static synthetic a(Lcom/viatech/community/VideoDetailActivity;I)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
invoke-direct {p0, p1}, Lcom/viatech/community/VideoDetailActivity;->a(I)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic a(Lcom/viatech/community/VideoDetailActivity;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
iput-boolean p1, p0, Lcom/viatech/community/VideoDetailActivity;->d:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method private b()V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 109 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->getActionBar()Landroid/app/ActionBar; |
|
|
|
move-result-object v0 |
|
|
|
.line 110 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 111 |
|
invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V |
|
|
|
.line 113 |
|
:cond_0 |
|
const v0, 0x7f0c008b |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/RelativeLayout; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->g:Landroid/widget/RelativeLayout; |
|
|
|
.line 114 |
|
const v0, 0x7f0c008c |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->h:Landroid/widget/TextView; |
|
|
|
.line 115 |
|
const v0, 0x7f0c008d |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/LinearLayout; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->j:Landroid/widget/LinearLayout; |
|
|
|
.line 116 |
|
const v0, 0x7f0c008e |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/EditText; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
.line 117 |
|
const v0, 0x7f0c008f |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->l:Landroid/widget/TextView; |
|
|
|
.line 118 |
|
const v0, 0x7f0c0091 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/RelativeLayout; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->m:Landroid/widget/RelativeLayout; |
|
|
|
.line 119 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V |
|
|
|
.line 120 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->h:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 121 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->l:Landroid/widget/TextView; |
|
|
|
invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 123 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->m:Landroid/widget/RelativeLayout; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->setVisibility(I)V |
|
|
|
.line 124 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->o:Landroid/os/Handler; |
|
|
|
new-instance v1, Lcom/viatech/community/VideoDetailActivity$6; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/community/VideoDetailActivity$6;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
const-wide/16 v2, 0x320 |
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z |
|
|
|
.line 136 |
|
const v0, 0x7f0c0090 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/support/v7/widget/RecyclerView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->i:Landroid/support/v7/widget/RecyclerView; |
|
|
|
.line 137 |
|
new-instance v0, Landroid/support/v7/widget/LinearLayoutManager; |
|
|
|
invoke-direct {v0, p0}, Landroid/support/v7/widget/LinearLayoutManager;-><init>(Landroid/content/Context;)V |
|
|
|
.line 138 |
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->i:Landroid/support/v7/widget/RecyclerView; |
|
|
|
invoke-virtual {v1, v0}, Landroid/support/v7/widget/RecyclerView;->setLayoutManager(Landroid/support/v7/widget/RecyclerView$LayoutManager;)V |
|
|
|
.line 139 |
|
new-instance v1, Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
invoke-direct {v1, p0, v2}, Lcom/viatech/community/adapter/DetailAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V |
|
|
|
iput-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
.line 140 |
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$7; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$7;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/community/adapter/DetailAdapter;->a(Lcom/viatech/community/adapter/DetailAdapter$b;)V |
|
|
|
.line 146 |
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->i:Landroid/support/v7/widget/RecyclerView; |
|
|
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
invoke-virtual {v1, v2}, Landroid/support/v7/widget/RecyclerView;->setAdapter(Landroid/support/v7/widget/RecyclerView$Adapter;)V |
|
|
|
.line 147 |
|
new-instance v1, Lcom/viatech/community/VideoDetailActivity$8; |
|
|
|
invoke-direct {v1, p0, v0}, Lcom/viatech/community/VideoDetailActivity$8;-><init>(Lcom/viatech/community/VideoDetailActivity;Landroid/support/v7/widget/LinearLayoutManager;)V |
|
|
|
iput-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->e:Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener; |
|
|
|
.line 163 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->i:Landroid/support/v7/widget/RecyclerView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->e:Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener; |
|
|
|
invoke-virtual {v0, v1}, Landroid/support/v7/widget/RecyclerView;->addOnScrollListener(Landroid/support/v7/widget/RecyclerView$OnScrollListener;)V |
|
|
|
.line 164 |
|
return-void |
|
.end method |
|
|
|
.method private b(I)V |
|
.locals 6 |
|
|
|
.prologue |
|
const/4 v4, 0x1 |
|
|
|
.line 435 |
|
iput-boolean v4, p0, Lcom/viatech/community/VideoDetailActivity;->d:Z |
|
|
|
.line 436 |
|
new-instance v1, Lcom/via/vpaicloud/community/request/CommentListReq; |
|
|
|
invoke-direct {v1}, Lcom/via/vpaicloud/community/request/CommentListReq;-><init>()V |
|
|
|
.line 437 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v2, v0, Lcom/via/vpaicloud/community/respond/Post;->postid:J |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->postid:J |
|
|
|
.line 438 |
|
const/16 v0, 0xa |
|
|
|
iput v0, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->count:I |
|
|
|
.line 439 |
|
packed-switch p1, :pswitch_data_0 |
|
|
|
.line 455 |
|
:goto_0 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$4; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$4;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/community/CommunityClient;->requestCommentList(Lcom/via/vpaicloud/community/request/CommentListReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V |
|
|
|
.line 474 |
|
return-void |
|
|
|
.line 441 |
|
:pswitch_0 |
|
const/4 v0, 0x0 |
|
|
|
iput v0, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->history:I |
|
|
|
.line 442 |
|
const-wide/16 v2, 0x0 |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->updatetm:J |
|
|
|
goto :goto_0 |
|
|
|
.line 445 |
|
:pswitch_1 |
|
iput v4, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->history:I |
|
|
|
.line 446 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
invoke-interface {v0}, Ljava/util/List;->size()I |
|
|
|
move-result v0 |
|
|
|
if-lez v0, :cond_0 |
|
|
|
.line 447 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->E: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/CommentRsp; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/CommentRsp;->time:Ljava/lang/String; |
|
|
|
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/CommentListReq;->updatetm:J |
|
|
|
goto :goto_0 |
|
|
|
.line 449 |
|
:cond_0 |
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J |
|
|
|
move-result-wide v2 |
|
|
|
const-wide/16 v4, 0x3e8 |
|
|
|
div-long/2addr v2, v4 |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentListReq;->updatetm:J |
|
|
|
goto :goto_0 |
|
|
|
.line 439 |
|
nop |
|
|
|
:pswitch_data_0 |
|
.packed-switch 0x0 |
|
:pswitch_0 |
|
:pswitch_1 |
|
.end packed-switch |
|
.end method |
|
|
|
.method static synthetic b(Lcom/viatech/community/VideoDetailActivity;I)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
invoke-direct {p0, p1}, Lcom/viatech/community/VideoDetailActivity;->b(I)V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic b(Lcom/viatech/community/VideoDetailActivity;)Z |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-boolean v0, p0, Lcom/viatech/community/VideoDetailActivity;->d:Z |
|
|
|
return v0 |
|
.end method |
|
|
|
.method static synthetic b(Lcom/viatech/community/VideoDetailActivity;Z)Z |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
iput-boolean p1, p0, Lcom/viatech/community/VideoDetailActivity;->c:Z |
|
|
|
return p1 |
|
.end method |
|
|
|
.method static synthetic c(Lcom/viatech/community/VideoDetailActivity;)Landroid/widget/RelativeLayout; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->C:Landroid/widget/RelativeLayout; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private c()V |
|
.locals 4 |
|
|
|
.prologue |
|
const/4 v3, 0x0 |
|
|
|
const v2, 0x7f02018f |
|
|
|
.line 250 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->getLayoutInflater()Landroid/view/LayoutInflater; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f03005a |
|
|
|
invoke-virtual {v0, v1, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/LinearLayout; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
.line 251 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->getLayoutInflater()Landroid/view/LayoutInflater; |
|
|
|
move-result-object v0 |
|
|
|
const v1, 0x7f03004f |
|
|
|
invoke-virtual {v0, v1, v3}, 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/VideoDetailActivity;->C:Landroid/widget/RelativeLayout; |
|
|
|
.line 252 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->C: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/VideoDetailActivity;->D:Landroid/widget/TextView; |
|
|
|
.line 253 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c020e |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->q:Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
.line 254 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0210 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->r:Landroid/widget/TextView; |
|
|
|
.line 255 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0211 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->s:Landroid/widget/TextView; |
|
|
|
.line 256 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c020f |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->t:Landroid/widget/TextView; |
|
|
|
.line 257 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0212 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->u:Landroid/widget/TextView; |
|
|
|
.line 258 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0214 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->v:Landroid/widget/ImageView; |
|
|
|
.line 259 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0215 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->w:Landroid/widget/TextView; |
|
|
|
.line 260 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0217 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->x:Landroid/widget/ImageView; |
|
|
|
.line 261 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0218 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/TextView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->y:Landroid/widget/TextView; |
|
|
|
.line 262 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c0219 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->z:Landroid/widget/ImageView; |
|
|
|
.line 263 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c021a |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/widget/ImageView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->A:Landroid/widget/ImageView; |
|
|
|
.line 264 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/DetailAdapter;->a(Landroid/view/View;)V |
|
|
|
.line 265 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->C:Landroid/widget/RelativeLayout; |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/community/adapter/DetailAdapter;->b(Landroid/view/View;)V |
|
|
|
.line 266 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->x:Landroid/widget/ImageView; |
|
|
|
new-instance v1, Lcom/viatech/community/VideoDetailActivity$11; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/community/VideoDetailActivity$11;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 272 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 273 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/Post;->authorimg:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 274 |
|
invoke-static {p0}, Lcom/viatech/util/VPaiPicasso;->networkPicasso(Landroid/content/Context;)Lcom/squareup/picasso/Picasso; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/Post;->authorimg:Ljava/lang/String; |
|
|
|
.line 275 |
|
invoke-virtual {v0, v1}, Lcom/squareup/picasso/Picasso;->load(Ljava/lang/String;)Lcom/squareup/picasso/RequestCreator; |
|
|
|
move-result-object v0 |
|
|
|
.line 276 |
|
invoke-virtual {v0, v2}, Lcom/squareup/picasso/RequestCreator;->placeholder(I)Lcom/squareup/picasso/RequestCreator; |
|
|
|
move-result-object v0 |
|
|
|
.line 277 |
|
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/VideoDetailActivity;->q:Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$12; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$12;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
.line 278 |
|
invoke-virtual {v0, v1, v2}, Lcom/squareup/picasso/RequestCreator;->into(Landroid/widget/ImageView;Lcom/squareup/picasso/Callback;)V |
|
|
|
.line 290 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/Post;->author:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 291 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->r:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/Post;->author:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 293 |
|
:cond_1 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/Post;->addr:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 294 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->s:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/Post;->addr:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 296 |
|
:cond_2 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/Post;->content:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_4 |
|
|
|
.line 297 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->u:Landroid/widget/TextView; |
|
|
|
const/16 v1, 0x8 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
.line 303 |
|
:goto_0 |
|
:try_start_0 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->w:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v2, v1, Lcom/via/vpaicloud/community/respond/Post;->comments:J |
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 304 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->y:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v2, v1, Lcom/via/vpaicloud/community/respond/Post;->up:J |
|
|
|
invoke-static {v2, v3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
.line 309 |
|
:goto_1 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v0, v0, Lcom/via/vpaicloud/community/respond/Post;->createtime:Ljava/lang/String; |
|
|
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_5 |
|
|
|
.line 310 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->t:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/Post;->createtime:Ljava/lang/String; |
|
|
|
invoke-static {v1, p0}, Lcom/viatech/util/DateShowUtil;->getTime(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 315 |
|
:cond_3 |
|
:goto_2 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->q:Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
new-instance v1, Lcom/viatech/community/VideoDetailActivity$13; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/community/VideoDetailActivity$13;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Lde/hdodenhof/circleimageview/CircleImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V |
|
|
|
.line 329 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->B:Landroid/widget/LinearLayout; |
|
|
|
const v1, 0x7f0c00ae |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
.line 330 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0, p0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->setActivity(Landroid/app/Activity;)V |
|
|
|
.line 331 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/vpaiphoto/VPaiVideoView;->a(Lcom/via/vpaicloud/community/respond/Post;)V |
|
|
|
.line 332 |
|
return-void |
|
|
|
.line 299 |
|
:cond_4 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->u:Landroid/widget/TextView; |
|
|
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v1, v1, Lcom/via/vpaicloud/community/respond/Post;->content:Ljava/lang/String; |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 300 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->u:Landroid/widget/TextView; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V |
|
|
|
goto :goto_0 |
|
|
|
.line 305 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 306 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->w:Landroid/widget/TextView; |
|
|
|
const-string v1, "0" |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
.line 307 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->y:Landroid/widget/TextView; |
|
|
|
const-string v1, "0" |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
goto :goto_1 |
|
|
|
.line 312 |
|
:cond_5 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->t:Landroid/widget/TextView; |
|
|
|
const-string v1, "" |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V |
|
|
|
goto :goto_2 |
|
.end method |
|
|
|
.method static synthetic d(Lcom/viatech/community/VideoDetailActivity;)Landroid/os/Handler; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->o:Landroid/os/Handler; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private d()V |
|
.locals 10 |
|
|
|
.prologue |
|
const/4 v2, 0x1 |
|
|
|
const/4 v1, 0x0 |
|
|
|
.line 335 |
|
iget-boolean v0, p0, Lcom/viatech/community/VideoDetailActivity;->c:Z |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 412 |
|
:cond_0 |
|
:goto_0 |
|
return-void |
|
|
|
.line 338 |
|
:cond_1 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v0 |
|
|
|
.line 343 |
|
invoke-virtual {v0}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isCommunityLogin()Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_3 |
|
|
|
.line 344 |
|
iput-boolean v2, p0, Lcom/viatech/community/VideoDetailActivity;->c:Z |
|
|
|
.line 345 |
|
new-instance v3, Lcom/via/vpaicloud/community/request/PraiseReq; |
|
|
|
invoke-direct {v3}, Lcom/via/vpaicloud/community/request/PraiseReq;-><init>()V |
|
|
|
.line 346 |
|
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences; |
|
|
|
move-result-object v0 |
|
|
|
const-string v4, "forumid" |
|
|
|
const-wide/16 v6, 0x1 |
|
|
|
invoke-interface {v0, v4, v6, v7}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J |
|
|
|
move-result-wide v4 |
|
|
|
iput-wide v4, v3, Lcom/via/vpaicloud/community/request/PraiseReq;->forumid:J |
|
|
|
.line 347 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v4, v0, Lcom/via/vpaicloud/community/respond/Post;->postid:J |
|
|
|
iput-wide v4, v3, Lcom/via/vpaicloud/community/request/PraiseReq;->postid:J |
|
|
|
.line 348 |
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v0 |
|
|
|
iget-wide v4, v0, Lcom/viatech/community/b/a;->e:J |
|
|
|
iput-wide v4, v3, Lcom/via/vpaicloud/community/request/PraiseReq;->userid:J |
|
|
|
.line 349 |
|
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, v3, Lcom/via/vpaicloud/community/request/PraiseReq;->unionid:Ljava/lang/String; |
|
|
|
.line 350 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-object v4, v0, Lcom/via/vpaicloud/community/respond/Post;->likes:[Lcom/via/vpaicloud/community/respond/Likes; |
|
|
|
.line 352 |
|
if-eqz v4, :cond_4 |
|
|
|
array-length v0, v4 |
|
|
|
if-lez v0, :cond_4 |
|
|
|
move v0, v1 |
|
|
|
.line 353 |
|
:goto_1 |
|
array-length v5, v4 |
|
|
|
if-ge v0, v5, :cond_4 |
|
|
|
.line 354 |
|
iget-wide v6, v3, Lcom/via/vpaicloud/community/request/PraiseReq;->userid:J |
|
|
|
aget-object v5, v4, v0 |
|
|
|
iget-wide v8, v5, Lcom/via/vpaicloud/community/respond/Likes;->userid:J |
|
|
|
cmp-long v5, v6, v8 |
|
|
|
if-nez v5, :cond_2 |
|
|
|
.line 355 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$2; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$2;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v3, v2}, Lcom/via/vpaicloud/community/CommunityClient;->requestPraiseCancel(Lcom/via/vpaicloud/community/request/PraiseReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V |
|
|
|
.line 378 |
|
:goto_2 |
|
if-eqz v1, :cond_0 |
|
|
|
.line 379 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
new-instance v1, Lcom/viatech/community/VideoDetailActivity$3; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/community/VideoDetailActivity$3;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v3, v1}, Lcom/via/vpaicloud/community/CommunityClient;->requestPraise(Lcom/via/vpaicloud/community/request/PraiseReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V |
|
|
|
goto :goto_0 |
|
|
|
.line 353 |
|
:cond_2 |
|
add-int/lit8 v0, v0, 0x1 |
|
|
|
goto :goto_1 |
|
|
|
.line 410 |
|
:cond_3 |
|
const v0, 0x7f07012b |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto :goto_0 |
|
|
|
:cond_4 |
|
move v1, v2 |
|
|
|
goto :goto_2 |
|
.end method |
|
|
|
.method static synthetic e(Lcom/viatech/community/VideoDetailActivity;)Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->p:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method private e()V |
|
.locals 4 |
|
|
|
.prologue |
|
.line 418 |
|
:try_start_0 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v0 |
|
|
|
.line 419 |
|
const-string v1, "post" |
|
|
|
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/Post; |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
.line 420 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
if-nez v0, :cond_0 |
|
|
|
.line 429 |
|
:goto_0 |
|
return-void |
|
|
|
.line 423 |
|
:cond_0 |
|
invoke-static {}, Lcom/via/vpaicloud/community/CommunityClient;->getClient()Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
.line 425 |
|
const/4 v0, 0x0 |
|
|
|
invoke-direct {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->b(I)V |
|
:try_end_0 |
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 |
|
|
|
goto :goto_0 |
|
|
|
.line 426 |
|
:catch_0 |
|
move-exception v0 |
|
|
|
.line 427 |
|
sget-object v1, Lcom/viatech/community/VideoDetailActivity;->b:Ljava/lang/String; |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "initData():" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-static {v1, v0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method static synthetic f(Lcom/viatech/community/VideoDetailActivity;)Ljava/util/List; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->E:Ljava/util/List; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic g(Lcom/viatech/community/VideoDetailActivity;)Lcom/via/vpaicloud/community/respond/Post; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic h(Lcom/viatech/community/VideoDetailActivity;)Landroid/widget/TextView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->w:Landroid/widget/TextView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic i(Lcom/viatech/community/VideoDetailActivity;)Lcom/viatech/community/adapter/DetailAdapter; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->n:Lcom/viatech/community/adapter/DetailAdapter; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic j(Lcom/viatech/community/VideoDetailActivity;)Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->e:Lcom/viatech/community/listener/EndlessRecyclerOnScrollListener; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic k(Lcom/viatech/community/VideoDetailActivity;)Lcom/via/vpaicloud/community/CommunityClient; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic l(Lcom/viatech/community/VideoDetailActivity;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 64 |
|
invoke-direct {p0}, Lcom/viatech/community/VideoDetailActivity;->d()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method static synthetic m(Lcom/viatech/community/VideoDetailActivity;)Lde/hdodenhof/circleimageview/CircleImageView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->q:Lde/hdodenhof/circleimageview/CircleImageView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic n(Lcom/viatech/community/VideoDetailActivity;)Landroid/widget/TextView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->y:Landroid/widget/TextView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic o(Lcom/viatech/community/VideoDetailActivity;)Landroid/widget/TextView; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->D:Landroid/widget/TextView; |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method static synthetic p(Lcom/viatech/community/VideoDetailActivity;)Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
.locals 1 |
|
|
|
.prologue |
|
.line 64 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
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 558 |
|
if-eqz p1, :cond_0 |
|
|
|
instance-of v2, p1, Landroid/widget/EditText; |
|
|
|
if-eqz v2, :cond_0 |
|
|
|
.line 559 |
|
const/4 v2, 0x2 |
|
|
|
new-array v2, v2, [I |
|
|
|
fill-array-data v2, :array_0 |
|
|
|
.line 561 |
|
invoke-virtual {p1, v2}, Landroid/view/View;->getLocationInWindow([I)V |
|
|
|
.line 562 |
|
aget v3, v2, v0 |
|
|
|
.line 563 |
|
aget v2, v2, v1 |
|
|
|
.line 564 |
|
invoke-virtual {p1}, Landroid/view/View;->getHeight()I |
|
|
|
move-result v4 |
|
|
|
add-int/2addr v4, v2 |
|
|
|
.line 565 |
|
invoke-virtual {p1}, Landroid/view/View;->getWidth()I |
|
|
|
move-result v5 |
|
|
|
add-int/2addr v5, v3 |
|
|
|
.line 566 |
|
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 567 |
|
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 574 |
|
:cond_0 |
|
:goto_0 |
|
return v0 |
|
|
|
:cond_1 |
|
move v0, v1 |
|
|
|
.line 571 |
|
goto :goto_0 |
|
|
|
.line 559 |
|
:array_0 |
|
.array-data 4 |
|
0x0 |
|
0x0 |
|
.end array-data |
|
.end method |
|
|
|
.method public afterTextChanged(Landroid/text/Editable;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 596 |
|
return-void |
|
.end method |
|
|
|
.method public beforeTextChanged(Ljava/lang/CharSequence;III)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 580 |
|
return-void |
|
.end method |
|
|
|
.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z |
|
.locals 3 |
|
|
|
.prologue |
|
.line 539 |
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_1 |
|
|
|
.line 540 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->getCurrentFocus()Landroid/view/View; |
|
|
|
move-result-object v1 |
|
|
|
.line 541 |
|
invoke-virtual {p0, v1, p1}, Lcom/viatech/community/VideoDetailActivity;->a(Landroid/view/View;Landroid/view/MotionEvent;)Z |
|
|
|
move-result v0 |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 543 |
|
const-string v0, "input_method" |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Landroid/view/inputmethod/InputMethodManager; |
|
|
|
.line 544 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 545 |
|
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 548 |
|
:cond_0 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z |
|
|
|
move-result v0 |
|
|
|
.line 554 |
|
:goto_0 |
|
return v0 |
|
|
|
.line 551 |
|
:cond_1 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->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 552 |
|
const/4 v0, 0x1 |
|
|
|
goto :goto_0 |
|
|
|
.line 554 |
|
:cond_2 |
|
invoke-virtual {p0, p1}, Lcom/viatech/community/VideoDetailActivity;->onTouchEvent(Landroid/view/MotionEvent;)Z |
|
|
|
move-result v0 |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public onClick(Landroid/view/View;)V |
|
.locals 8 |
|
|
|
.prologue |
|
const-wide/16 v6, 0x1 |
|
|
|
.line 480 |
|
invoke-virtual {p1}, Landroid/view/View;->getId()I |
|
|
|
move-result v0 |
|
|
|
packed-switch v0, :pswitch_data_0 |
|
|
|
.line 535 |
|
:cond_0 |
|
:goto_0 |
|
:pswitch_0 |
|
return-void |
|
|
|
.line 482 |
|
:pswitch_1 |
|
invoke-virtual {p0}, Lcom/viatech/community/VideoDetailActivity;->finish()V |
|
|
|
goto :goto_0 |
|
|
|
.line 485 |
|
:pswitch_2 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 486 |
|
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
.line 487 |
|
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser; |
|
|
|
move-result-object v1 |
|
|
|
.line 492 |
|
invoke-virtual {v1}, Lcom/viatech/cloud/CloudConfig$LoginUser;->isCommunityLogin()Z |
|
|
|
move-result v1 |
|
|
|
if-eqz v1, :cond_1 |
|
|
|
.line 493 |
|
new-instance v1, Lcom/via/vpaicloud/community/request/CommentPostReq; |
|
|
|
invoke-direct {v1}, Lcom/via/vpaicloud/community/request/CommentPostReq;-><init>()V |
|
|
|
.line 494 |
|
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, "forumid" |
|
|
|
invoke-interface {v2, v3, v6, v7}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J |
|
|
|
move-result-wide v2 |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->forumid:J |
|
|
|
.line 495 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v2, v2, Lcom/via/vpaicloud/community/respond/Post;->postid:J |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->postid:J |
|
|
|
.line 496 |
|
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/CommentPostReq;->replyid:J |
|
|
|
.line 497 |
|
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/CommentPostReq;->replyuid:Ljava/lang/String; |
|
|
|
.line 498 |
|
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;->d:Ljava/lang/String; |
|
|
|
iput-object v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->replyimg:Ljava/lang/String; |
|
|
|
.line 499 |
|
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;->c:Ljava/lang/String; |
|
|
|
iput-object v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->replyname:Ljava/lang/String; |
|
|
|
.line 500 |
|
iput-object v0, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->content:Ljava/lang/String; |
|
|
|
.line 501 |
|
const-wide/16 v2, 0x0 |
|
|
|
iput-wide v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->atuserid:J |
|
|
|
.line 502 |
|
const-string v2, "all" |
|
|
|
iput-object v2, v1, Lcom/via/vpaicloud/community/request/CommentPostReq;->atname:Ljava/lang/String; |
|
|
|
.line 503 |
|
new-instance v2, Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-direct {v2}, Lcom/via/vpaicloud/community/respond/CommentRsp;-><init>()V |
|
|
|
iput-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
.line 504 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences; |
|
|
|
move-result-object v3 |
|
|
|
const-string v4, "forumid" |
|
|
|
invoke-interface {v3, v4, v6, v7}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J |
|
|
|
move-result-wide v4 |
|
|
|
iput-wide v4, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->forumid:J |
|
|
|
.line 505 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
iget-object v3, p0, Lcom/viatech/community/VideoDetailActivity;->a:Lcom/via/vpaicloud/community/respond/Post; |
|
|
|
iget-wide v4, v3, Lcom/via/vpaicloud/community/respond/Post;->postid:J |
|
|
|
iput-wide v4, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->postid:J |
|
|
|
.line 506 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v3 |
|
|
|
iget-wide v4, v3, Lcom/viatech/community/b/a;->e:J |
|
|
|
iput-wide v4, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->replyid:J |
|
|
|
.line 507 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v3 |
|
|
|
iget-object v3, v3, Lcom/viatech/community/b/a;->c:Ljava/lang/String; |
|
|
|
iput-object v3, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->replyname:Ljava/lang/String; |
|
|
|
.line 508 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-static {p0}, Lcom/viatech/community/b/a;->a(Landroid/content/Context;)Lcom/viatech/community/b/a; |
|
|
|
move-result-object v3 |
|
|
|
iget-object v3, v3, Lcom/viatech/community/b/a;->d:Ljava/lang/String; |
|
|
|
iput-object v3, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->replyImg:Ljava/lang/String; |
|
|
|
.line 509 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J |
|
|
|
move-result-wide v4 |
|
|
|
const-wide/16 v6, 0x3e8 |
|
|
|
div-long/2addr v4, v6 |
|
|
|
invoke-static {v4, v5}, Ljava/lang/String;->valueOf(J)Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
iput-object v3, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->time:Ljava/lang/String; |
|
|
|
.line 510 |
|
iget-object v2, p0, Lcom/viatech/community/VideoDetailActivity;->G:Lcom/via/vpaicloud/community/respond/CommentRsp; |
|
|
|
iput-object v0, v2, Lcom/via/vpaicloud/community/respond/CommentRsp;->content:Ljava/lang/String; |
|
|
|
.line 511 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->F:Lcom/via/vpaicloud/community/CommunityClient; |
|
|
|
new-instance v2, Lcom/viatech/community/VideoDetailActivity$5; |
|
|
|
invoke-direct {v2, p0}, Lcom/viatech/community/VideoDetailActivity$5;-><init>(Lcom/viatech/community/VideoDetailActivity;)V |
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/via/vpaicloud/community/CommunityClient;->requestCommentPost(Lcom/via/vpaicloud/community/request/CommentPostReq;Lcom/via/vpaicloud/community/callback/CommunityHttpCallback;)V |
|
|
|
.line 528 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
const-string v1, "" |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 530 |
|
:cond_1 |
|
const v0, 0x7f07012b |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
goto/16 :goto_0 |
|
|
|
.line 480 |
|
:pswitch_data_0 |
|
.packed-switch 0x7f0c008c |
|
:pswitch_1 |
|
:pswitch_0 |
|
:pswitch_0 |
|
:pswitch_2 |
|
.end packed-switch |
|
.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 75 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V |
|
|
|
.line 76 |
|
const v0, 0x7f030020 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/community/VideoDetailActivity;->setContentView(I)V |
|
|
|
.line 77 |
|
invoke-static {}, Lcom/viatech/Config;->a()Lcom/viatech/Config; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p0}, Lcom/viatech/Config;->a(Landroid/app/Activity;)V |
|
|
|
.line 78 |
|
invoke-direct {p0}, Lcom/viatech/community/VideoDetailActivity;->a()V |
|
|
|
.line 79 |
|
return-void |
|
.end method |
|
|
|
.method protected onDestroy()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 83 |
|
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V |
|
|
|
.line 84 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->f()V |
|
|
|
.line 85 |
|
return-void |
|
.end method |
|
|
|
.method protected onPause()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 600 |
|
invoke-super {p0}, Landroid/app/Activity;->onPause()V |
|
|
|
.line 601 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->e()V |
|
|
|
.line 602 |
|
return-void |
|
.end method |
|
|
|
.method protected onResume()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 606 |
|
invoke-super {p0}, Landroid/app/Activity;->onResume()V |
|
|
|
.line 607 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->f:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->d()V |
|
|
|
.line 608 |
|
return-void |
|
.end method |
|
|
|
.method public onTextChanged(Ljava/lang/CharSequence;III)V |
|
.locals 3 |
|
|
|
.prologue |
|
.line 584 |
|
iget-object v0, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v0}, Landroid/widget/EditText;->getSelectionStart()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
.line 585 |
|
if-lez v0, :cond_0 |
|
|
|
.line 586 |
|
invoke-interface {p1, v0}, Ljava/lang/CharSequence;->charAt(I)C |
|
|
|
move-result v1 |
|
|
|
invoke-static {v1}, Lcom/viatech/util/isEmojiUtil;->isEmojiCharacter(C)Z |
|
|
|
move-result v1 |
|
|
|
if-nez v1, :cond_0 |
|
|
|
.line 587 |
|
iget-object v1, p0, Lcom/viatech/community/VideoDetailActivity;->k:Landroid/widget/EditText; |
|
|
|
invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable; |
|
|
|
move-result-object v1 |
|
|
|
.line 588 |
|
add-int/lit8 v2, v0, 0x1 |
|
|
|
invoke-interface {v1, v0, v2}, Landroid/text/Editable;->delete(II)Landroid/text/Editable; |
|
|
|
.line 591 |
|
:cond_0 |
|
return-void |
|
.end method
|
|
|