180 lines
5.1 KiB
Smali
180 lines
5.1 KiB
Smali
.class Lcom/vk/imageloader/VKImageLoader$h$a;
|
|
.super Ljava/lang/Object;
|
|
.source "VKImageLoader.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/facebook/datasource/DataSubscriber;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/vk/imageloader/VKImageLoader$h;->a(Lio/reactivex/ObservableEmitter;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Lcom/facebook/datasource/DataSubscriber<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/x/g/CloseableImage;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lio/reactivex/ObservableEmitter;
|
|
|
|
.field final synthetic b:Lcom/vk/imageloader/VKImageLoader$h;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/vk/imageloader/VKImageLoader$h;Lio/reactivex/ObservableEmitter;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->b:Lcom/vk/imageloader/VKImageLoader$h;
|
|
|
|
iput-object p2, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lcom/facebook/datasource/DataSource;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/datasource/DataSource<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/x/g/CloseableImage;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object p1, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
invoke-interface {p1}, Lio/reactivex/Emitter;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b(Lcom/facebook/datasource/DataSource;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/datasource/DataSource<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/x/g/CloseableImage;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object p1, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "Fail fetch image by "
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->b:Lcom/vk/imageloader/VKImageLoader$h;
|
|
|
|
iget-object v2, v2, Lcom/vk/imageloader/VKImageLoader$h;->a:Landroid/net/Uri;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {p1, v0}, Lio/reactivex/Emitter;->a(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public c(Lcom/facebook/datasource/DataSource;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/datasource/DataSource<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/x/g/CloseableImage;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:try_start_0
|
|
iget-object v0, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->g()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Lio/reactivex/Emitter;->b(Ljava/lang/Object;)V
|
|
|
|
.line 2
|
|
iget-object p1, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
invoke-interface {p1}, Lio/reactivex/Emitter;->b()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lcom/vk/imageloader/VKImageLoader$h$a;->a:Lio/reactivex/ObservableEmitter;
|
|
|
|
invoke-interface {v0, p1}, Lio/reactivex/Emitter;->a(Ljava/lang/Throwable;)V
|
|
|
|
.line 4
|
|
invoke-static {}, Lcom/vk/imageloader/VKImageLoader;->a()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "can\'t fetch closable image"
|
|
|
|
invoke-static {v0, v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public d(Lcom/facebook/datasource/DataSource;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/facebook/datasource/DataSource<",
|
|
"Lcom/facebook/common/references/CloseableReference<",
|
|
"Lcom/facebook/x/g/CloseableImage;",
|
|
">;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
return-void
|
|
.end method
|