.class public Lcom/viatech/gallery/RemoteFileActivity; .super Landroid/app/Activity; .source "RemoteFileActivity.java" # interfaces .implements Lcom/viatech/device/VPaiDeviceConnectionListener; # static fields .field private static final TAG:Ljava/lang/String; = "Vpai_RemoteFileActivity" .field public static sVPaiDevice:Lcom/viatech/device/VPaiDevice; # instance fields .field private mGetFileList:Lcom/viatech/gallery/RemoteGalleryView$RemoteFileList; .field private mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; .field private mVPaiDevice:Lcom/viatech/device/VPaiDevice; # direct methods .method public constructor ()V .locals 1 .prologue .line 27 invoke-direct {p0}, Landroid/app/Activity;->()V .line 125 new-instance v0, Lcom/viatech/gallery/RemoteFileActivity$1; invoke-direct {v0, p0}, Lcom/viatech/gallery/RemoteFileActivity$1;->(Lcom/viatech/gallery/RemoteFileActivity;)V iput-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mGetFileList:Lcom/viatech/gallery/RemoteGalleryView$RemoteFileList; return-void .end method .method static synthetic access$000(Lcom/viatech/gallery/RemoteFileActivity;)Lcom/viatech/device/VPaiDevice; .locals 1 .prologue .line 27 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; return-object v0 .end method .method private updateActionBar()V .locals 7 .prologue const/4 v6, 0x0 const/4 v5, -0x2 const/4 v4, 0x1 .line 52 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v1, 0xe if-lt v0, v1, :cond_1 .line 53 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->getActionBar()Landroid/app/ActionBar; move-result-object v0 .line 54 if-eqz v0, :cond_1 .line 55 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->getResources()Landroid/content/res/Resources; move-result-object v1 const v2, 0x7f02023d invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object v1 invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V .line 56 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayHomeAsUpEnabled(Z)V .line 57 sget v1, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x12 if-lt v1, v2, :cond_0 .line 58 const v1, 0x7f020081 invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setHomeAsUpIndicator(I)V .line 59 :cond_0 const/4 v1, 0x0 invoke-virtual {v0, v1}, Landroid/app/ActionBar;->setTitle(Ljava/lang/CharSequence;)V .line 60 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowTitleEnabled(Z)V .line 61 invoke-virtual {v0, v6}, Landroid/app/ActionBar;->setDisplayShowHomeEnabled(Z)V .line 62 new-instance v1, Landroid/widget/TextView; invoke-direct {v1, p0}, Landroid/widget/TextView;->(Landroid/content/Context;)V .line 63 const v2, 0x7f070055 invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V .line 64 const/4 v2, -0x1 invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V .line 65 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->getResources()Landroid/content/res/Resources; move-result-object v2 const v3, 0x7f0800c0 invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getDimension(I)F move-result v2 invoke-virtual {v1, v6, v2}, Landroid/widget/TextView;->setTextSize(IF)V .line 66 new-instance v2, Landroid/app/ActionBar$LayoutParams; const/16 v3, 0x11 invoke-direct {v2, v5, v5, v3}, Landroid/app/ActionBar$LayoutParams;->(III)V invoke-virtual {v0, v1, v2}, Landroid/app/ActionBar;->setCustomView(Landroid/view/View;Landroid/app/ActionBar$LayoutParams;)V .line 68 invoke-virtual {v0, v4}, Landroid/app/ActionBar;->setDisplayShowCustomEnabled(Z)V .line 71 :cond_1 return-void .end method # virtual methods .method public onBackPressed()V .locals 2 .prologue .line 100 const-string v0, "Vpai_RemoteFileActivity" const-string v1, "onBackPressed()" invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I .line 101 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0}, Lcom/viatech/gallery/RemoteGalleryView;->isInSelectionMode()Z move-result v0 if-nez v0, :cond_0 .line 102 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->finish()V .line 106 :goto_0 return-void .line 104 :cond_0 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0}, Lcom/viatech/gallery/RemoteGalleryView;->quitSelectionMode()V goto :goto_0 .end method .method protected onCreate(Landroid/os/Bundle;)V .locals 3 .prologue const/4 v2, 0x0 .line 36 invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V .line 37 sget-object v0, Lcom/viatech/gallery/RemoteFileActivity;->sVPaiDevice:Lcom/viatech/device/VPaiDevice; iput-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; .line 38 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; invoke-virtual {v0, p0}, Lcom/viatech/device/VPaiDevice;->registerConnCallback(Lcom/viatech/device/VPaiDeviceConnectionListener;)V .line 39 const v0, 0x7f03002d invoke-virtual {p0, v0}, Lcom/viatech/gallery/RemoteFileActivity;->setContentView(I)V .line 40 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 42 const v0, 0x7f0c00ee invoke-virtual {p0, v0}, Lcom/viatech/gallery/RemoteFileActivity;->findViewById(I)Landroid/view/View; move-result-object v0 check-cast v0, Lcom/viatech/gallery/RemoteGalleryView; iput-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; .line 43 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; iget-object v1, p0, Lcom/viatech/gallery/RemoteFileActivity;->mGetFileList:Lcom/viatech/gallery/RemoteGalleryView$RemoteFileList; invoke-virtual {v0, v1}, Lcom/viatech/gallery/RemoteGalleryView;->setFileListRetriever(Lcom/viatech/gallery/RemoteGalleryView$RemoteFileList;)V .line 44 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0, v2}, Lcom/viatech/gallery/RemoteGalleryView;->setBottomBarShareMode(Z)V .line 45 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0, v2}, Lcom/viatech/gallery/RemoteGalleryView;->setCloudGallery(Z)V .line 46 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; iget-object v1, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0, v1}, Lcom/viatech/device/VPaiDevice;->registerDeviceResponseCallback(Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V .line 48 invoke-direct {p0}, Lcom/viatech/gallery/RemoteFileActivity;->updateActionBar()V .line 49 return-void .end method .method public onCreateOptionsMenu(Landroid/view/Menu;)Z .locals 1 .prologue .line 111 const/4 v0, 0x0 return v0 .end method .method protected onDestroy()V .locals 2 .prologue .line 87 invoke-super {p0}, Landroid/app/Activity;->onDestroy()V .line 92 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z move-result v0 if-eqz v0, :cond_0 .line 93 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; invoke-virtual {v0, p0}, Lcom/viatech/device/VPaiDevice;->unregisterConnCallback(Lcom/viatech/device/VPaiDeviceConnectionListener;)V .line 94 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; iget-object v1, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0, v1}, Lcom/viatech/device/VPaiDevice;->unregisterDeviceResponseCallback(Lcom/viatech/device/DeviceMessage$DeviceMessageCallback;)V .line 96 :cond_0 return-void .end method .method public onDeviceConnectionChanged(Lcom/viatech/device/VPaiDevice;Lcom/viatech/device/DeviceInfo;)V .locals 1 .prologue .line 146 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; if-eqz v0, :cond_0 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; invoke-virtual {v0}, Lcom/viatech/device/VPaiDevice;->isCtrlConnect()Z move-result v0 if-eqz v0, :cond_0 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mVPaiDevice:Lcom/viatech/device/VPaiDevice; if-ne v0, p1, :cond_1 if-nez p2, :cond_1 .line 147 :cond_0 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->finish()V .line 149 :cond_1 return-void .end method .method public onDeviceInfoChanged(Lcom/viatech/device/DeviceInfo;)V .locals 0 .prologue .line 153 return-void .end method .method public onOptionsItemSelected(Landroid/view/MenuItem;)Z .locals 3 .prologue .line 116 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0, p1}, Lcom/viatech/gallery/RemoteGalleryView;->onOptionsItemSelected(Landroid/view/MenuItem;)Z move-result v0 .line 117 invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I move-result v1 .line 118 const v2, 0x102002c if-ne v1, v2, :cond_0 .line 119 invoke-virtual {p0}, Lcom/viatech/gallery/RemoteFileActivity;->finish()V .line 121 :cond_0 return v0 .end method .method public onPause()V .locals 1 .prologue .line 81 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0}, Lcom/viatech/gallery/RemoteGalleryView;->onActivityPause()V .line 82 invoke-super {p0}, Landroid/app/Activity;->onPause()V .line 83 return-void .end method .method public onResume()V .locals 1 .prologue .line 75 invoke-super {p0}, Landroid/app/Activity;->onResume()V .line 76 iget-object v0, p0, Lcom/viatech/gallery/RemoteFileActivity;->mRemoteGalleryView:Lcom/viatech/gallery/RemoteGalleryView; invoke-virtual {v0}, Lcom/viatech/gallery/RemoteGalleryView;->onResume()V .line 77 return-void .end method