Rabbit-R1/original r1/smali/smali_classes2/androidx/viewpager/widget/ViewPager$4.smali
2024-05-21 17:08:36 -04:00

189 lines
4.8 KiB
Smali

.class Landroidx/viewpager/widget/ViewPager$4;
.super Ljava/lang/Object;
.source "ViewPager.java"
# interfaces
.implements Landroidx/core/view/OnApplyWindowInsetsListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/viewpager/widget/ViewPager;->initViewPager()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field private final mTempRect:Landroid/graphics/Rect;
.field final synthetic this$0:Landroidx/viewpager/widget/ViewPager;
# direct methods
.method constructor <init>(Landroidx/viewpager/widget/ViewPager;)V
.locals 0
iput-object p1, p0, Landroidx/viewpager/widget/ViewPager$4;->this$0:Landroidx/viewpager/widget/ViewPager;
.line 428
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 429
new-instance p1, Landroid/graphics/Rect;
invoke-direct {p1}, Landroid/graphics/Rect;-><init>()V
iput-object p1, p0, Landroidx/viewpager/widget/ViewPager$4;->mTempRect:Landroid/graphics/Rect;
return-void
.end method
# virtual methods
.method public onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
.locals 5
.line 436
invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->onApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
move-result-object p1
.line 437
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->isConsumed()Z
move-result p2
if-eqz p2, :cond_0
return-object p1
:cond_0
iget-object p2, p0, Landroidx/viewpager/widget/ViewPager$4;->mTempRect:Landroid/graphics/Rect;
.line 450
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetLeft()I
move-result v0
iput v0, p2, Landroid/graphics/Rect;->left:I
.line 451
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
move-result v0
iput v0, p2, Landroid/graphics/Rect;->top:I
.line 452
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetRight()I
move-result v0
iput v0, p2, Landroid/graphics/Rect;->right:I
.line 453
invoke-virtual {p1}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
move-result v0
iput v0, p2, Landroid/graphics/Rect;->bottom:I
iget-object v0, p0, Landroidx/viewpager/widget/ViewPager$4;->this$0:Landroidx/viewpager/widget/ViewPager;
.line 455
invoke-virtual {v0}, Landroidx/viewpager/widget/ViewPager;->getChildCount()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
iget-object v2, p0, Landroidx/viewpager/widget/ViewPager$4;->this$0:Landroidx/viewpager/widget/ViewPager;
.line 457
invoke-virtual {v2, v1}, Landroidx/viewpager/widget/ViewPager;->getChildAt(I)Landroid/view/View;
move-result-object v2
invoke-static {v2, p1}, Landroidx/core/view/ViewCompat;->dispatchApplyWindowInsets(Landroid/view/View;Landroidx/core/view/WindowInsetsCompat;)Landroidx/core/view/WindowInsetsCompat;
move-result-object v2
.line 460
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetLeft()I
move-result v3
iget v4, p2, Landroid/graphics/Rect;->left:I
invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I
move-result v3
iput v3, p2, Landroid/graphics/Rect;->left:I
.line 462
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetTop()I
move-result v3
iget v4, p2, Landroid/graphics/Rect;->top:I
invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I
move-result v3
iput v3, p2, Landroid/graphics/Rect;->top:I
.line 464
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetRight()I
move-result v3
iget v4, p2, Landroid/graphics/Rect;->right:I
invoke-static {v3, v4}, Ljava/lang/Math;->min(II)I
move-result v3
iput v3, p2, Landroid/graphics/Rect;->right:I
.line 466
invoke-virtual {v2}, Landroidx/core/view/WindowInsetsCompat;->getSystemWindowInsetBottom()I
move-result v2
iget v3, p2, Landroid/graphics/Rect;->bottom:I
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
move-result v2
iput v2, p2, Landroid/graphics/Rect;->bottom:I
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 471
:cond_1
iget p0, p2, Landroid/graphics/Rect;->left:I
iget v0, p2, Landroid/graphics/Rect;->top:I
iget v1, p2, Landroid/graphics/Rect;->right:I
iget p2, p2, Landroid/graphics/Rect;->bottom:I
invoke-virtual {p1, p0, v0, v1, p2}, Landroidx/core/view/WindowInsetsCompat;->replaceSystemWindowInsets(IIII)Landroidx/core/view/WindowInsetsCompat;
move-result-object p0
return-object p0
.end method