ArticleViewer$BlockSlideshowCell$4.smali
.class Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;
.super Landroid/view/View;
.source "ArticleViewer.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;-><init>(Lim/tpelyyftgw/ui/ArticleViewer;Landroid/content/Context;Lim/tpelyyftgw/ui/ArticleViewer$WebpageAdapter;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
.field final synthetic val$this$0:Lim/tpelyyftgw/ui/ArticleViewer;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;Landroid/content/Context;Lim/tpelyyftgw/ui/ArticleViewer;)V
.registers 4
.param p1, "this$1" # Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
.param p2, "x0" # Landroid/content/Context;
.line 8002
iput-object p1, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
iput-object p3, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->val$this$0:Lim/tpelyyftgw/ui/ArticleViewer;
invoke-direct {p0, p2}, Landroid/view/View;-><init>(Landroid/content/Context;)V
return-void
.end method
# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
.registers 14
.param p1, "canvas" # Landroid/graphics/Canvas;
.line 8005
iget-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentBlock:Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockSlideshow;
invoke-static {v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17700(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockSlideshow;
move-result-object v0
if-nez v0, :cond_9
.line 8006
return-void
.line 8009
:cond_9
iget-object v0, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->innerAdapter:Landroidx/viewpager/widget/PagerAdapter;
invoke-static {v0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$18100(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)Landroidx/viewpager/widget/PagerAdapter;
move-result-object v0
invoke-virtual {v0}, Landroidx/viewpager/widget/PagerAdapter;->getCount()I
move-result v0
.line 8010
.local v0, "count":I
const/high16 v1, 0x40e00000 # 7.0f
invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v1
mul-int v1, v1, v0
add-int/lit8 v2, v0, -0x1
const/high16 v3, 0x40c00000 # 6.0f
invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
mul-int v2, v2, v3
add-int/2addr v1, v2
const/high16 v2, 0x40800000 # 4.0f
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
add-int/2addr v1, v3
.line 8012
.local v1, "totalWidth":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->getMeasuredWidth()I
move-result v3
const/high16 v4, 0x41500000 # 13.0f
if-ge v1, v3, :cond_3e
.line 8013
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->getMeasuredWidth()I
move-result v3
sub-int/2addr v3, v1
div-int/lit8 v3, v3, 0x2
.local v3, "xOffset":I
goto/16 :goto_d1
.line 8015
.end local v3 # "xOffset":I
:cond_3e
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v3
.line 8016
.restart local v3 # "xOffset":I
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v5
.line 8017
.local v5, "size":I
invoke-virtual {p0}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->getMeasuredWidth()I
move-result v6
const/high16 v7, 0x41000000 # 8.0f
invoke-static {v7}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
sub-int/2addr v6, v7
div-int/lit8 v6, v6, 0x2
div-int/2addr v6, v5
.line 8018
.local v6, "halfCount":I
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v7
sub-int v8, v0, v6
add-int/lit8 v8, v8, -0x1
const/4 v9, 0x0
if-ne v7, v8, :cond_80
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->pageOffset:F
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17400(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)F
move-result v7
cmpg-float v7, v7, v9
if-gez v7, :cond_80
.line 8019
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->pageOffset:F
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17400(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)F
move-result v7
int-to-float v8, v5
mul-float v7, v7, v8
float-to-int v7, v7
mul-int/lit8 v8, v6, 0x2
sub-int v8, v0, v8
add-int/lit8 v8, v8, -0x1
mul-int v8, v8, v5
add-int/2addr v7, v8
sub-int/2addr v3, v7
goto :goto_d1
.line 8020
:cond_80
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v7
sub-int v8, v0, v6
add-int/lit8 v8, v8, -0x1
if-lt v7, v8, :cond_96
.line 8021
mul-int/lit8 v7, v6, 0x2
sub-int v7, v0, v7
add-int/lit8 v7, v7, -0x1
mul-int v7, v7, v5
sub-int/2addr v3, v7
goto :goto_d1
.line 8022
:cond_96
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v7
if-le v7, v6, :cond_b4
.line 8023
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->pageOffset:F
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17400(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)F
move-result v7
int-to-float v8, v5
mul-float v7, v7, v8
float-to-int v7, v7
iget-object v8, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v8}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v8
sub-int/2addr v8, v6
mul-int v8, v8, v5
add-int/2addr v7, v8
sub-int/2addr v3, v7
goto :goto_d1
.line 8024
:cond_b4
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v7
if-ne v7, v6, :cond_d1
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->pageOffset:F
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17400(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)F
move-result v7
cmpl-float v7, v7, v9
if-lez v7, :cond_d1
.line 8025
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->pageOffset:F
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17400(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)F
move-result v7
int-to-float v8, v5
mul-float v7, v7, v8
float-to-int v7, v7
sub-int/2addr v3, v7
.line 8028
.end local v5 # "size":I
.end local v6 # "halfCount":I
:cond_d1
:goto_d1
const/4 v5, 0x0
.local v5, "a":I
:goto_d2
iget-object v6, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentBlock:Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockSlideshow;
invoke-static {v6}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17700(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockSlideshow;
move-result-object v6
iget-object v6, v6, Lim/tpelyyftgw/tgnet/TLRPC$TL_pageBlockSlideshow;->items:Ljava/util/ArrayList;
invoke-virtual {v6}, Ljava/util/ArrayList;->size()I
move-result v6
if-ge v5, v6, :cond_122
.line 8029
invoke-static {v2}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v6
add-int/2addr v6, v3
invoke-static {v4}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v7
mul-int v7, v7, v5
add-int/2addr v6, v7
.line 8030
.local v6, "cx":I
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
# getter for: Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->currentPage:I
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->access$17500(Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;)I
move-result v7
if-ne v7, v5, :cond_fd
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
iget-object v7, v7, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer;->access$18200(Lim/tpelyyftgw/ui/ArticleViewer;)Landroid/graphics/drawable/Drawable;
move-result-object v7
goto :goto_105
:cond_fd
iget-object v7, p0, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell$4;->this$1:Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;
iget-object v7, v7, Lim/tpelyyftgw/ui/ArticleViewer$BlockSlideshowCell;->this$0:Lim/tpelyyftgw/ui/ArticleViewer;
invoke-static {v7}, Lim/tpelyyftgw/ui/ArticleViewer;->access$18300(Lim/tpelyyftgw/ui/ArticleViewer;)Landroid/graphics/drawable/Drawable;
move-result-object v7
.line 8031
.local v7, "drawable":Landroid/graphics/drawable/Drawable;
:goto_105
const/high16 v8, 0x40a00000 # 5.0f
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v9
sub-int v9, v6, v9
const/4 v10, 0x0
invoke-static {v8}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v8
add-int/2addr v8, v6
const/high16 v11, 0x41200000 # 10.0f
invoke-static {v11}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I
move-result v11
invoke-virtual {v7, v9, v10, v8, v11}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
.line 8032
invoke-virtual {v7, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
.line 8028
.end local v6 # "cx":I
.end local v7 # "drawable":Landroid/graphics/drawable/Drawable;
add-int/lit8 v5, v5, 0x1
goto :goto_d2
.line 8034
.end local v5 # "a":I
:cond_122
return-void
.end method