apkfuckery/com.discord/smali/androidx/viewpager2/widget/ViewPager2$PagerSnapHelperImpl.smali
2020-01-07 03:40:43 +01:00

58 lines
1.6 KiB
Smali

.class public Landroidx/viewpager2/widget/ViewPager2$PagerSnapHelperImpl;
.super Landroidx/recyclerview/widget/PagerSnapHelper;
.source "ViewPager2.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/viewpager2/widget/ViewPager2;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "PagerSnapHelperImpl"
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/viewpager2/widget/ViewPager2;
# direct methods
.method public constructor <init>(Landroidx/viewpager2/widget/ViewPager2;)V
.locals 0
iput-object p1, p0, Landroidx/viewpager2/widget/ViewPager2$PagerSnapHelperImpl;->this$0:Landroidx/viewpager2/widget/ViewPager2;
invoke-direct {p0}, Landroidx/recyclerview/widget/PagerSnapHelper;-><init>()V
return-void
.end method
# virtual methods
.method public findSnapView(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroid/view/View;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
iget-object v0, p0, Landroidx/viewpager2/widget/ViewPager2$PagerSnapHelperImpl;->this$0:Landroidx/viewpager2/widget/ViewPager2;
invoke-virtual {v0}, Landroidx/viewpager2/widget/ViewPager2;->isFakeDragging()Z
move-result v0
if-eqz v0, :cond_0
const/4 p1, 0x0
goto :goto_0
:cond_0
invoke-super {p0, p1}, Landroidx/recyclerview/widget/PagerSnapHelper;->findSnapView(Landroidx/recyclerview/widget/RecyclerView$LayoutManager;)Landroid/view/View;
move-result-object p1
:goto_0
return-object p1
.end method