.class public final Lz5/oz;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# instance fields
.field public final synthetic r:Ljava/lang/String;

.field public final synthetic s:Ljava/lang/String;

.field public final synthetic t:Lz5/qz;


# direct methods
.method public constructor <init>(Lz5/qz;Ljava/lang/String;Ljava/lang/String;)V
    .registers 4

    iput-object p1, p0, Lz5/oz;->t:Lz5/qz;

    iput-object p2, p0, Lz5/oz;->r:Ljava/lang/String;

    iput-object p3, p0, Lz5/oz;->s:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/content/DialogInterface;I)V
    .registers 5

    iget-object p1, p0, Lz5/oz;->t:Lz5/qz;

    .line 1
    iget-object p1, p1, Lz5/qz;->v:Landroid/content/Context;

    const-string p2, "download"

    .line 2
    invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Landroid/app/DownloadManager;

    :try_start_c
    iget-object p2, p0, Lz5/oz;->r:Ljava/lang/String;

    iget-object v0, p0, Lz5/oz;->s:Ljava/lang/String;

    new-instance v1, Landroid/app/DownloadManager$Request;

    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p2

    invoke-direct {v1, p2}, Landroid/app/DownloadManager$Request;-><init>(Landroid/net/Uri;)V

    sget-object p2, Landroid/os/Environment;->DIRECTORY_PICTURES:Ljava/lang/String;

    invoke-virtual {v1, p2, v0}, Landroid/app/DownloadManager$Request;->setDestinationInExternalPublicDir(Ljava/lang/String;Ljava/lang/String;)Landroid/app/DownloadManager$Request;

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzc()Lcom/google/android/gms/ads/internal/util/zzs;

    invoke-virtual {v1}, Landroid/app/DownloadManager$Request;->allowScanningByMediaScanner()V

    const/4 p2, 0x1

    invoke-virtual {v1, p2}, Landroid/app/DownloadManager$Request;->setNotificationVisibility(I)Landroid/app/DownloadManager$Request;

    invoke-virtual {p1, v1}, Landroid/app/DownloadManager;->enqueue(Landroid/app/DownloadManager$Request;)J
    :try_end_2b
    .catch Ljava/lang/IllegalStateException; {:try_start_c .. :try_end_2b} :catch_2c

    return-void

    :catch_2c
    iget-object p1, p0, Lz5/oz;->t:Lz5/qz;

    const-string p2, "Could not store picture."

    invoke-virtual {p1, p2}, Landroidx/appcompat/widget/n;->v(Ljava/lang/String;)V

    return-void
.end method
