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.
223 lines
5.7 KiB
223 lines
5.7 KiB
.class public Lcom/viatech/gallery/VideoActivity; |
|
.super Landroid/app/Activity; |
|
.source "VideoActivity.java" |
|
|
|
|
|
# static fields |
|
.field public static final TAG:Ljava/lang/String; = "Vpai_VPaiVideoActivity" |
|
|
|
|
|
# instance fields |
|
.field private videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
|
|
# direct methods |
|
.method public constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 21 |
|
invoke-direct {p0}, Landroid/app/Activity;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public EventOnPublicEvent(Lcom/viatech/community/a/e;)V |
|
.locals 0 |
|
.annotation runtime Lorg/greenrobot/eventbus/j; |
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode; |
|
.end annotation |
|
|
|
.prologue |
|
.line 81 |
|
if-eqz p1, :cond_0 |
|
|
|
.line 82 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/VideoActivity;->finish()V |
|
|
|
.line 84 |
|
:cond_0 |
|
return-void |
|
.end method |
|
|
|
.method public onBackPressed()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 72 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
iget-boolean v0, v0, Lcom/viatech/vpaiphoto/VPaiVideoView;->a:Z |
|
|
|
if-eqz v0, :cond_0 |
|
|
|
.line 73 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->b()V |
|
|
|
.line 77 |
|
:goto_0 |
|
return-void |
|
|
|
.line 75 |
|
:cond_0 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/VideoActivity;->finish()V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method protected onCreate(Landroid/os/Bundle;)V |
|
.locals 5 |
|
|
|
.prologue |
|
const/4 v4, 0x0 |
|
|
|
.line 28 |
|
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V |
|
|
|
.line 29 |
|
const/4 v0, 0x1 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/VideoActivity;->requestWindowFeature(I)Z |
|
|
|
.line 30 |
|
invoke-static {p0}, Lcom/viatech/util/UIUtils;->fullScreen(Landroid/app/Activity;)V |
|
|
|
.line 32 |
|
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 33 |
|
const v0, 0x7f030036 |
|
|
|
invoke-virtual {p0, v0}, Lcom/viatech/gallery/VideoActivity;->setContentView(I)V |
|
|
|
.line 34 |
|
invoke-virtual {p0}, Lcom/viatech/gallery/VideoActivity;->getIntent()Landroid/content/Intent; |
|
|
|
move-result-object v1 |
|
|
|
.line 35 |
|
const-string v0, "fileinfo" |
|
|
|
invoke-virtual {v1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/viatech/gallery/FileInfo; |
|
|
|
.line 36 |
|
const-string v2, "cloud_gallery_key" |
|
|
|
invoke-virtual {v1, v2, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z |
|
|
|
move-result v2 |
|
|
|
.line 37 |
|
const-string v3, "key_remote" |
|
|
|
invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z |
|
|
|
move-result v3 |
|
|
|
.line 38 |
|
const v1, 0x7f0c00ae |
|
|
|
invoke-virtual {p0, v1}, Lcom/viatech/gallery/VideoActivity;->findViewById(I)Landroid/view/View; |
|
|
|
move-result-object v1 |
|
|
|
check-cast v1, Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
iput-object v1, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
.line 39 |
|
iget-object v1, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v1, v0, v2, v3}, Lcom/viatech/vpaiphoto/VPaiVideoView;->a(Lcom/viatech/gallery/FileInfo;ZZ)V |
|
|
|
.line 41 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0, p0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->setActivity(Landroid/app/Activity;)V |
|
|
|
.line 42 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
new-instance v1, Lcom/viatech/gallery/VideoActivity$1; |
|
|
|
invoke-direct {v1, p0}, Lcom/viatech/gallery/VideoActivity$1;-><init>(Lcom/viatech/gallery/VideoActivity;)V |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/vpaiphoto/VPaiVideoView;->setProjectModeChangeListener(Lcom/viatech/vpaiphoto/VPaiPhotoView$b;)V |
|
|
|
.line 48 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/c;->a(Ljava/lang/Object;)V |
|
|
|
.line 49 |
|
return-void |
|
.end method |
|
|
|
.method protected onDestroy()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 65 |
|
invoke-super {p0}, Landroid/app/Activity;->onDestroy()V |
|
|
|
.line 66 |
|
invoke-static {}, Lorg/greenrobot/eventbus/c;->a()Lorg/greenrobot/eventbus/c; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0, p0}, Lorg/greenrobot/eventbus/c;->b(Ljava/lang/Object;)V |
|
|
|
.line 67 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->f()V |
|
|
|
.line 68 |
|
return-void |
|
.end method |
|
|
|
.method protected onPause()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 53 |
|
invoke-super {p0}, Landroid/app/Activity;->onPause()V |
|
|
|
.line 54 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->e()V |
|
|
|
.line 55 |
|
return-void |
|
.end method |
|
|
|
.method protected onResume()V |
|
.locals 1 |
|
|
|
.prologue |
|
.line 59 |
|
invoke-super {p0}, Landroid/app/Activity;->onResume()V |
|
|
|
.line 60 |
|
iget-object v0, p0, Lcom/viatech/gallery/VideoActivity;->videoView:Lcom/viatech/vpaiphoto/VPaiVideoView; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/vpaiphoto/VPaiVideoView;->d()V |
|
|
|
.line 61 |
|
return-void |
|
.end method
|
|
|