EggsDlgUtils$2.smali
.class final Lcom/cleanmaster/util/EggsDlgUtils$2;
.super Ljava/lang/Object;
.source "EggsDlgUtils.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field final synthetic val$context:Landroid/content/Context;
# direct methods
.method constructor <init>(Landroid/content/Context;)V
.registers 2
.prologue
.line 137
iput-object p1, p0, Lcom/cleanmaster/util/EggsDlgUtils$2;->val$context:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.registers 6
.prologue
.line 141
iget-object v0, p0, Lcom/cleanmaster/util/EggsDlgUtils$2;->val$context:Landroid/content/Context;
invoke-static {v0}, Lcom/cm/plugincluster/porncheck/PornHubService;->queryImagesFromPornHub(Landroid/content/Context;)Ljava/util/List;
move-result-object v2
.line 142
if-eqz v2, :cond_e
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v0
if-nez v0, :cond_16
.line 143
:cond_e
const-string v0, "copyFile"
const-string v1, "\u6ca1\u6709\u53d1\u73b0\u9690\u79c1\u56fe\u7247"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 162
:cond_15
:goto_15
return-void
.line 146
:cond_16
const-string v0, "mounted"
invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_15
.line 149
invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
move-result-object v3
.line 150
const-string v0, "copyFile"
const-string v1, "\u5f00\u59cb\u62f7\u8d1d\u56fe\u7247"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 152
const/4 v0, 0x0
move v1, v0
:goto_2f
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v0
if-ge v1, v0, :cond_64
.line 153
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cm/plugincluster/porncheck/bean/PornHubBean;
.line 154
if-eqz v0, :cond_47
invoke-virtual {v0}, Lcom/cm/plugincluster/porncheck/bean/PornHubBean;->getPath()Ljava/lang/String;
move-result-object v4
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-eqz v4, :cond_4b
.line 152
:cond_47
:goto_47
add-int/lit8 v0, v1, 0x1
move v1, v0
goto :goto_2f
.line 155
:cond_4b
new-instance v4, Ljava/io/File;
invoke-virtual {v0}, Lcom/cm/plugincluster/porncheck/bean/PornHubBean;->getPath()Ljava/lang/String;
move-result-object v0
invoke-direct {v4, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 156
invoke-virtual {v4}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :cond_47
.line 158
iget-object v0, p0, Lcom/cleanmaster/util/EggsDlgUtils$2;->val$context:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v0
invoke-static {v3, v0, v4}, Lcom/cleanmaster/util/EggsDlgUtils;->access$1200(Ljava/io/File;Ljava/lang/String;Ljava/io/File;)V
goto :goto_47
.line 161
:cond_64
const-string v0, "copyFile"
const-string v1, "\u56fe\u7247\u62f7\u8d1d\u5b8c\u6210"
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_15
.end method