c.smali

.class public final Lcom/imo/android/imoim/singbox/a/c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/singbox/component/fresco/b;


# instance fields
.field private final a:Lcom/facebook/imagepipeline/core/ImagePipeline;


# direct methods
.method public constructor <init>()V
    .registers 3

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

    .line 40
    invoke-static {}, Lcom/imo/android/imoim/fresco/c;->b()Lcom/facebook/imagepipeline/core/ImagePipeline;

    move-result-object v0

    const-string v1, "FrescoHelper.getImagePipeline()"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/imo/android/imoim/singbox/a/c;->a:Lcom/facebook/imagepipeline/core/ImagePipeline;

    return-void
.end method


# virtual methods
.method public final a()V
    .registers 1

    .line 26
    invoke-static {}, Lcom/imo/android/imoim/fresco/c;->a()V

    return-void
.end method

.method public final a(Landroid/net/Uri;Landroid/content/Context;)V
    .registers 4

    if-eqz p1, :cond_18

    if-nez p2, :cond_5

    goto :goto_18

    .line 50
    :cond_5
    invoke-static {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->newBuilderWithSource(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;

    move-result-object p1

    .line 51
    sget-object v0, Lcom/facebook/imagepipeline/common/Priority;->LOW:Lcom/facebook/imagepipeline/common/Priority;

    invoke-virtual {p1, v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->setRequestPriority(Lcom/facebook/imagepipeline/common/Priority;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;

    move-result-object p1

    .line 52
    invoke-virtual {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->build()Lcom/facebook/imagepipeline/request/ImageRequest;

    move-result-object p1

    .line 1040
    iget-object v0, p0, Lcom/imo/android/imoim/singbox/a/c;->a:Lcom/facebook/imagepipeline/core/ImagePipeline;

    .line 54
    invoke-virtual {v0, p1, p2}, Lcom/facebook/imagepipeline/core/ImagePipeline;->prefetchToDiskCache(Lcom/facebook/imagepipeline/request/ImageRequest;Ljava/lang/Object;)Lcom/facebook/datasource/DataSource;

    :cond_18
    :goto_18
    return-void
.end method

.method public final a(Landroid/net/Uri;Landroid/content/Context;Lkotlin/f/a/b;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/net/Uri;",
            "Landroid/content/Context;",
            "Lkotlin/f/a/b<",
            "-",
            "Landroid/graphics/Bitmap;",
            "Lkotlin/w;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_29

    if-nez p2, :cond_5

    goto :goto_29

    .line 67
    :cond_5
    invoke-static {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->newBuilderWithSource(Landroid/net/Uri;)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;

    move-result-object p1

    const/4 v0, 0x1

    .line 68
    invoke-virtual {p1, v0}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->setProgressiveRenderingEnabled(Z)Lcom/facebook/imagepipeline/request/ImageRequestBuilder;

    move-result-object p1

    .line 69
    invoke-virtual {p1}, Lcom/facebook/imagepipeline/request/ImageRequestBuilder;->build()Lcom/facebook/imagepipeline/request/ImageRequest;

    move-result-object p1

    .line 2040
    iget-object v0, p0, Lcom/imo/android/imoim/singbox/a/c;->a:Lcom/facebook/imagepipeline/core/ImagePipeline;

    .line 72
    invoke-virtual {v0, p1, p2}, Lcom/facebook/imagepipeline/core/ImagePipeline;->fetchDecodedImage(Lcom/facebook/imagepipeline/request/ImageRequest;Ljava/lang/Object;)Lcom/facebook/datasource/DataSource;

    move-result-object p1

    .line 74
    new-instance p2, Lcom/imo/android/imoim/singbox/a/c$a;

    invoke-direct {p2, p3}, Lcom/imo/android/imoim/singbox/a/c$a;-><init>(Lkotlin/f/a/b;)V

    check-cast p2, Lcom/facebook/datasource/DataSubscriber;

    .line 86
    invoke-static {}, Lcom/facebook/common/executors/CallerThreadExecutor;->getInstance()Lcom/facebook/common/executors/CallerThreadExecutor;

    move-result-object p3

    check-cast p3, Ljava/util/concurrent/Executor;

    .line 74
    invoke-interface {p1, p2, p3}, Lcom/facebook/datasource/DataSource;->subscribe(Lcom/facebook/datasource/DataSubscriber;Ljava/util/concurrent/Executor;)V

    return-void

    :cond_29
    :goto_29
    if-eqz p3, :cond_2f

    const/4 p1, 0x0

    .line 63
    invoke-interface {p3, p1}, Lkotlin/f/a/b;->invoke(Ljava/lang/Object;)Ljava/lang/Object;

    :cond_2f
    return-void
.end method

.method public final b(Landroid/net/Uri;Landroid/content/Context;)Landroidx/lifecycle/MutableLiveData;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/net/Uri;",
            "Landroid/content/Context;",
            ")",
            "Landroidx/lifecycle/MutableLiveData<",
            "Landroid/graphics/Bitmap;",
            ">;"
        }
    .end annotation

    .line 94
    new-instance v0, Landroidx/lifecycle/MutableLiveData;

    invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V

    .line 95
    new-instance v1, Lcom/imo/android/imoim/singbox/a/c$b;

    invoke-direct {v1, v0}, Lcom/imo/android/imoim/singbox/a/c$b;-><init>(Landroidx/lifecycle/MutableLiveData;)V

    check-cast v1, Lkotlin/f/a/b;

    invoke-virtual {p0, p1, p2, v1}, Lcom/imo/android/imoim/singbox/a/c;->a(Landroid/net/Uri;Landroid/content/Context;Lkotlin/f/a/b;)V

    return-object v0
.end method

.method public final b()Lcom/facebook/imagepipeline/core/ImagePipeline;
    .registers 2

    .line 40
    iget-object v0, p0, Lcom/imo/android/imoim/singbox/a/c;->a:Lcom/facebook/imagepipeline/core/ImagePipeline;

    return-object v0
.end method