FrescoTextView$2.smali
.class final Lsg/bigo/live/support64/widget/FrescoTextView$2;
.super Lcom/facebook/datasource/BaseDataSubscriber;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lsg/bigo/live/support64/widget/FrescoTextView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/datasource/BaseDataSubscriber<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;"
}
.end annotation
# instance fields
.field final synthetic a:Ljava/lang/String;
.field final synthetic b:I
.field final synthetic c:I
.field final synthetic d:Lsg/bigo/live/support64/widget/FrescoTextView$a;
.field final synthetic e:Lsg/bigo/live/support64/widget/FrescoTextView;
# direct methods
.method constructor <init>(Lsg/bigo/live/support64/widget/FrescoTextView;Ljava/lang/String;IILsg/bigo/live/support64/widget/FrescoTextView$a;)V
.registers 6
.line 595
iput-object p1, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->e:Lsg/bigo/live/support64/widget/FrescoTextView;
iput-object p2, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->a:Ljava/lang/String;
iput p3, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->b:I
iput p4, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->c:I
iput-object p5, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->d:Lsg/bigo/live/support64/widget/FrescoTextView$a;
invoke-direct {p0}, Lcom/facebook/datasource/BaseDataSubscriber;-><init>()V
return-void
.end method
# virtual methods
.method public final onFailureImpl(Lcom/facebook/datasource/DataSource;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;)V"
}
.end annotation
return-void
.end method
.method public final onNewResultImpl(Lcom/facebook/datasource/DataSource;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/facebook/datasource/DataSource<",
"Lcom/facebook/common/references/CloseableReference<",
"Lcom/facebook/imagepipeline/image/CloseableImage;",
">;>;)V"
}
.end annotation
.line 599
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->isFinished()Z
move-result v0
if-nez v0, :cond_7
return-void
.line 602
:cond_7
invoke-interface {p1}, Lcom/facebook/datasource/DataSource;->getResult()Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/facebook/common/references/CloseableReference;
if-eqz p1, :cond_66
.line 604
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->clone()Lcom/facebook/common/references/CloseableReference;
move-result-object v0
.line 606
:try_start_13
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/facebook/imagepipeline/image/CloseableImage;
const/4 v2, 0x0
.line 608
instance-of v3, v1, Lcom/facebook/imagepipeline/image/CloseableBitmap;
if-eqz v3, :cond_24
.line 609
check-cast v1, Lcom/facebook/imagepipeline/image/CloseableBitmap;
invoke-virtual {v1}, Lcom/facebook/imagepipeline/image/CloseableBitmap;->getUnderlyingBitmap()Landroid/graphics/Bitmap;
move-result-object v2
:cond_24
if-eqz v2, :cond_57
.line 611
invoke-virtual {v2}, Landroid/graphics/Bitmap;->isRecycled()Z
move-result v1
if-nez v1, :cond_57
.line 613
invoke-static {}, Lsg/bigo/live/support64/widget/FrescoTextView;->a()Landroid/util/LruCache;
move-result-object v1
iget-object v3, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->a:Ljava/lang/String;
invoke-virtual {v1, v3}, Landroid/util/LruCache;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
if-nez v1, :cond_57
.line 614
iget v1, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->b:I
iget v3, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->c:I
invoke-static {v2, v1, v3}, Lsg/bigo/common/d;->a(Landroid/graphics/Bitmap;II)Landroid/graphics/Bitmap;
move-result-object v1
.line 615
invoke-static {}, Lsg/bigo/live/support64/widget/FrescoTextView;->a()Landroid/util/LruCache;
move-result-object v2
iget-object v3, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->a:Ljava/lang/String;
invoke-virtual {v2, v3, v1}, Landroid/util/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.line 616
iget-object v2, p0, Lsg/bigo/live/support64/widget/FrescoTextView$2;->e:Lsg/bigo/live/support64/widget/FrescoTextView;
invoke-static {v2}, Lsg/bigo/live/support64/widget/FrescoTextView;->a(Lsg/bigo/live/support64/widget/FrescoTextView;)Landroid/os/Handler;
move-result-object v2
new-instance v3, Lsg/bigo/live/support64/widget/FrescoTextView$2$1;
invoke-direct {v3, p0, v1}, Lsg/bigo/live/support64/widget/FrescoTextView$2$1;-><init>(Lsg/bigo/live/support64/widget/FrescoTextView$2;Landroid/graphics/Bitmap;)V
invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:try_end_57
.catch Ljava/lang/Exception; {:try_start_13 .. :try_end_57} :catch_57
.catchall {:try_start_13 .. :try_end_57} :catchall_5e
.line 628
:catch_57
:cond_57
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
.line 629
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
return-void
:catchall_5e
move-exception v1
.line 628
invoke-virtual {p1}, Lcom/facebook/common/references/CloseableReference;->close()V
.line 629
invoke-virtual {v0}, Lcom/facebook/common/references/CloseableReference;->close()V
throw v1
:cond_66
return-void
.end method