OpenFileBrowserHelper.smali
.class public Lcom/cleanmaster/hpsharelib/utils/OpenFileBrowserHelper;
.super Ljava/lang/Object;
.source "OpenFileBrowserHelper.java"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 20
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;I)V
.registers 10
.prologue
.line 31
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;->getAppName()Ljava/lang/String;
move-result-object v4
.line 32
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;->getDescption()Ljava/lang/String;
move-result-object v1
.line 33
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;->getSize()J
move-result-wide v2
.line 34
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;->getFilePath()Ljava/lang/String;
move-result-object v5
.line 35
new-instance v0, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;
const-string v6, "com.cleanmaster.ui.space.SpaceManagerActivity"
invoke-direct/range {v0 .. v6}, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;-><init>(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 36
invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/utils/OpenFileBrowserHelper;->callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;)Z
.line 37
return-void
.end method
.method public static callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;I)V
.registers 4
.prologue
.line 23
instance-of v0, p1, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;
if-eqz v0, :cond_a
.line 24
check-cast p1, Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;
invoke-static {p0, p1, p2}, Lcom/cleanmaster/hpsharelib/utils/OpenFileBrowserHelper;->callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/ICacheInfo;I)V
.line 28
:cond_9
:goto_9
return-void
.line 25
:cond_a
instance-of v0, p1, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;
if-eqz v0, :cond_9
.line 26
check-cast p1, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;
invoke-static {p0, p1}, Lcom/cleanmaster/hpsharelib/utils/OpenFileBrowserHelper;->callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;)Z
goto :goto_9
.end method
.method public static callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;)Z
.registers 9
.prologue
const/4 v2, 0x1
.line 40
const/4 v5, 0x0
.line 41
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getPathList()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
.line 42
if-eq v2, v0, :cond_18
if-nez v0, :cond_26
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getStrDirPath()Ljava/lang/String;
move-result-object v1
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_26
.line 43
:cond_18
if-ne v2, v0, :cond_4a
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getPathList()Ljava/util/List;
move-result-object v0
const/4 v1, 0x0
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
:goto_25
move-object v5, v0
.line 48
:cond_26
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getChineseName()Ljava/lang/String;
move-result-object v4
.line 49
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getAlertInfo()Ljava/lang/String;
move-result-object v1
.line 50
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->hadSetSize()Z
move-result v0
if-eqz v0, :cond_4f
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getSize()J
move-result-wide v2
.line 51
:goto_38
new-instance v0, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v6
invoke-virtual {v6}, Ljava/lang/Class;->getName()Ljava/lang/String;
move-result-object v6
invoke-direct/range {v0 .. v6}, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;-><init>(Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
.line 52
invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/utils/OpenFileBrowserHelper;->callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;)Z
move-result v0
return v0
.line 43
:cond_4a
invoke-interface {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/ISDCardRubbishResult;->getStrDirPath()Ljava/lang/String;
move-result-object v0
goto :goto_25
.line 50
:cond_4f
const-wide/16 v2, 0x0
goto :goto_38
.end method
.method public static callFileBrowser(Landroid/content/Context;Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;)Z
.registers 6
.prologue
const/4 v1, 0x0
.line 57
if-eqz p0, :cond_d
if-eqz p1, :cond_d
iget-object v0, p1, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;->realPath:Ljava/lang/String;
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_f
:cond_d
move v0, v1
.line 87
:goto_e
return v0
.line 61
:cond_f
new-instance v0, Ljava/io/File;
iget-object v2, p1, Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;->realPath:Ljava/lang/String;
invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
.line 62
:cond_16
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v2
if-nez v2, :cond_24
.line 63
invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;
move-result-object v0
.line 64
if-nez v0, :cond_16
move v0, v1
.line 65
goto :goto_e
.line 70
:cond_24
new-instance v2, Landroid/content/Intent;
const-string v3, "android.intent.action.GET_CONTENT"
invoke-direct {v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 71
invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;
move-result-object v0
const-string v3, "file/*"
invoke-virtual {v2, v0, v3}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;
.line 76
const v0, 0x100095
new-array v2, v1, [Ljava/lang/Object;
invoke-static {v0, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/cm/plugincluster/loststars/utils/ILostStarsEntryManager;
.line 78
if-nez v0, :cond_43
move v0, v1
.line 79
goto :goto_e
.line 81
:cond_43
invoke-interface {v0, p0, p1}, Lcom/cm/plugincluster/loststars/utils/ILostStarsEntryManager;->openFileManagerTabActivity(Landroid/content/Context;Lcom/cm/plugincluster/loststars/filemanager/model/ViewFileEntry;)V
.line 87
const/4 v0, 0x1
goto :goto_e
.end method