2022-06-10 21:38:30 +09:00

75 lines
1.7 KiB
Smali

.class public Lcom/squareup/picasso/b0$b;
.super Ljava/lang/Object;
.source "UrlConnectionDownloader.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/squareup/picasso/b0;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "b"
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a(Ljava/lang/Object;)V
.locals 0
.line 1
:try_start_0
check-cast p0, Landroid/net/http/HttpResponseCache;
invoke-virtual {p0}, Landroid/net/http/HttpResponseCache;->close()V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
return-void
.end method
.method public static b(Landroid/content/Context;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-static {p0}, Lcom/squareup/picasso/c0;->g(Landroid/content/Context;)Ljava/io/File;
move-result-object p0
.line 2
invoke-static {}, Landroid/net/http/HttpResponseCache;->getInstalled()Landroid/net/http/HttpResponseCache;
move-result-object v0
if-nez v0, :cond_0
.line 3
invoke-static {p0}, Lcom/squareup/picasso/c0;->a(Ljava/io/File;)J
move-result-wide v0
.line 4
invoke-static {p0, v0, v1}, Landroid/net/http/HttpResponseCache;->install(Ljava/io/File;J)Landroid/net/http/HttpResponseCache;
move-result-object v0
:cond_0
return-object v0
.end method