PicFragment$5.smali
.class final Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment$5;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/imo/android/imoim/feeds/ui/views/material/dialog/MDDialog$d;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;
# direct methods
.method constructor <init>(Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;)V
.registers 2
.line 233
iput-object p1, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment$5;->a:Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a(Lcom/imo/android/imoim/feeds/ui/views/material/dialog/MDDialog;I)V
.registers 7
if-nez p2, :cond_9b
.line 237
iget-object p2, p0, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment$5;->a:Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;
.line 1276
iget-object v0, p2, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;->b:Lcom/imo/android/imoim/feeds/ui/user/profile/picture/a;
if-eqz v0, :cond_98
.line 1279
iget-object v0, p2, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;->b:Lcom/imo/android/imoim/feeds/ui/user/profile/picture/a;
.line 1295
invoke-static {}, Lcom/facebook/imagepipeline/cache/DefaultCacheKeyFactory;->getInstance()Lcom/facebook/imagepipeline/cache/DefaultCacheKeyFactory;
move-result-object v1
invoke-interface {v0}, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/a;->a()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v0
invoke-static {v0}, Lcom/facebook/imagepipeline/request/ImageRequest;->fromUri(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequest;
move-result-object v0
const/4 v2, 0x0
invoke-virtual {v1, v0, v2}, Lcom/facebook/imagepipeline/cache/DefaultCacheKeyFactory;->getEncodedCacheKey(Lcom/facebook/imagepipeline/request/ImageRequest;Ljava/lang/Object;)Lcom/facebook/cache/common/CacheKey;
move-result-object v0
if-eqz v0, :cond_66
.line 1298
invoke-static {}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getInstance()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;
move-result-object v1
invoke-virtual {v1}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getMainFileCache()Lcom/facebook/cache/disk/FileCache;
move-result-object v1
invoke-interface {v1, v0}, Lcom/facebook/cache/disk/FileCache;->hasKey(Lcom/facebook/cache/common/CacheKey;)Z
move-result v1
if-eqz v1, :cond_44
.line 1299
invoke-static {}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getInstance()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;
move-result-object v1
invoke-virtual {v1}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getMainFileCache()Lcom/facebook/cache/disk/FileCache;
move-result-object v1
invoke-interface {v1, v0}, Lcom/facebook/cache/disk/FileCache;->getResource(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/binaryresource/BinaryResource;
move-result-object v0
if-eqz v0, :cond_66
.line 1301
check-cast v0, Lcom/facebook/binaryresource/FileBinaryResource;
invoke-virtual {v0}, Lcom/facebook/binaryresource/FileBinaryResource;->getFile()Ljava/io/File;
move-result-object v2
goto :goto_66
.line 1303
:cond_44
invoke-static {}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getInstance()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;
move-result-object v1
invoke-virtual {v1}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getSmallImageFileCache()Lcom/facebook/cache/disk/FileCache;
move-result-object v1
invoke-interface {v1, v0}, Lcom/facebook/cache/disk/FileCache;->hasKey(Lcom/facebook/cache/common/CacheKey;)Z
move-result v1
if-eqz v1, :cond_66
.line 1304
invoke-static {}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getInstance()Lcom/facebook/imagepipeline/core/ImagePipelineFactory;
move-result-object v1
invoke-virtual {v1}, Lcom/facebook/imagepipeline/core/ImagePipelineFactory;->getSmallImageFileCache()Lcom/facebook/cache/disk/FileCache;
move-result-object v1
invoke-interface {v1, v0}, Lcom/facebook/cache/disk/FileCache;->getResource(Lcom/facebook/cache/common/CacheKey;)Lcom/facebook/binaryresource/BinaryResource;
move-result-object v0
if-eqz v0, :cond_66
.line 1306
check-cast v0, Lcom/facebook/binaryresource/FileBinaryResource;
invoke-virtual {v0}, Lcom/facebook/binaryresource/FileBinaryResource;->getFile()Ljava/io/File;
move-result-object v2
:cond_66
:goto_66
const/4 v0, 0x0
if-eqz v2, :cond_8e
.line 1281
invoke-virtual {v2}, Ljava/io/File;->exists()Z
move-result v1
if-nez v1, :cond_70
goto :goto_8e
.line 1286
:cond_70
invoke-static {}, Lsg/bigo/common/a;->d()Landroid/content/Context;
move-result-object v1
if-eqz v2, :cond_98
.line 2251
invoke-virtual {v2}, Ljava/io/File;->exists()Z
move-result v3
if-eqz v3, :cond_98
.line 2252
iget-object v3, p2, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;->a:Landroid/view/View;
invoke-virtual {v3, v0}, Landroid/view/View;->setVisibility(I)V
.line 2253
invoke-static {}, Lsg/bigo/svcapi/util/Daemon;->handler()Landroid/os/Handler;
move-result-object v0
new-instance v3, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment$6;
invoke-direct {v3, p2, v1, v2}, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment$6;-><init>(Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;Landroid/content/Context;Ljava/io/File;)V
invoke-virtual {v0, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
goto :goto_98
:cond_8e
:goto_8e
const v1, 0x7e0b00c4
.line 1282
invoke-virtual {p2, v1}, Lcom/imo/android/imoim/feeds/ui/user/profile/picture/PicFragment;->getString(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2, v0}, Lsg/bigo/common/ae;->a(Ljava/lang/CharSequence;I)V
.line 238
:cond_98
:goto_98
invoke-virtual {p1}, Lcom/imo/android/imoim/feeds/ui/views/material/dialog/MDDialog;->dismissAllowingStateLoss()V
:cond_9b
return-void
.end method