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.
105 lines
3.1 KiB
105 lines
3.1 KiB
2 years ago
|
.class Lcom/viatech/gallery/RemoteGalleryView$6;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "RemoteGalleryView.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/content/DialogInterface$OnClickListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/viatech/gallery/RemoteGalleryView;->cancelDownload(Lcom/viatech/gallery/FileInfo;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/viatech/gallery/RemoteGalleryView;
|
||
|
|
||
|
.field final synthetic val$info:Lcom/viatech/gallery/FileInfo;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/viatech/gallery/RemoteGalleryView;Lcom/viatech/gallery/FileInfo;)V
|
||
|
.locals 0
|
||
|
|
||
|
.prologue
|
||
|
.line 1014
|
||
|
iput-object p1, p0, Lcom/viatech/gallery/RemoteGalleryView$6;->this$0:Lcom/viatech/gallery/RemoteGalleryView;
|
||
|
|
||
|
iput-object p2, p0, Lcom/viatech/gallery/RemoteGalleryView$6;->val$info:Lcom/viatech/gallery/FileInfo;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public onClick(Landroid/content/DialogInterface;I)V
|
||
|
.locals 3
|
||
|
|
||
|
.prologue
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
.line 1017
|
||
|
invoke-static {}, Lcom/viatech/util/HttpDownloadManager;->instance()Lcom/viatech/util/HttpDownloadManager;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Lcom/viatech/gallery/RemoteGalleryView$6;->val$info:Lcom/viatech/gallery/FileInfo;
|
||
|
|
||
|
iget-object v1, v1, Lcom/viatech/gallery/FileInfo;->url:Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lcom/viatech/util/HttpDownloadManager;->getDownloadTask(Ljava/lang/String;)Lcom/viatech/util/DownloadTask;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.line 1018
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 1019
|
||
|
invoke-static {}, Lcom/viatech/util/HttpDownloadManager;->instance()Lcom/viatech/util/HttpDownloadManager;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1, v0}, Lcom/viatech/util/HttpDownloadManager;->cancelDownload(Lcom/viatech/util/DownloadTask;)V
|
||
|
|
||
|
.line 1020
|
||
|
iget-object v1, p0, Lcom/viatech/gallery/RemoteGalleryView$6;->this$0:Lcom/viatech/gallery/RemoteGalleryView;
|
||
|
|
||
|
invoke-static {v1}, Lcom/viatech/gallery/RemoteGalleryView;->access$1000(Lcom/viatech/gallery/RemoteGalleryView;)Ljava/util/Map;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v1, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
check-cast v0, Lcom/viatech/gallery/FileInfo;
|
||
|
|
||
|
.line 1021
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
.line 1022
|
||
|
iput-boolean v2, v0, Lcom/viatech/gallery/FileInfo;->downloading:Z
|
||
|
|
||
|
.line 1023
|
||
|
iput v2, v0, Lcom/viatech/gallery/FileInfo;->downloadProgress:I
|
||
|
|
||
|
.line 1024
|
||
|
iget-object v0, p0, Lcom/viatech/gallery/RemoteGalleryView$6;->this$0:Lcom/viatech/gallery/RemoteGalleryView;
|
||
|
|
||
|
iget-object v0, v0, Lcom/viatech/gallery/RemoteGalleryView;->mGridViewFileAdapter:Lcom/viatech/gallery/FileGridListAdapter;
|
||
|
|
||
|
invoke-virtual {v0}, Lcom/viatech/gallery/FileGridListAdapter;->notifyDataSetChanged()V
|
||
|
|
||
|
.line 1027
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|