2019-07-24 11:27:29 +00:00
|
|
|
.class public Landroidx/slidingpanelayout/widget/SlidingPaneLayout;
|
|
|
|
.super Landroid/view/ViewGroup;
|
|
|
|
.source "SlidingPaneLayout.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SimplePanelSlideListener;,
|
|
|
|
Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final DEFAULT_FADE_COLOR:I = -0x33333334
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final DEFAULT_OVERHANG_SIZE:I = 0x20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final MIN_FLING_VELOCITY:I = 0x190
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final TAG:Ljava/lang/String; = "SlidingPaneLayout"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mCanSlide:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mCoveredFadeColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDisplayListReflectionLoaded:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mFirstLayout:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mGetDisplayList:Ljava/lang/reflect/Method;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mInitialMotionX:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mInitialMotionY:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mIsUnableToDrag:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mOverhangSize:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mParallaxBy:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mParallaxOffset:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mPostedRunnables:Ljava/util/ArrayList;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/ArrayList<",
|
|
|
|
"Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mPreservedOpenState:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mRecreateDisplayList:Ljava/lang/reflect/Field;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mSlideOffset:F
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mSlideRange:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mSlideableView:Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mSliderFadeColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mTmpRect:Landroid/graphics/Rect;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/Context;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/Context;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/Context;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.param p2 # Landroid/util/AttributeSet;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
const p2, -0x33333334
|
|
|
|
|
|
|
|
iput p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
iput-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
new-instance p3, Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Landroid/graphics/Rect;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
new-instance p3, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget p1, p1, Landroid/util/DisplayMetrics;->density:F
|
|
|
|
|
|
|
|
const/high16 p3, 0x42000000 # 32.0f
|
|
|
|
|
|
|
|
mul-float p3, p3, p1
|
|
|
|
|
|
|
|
const/high16 v0, 0x3f000000 # 0.5f
|
|
|
|
|
|
|
|
add-float/2addr p3, v0
|
|
|
|
|
|
|
|
float-to-int p3, p3
|
|
|
|
|
|
|
|
iput p3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p3}, Landroid/view/ViewGroup;->setWillNotDraw(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p3, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;
|
|
|
|
|
|
|
|
invoke-direct {p3, p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$AccessibilityDelegate;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;)V
|
|
|
|
|
|
|
|
invoke-static {p0, p3}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
|
|
|
|
invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V
|
|
|
|
|
|
|
|
new-instance p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DragHelperCallback;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;)V
|
|
|
|
|
|
|
|
invoke-static {p0, v0, p2}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/high16 p3, 0x43c80000 # 400.0f
|
|
|
|
|
|
|
|
mul-float p1, p1, p3
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private closePane(Landroid/view/View;I)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->smoothSlideTo(FI)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private dimChildView(Landroid/view/View;FI)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float v1, p2, v1
|
|
|
|
|
|
|
|
if-lez v1, :cond_2
|
|
|
|
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
|
|
|
|
const/high16 v1, -0x1000000
|
|
|
|
|
|
|
|
and-int/2addr v1, p3
|
|
|
|
|
|
|
|
ushr-int/lit8 v1, v1, 0x18
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
mul-float v1, v1, p2
|
|
|
|
|
|
|
|
float-to-int p2, v1
|
|
|
|
|
|
|
|
shl-int/lit8 p2, p2, 0x18
|
|
|
|
|
|
|
|
const v1, 0xffffff
|
|
|
|
|
|
|
|
and-int/2addr p3, v1
|
|
|
|
|
|
|
|
or-int/2addr p2, p3
|
|
|
|
|
|
|
|
iget-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
if-nez p3, :cond_0
|
|
|
|
|
|
|
|
new-instance p3, Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-direct {p3}, Landroid/graphics/Paint;-><init>()V
|
|
|
|
|
|
|
|
iput-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
new-instance v1, Landroid/graphics/PorterDuffColorFilter;
|
|
|
|
|
|
|
|
sget-object v2, Landroid/graphics/PorterDuff$Mode;->SRC_OVER:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
invoke-direct {v1, p2, v2}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
|
|
|
|
|
|
|
invoke-virtual {p3, v1}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayerType()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
if-eq p2, p3, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3, p2}, Landroid/view/View;->setLayerType(ILandroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->invalidateChildRegion(Landroid/view/View;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayerType()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_4
|
|
|
|
|
|
|
|
iget-object p2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroid/graphics/Paint;->setColorFilter(Landroid/graphics/ColorFilter;)Landroid/graphics/ColorFilter;
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
new-instance p2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;-><init>(Landroidx/slidingpanelayout/widget/SlidingPaneLayout;Landroid/view/View;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->postOnAnimation(Landroid/view/View;Ljava/lang/Runnable;)V
|
|
|
|
|
|
|
|
:cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private openPane(Landroid/view/View;I)Z
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iget-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
|
|
|
|
const/high16 p1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->smoothSlideTo(FI)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private parallaxOtherViews(F)V
|
|
|
|
.locals 9
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v2, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-gtz v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ge v3, v2, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v4, v5, :cond_2
|
|
|
|
|
|
|
|
goto :goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
iget v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
|
|
|
const/high16 v6, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
sub-float v5, v6, v5
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
int-to-float v8, v7
|
|
|
|
|
|
|
|
mul-float v5, v5, v8
|
|
|
|
|
|
|
|
float-to-int v5, v5
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
|
|
|
sub-float v8, v6, p1
|
|
|
|
|
|
|
|
int-to-float v7, v7
|
|
|
|
|
|
|
|
mul-float v8, v8, v7
|
|
|
|
|
|
|
|
float-to-int v7, v8
|
|
|
|
|
|
|
|
sub-int/2addr v5, v7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
neg-int v5, v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v4, v5}, Landroid/view/View;->offsetLeftAndRight(I)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxOffset:F
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v0, :cond_4
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
sub-float/2addr v5, v6
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
sub-float v5, v6, v5
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iget v6, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {p0, v4, v5, v6}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
|
|
|
:goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static viewIsOpaque(Landroid/view/View;)Z
|
|
|
|
.locals 0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/view/View;->isOpaque()Z
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p0, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
sget p0, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 p0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return p0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public canScroll(Landroid/view/View;ZIII)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 12
|
|
|
|
|
|
|
|
move-object v0, p1
|
|
|
|
|
|
|
|
instance-of v1, v0, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
move-object v1, v0
|
|
|
|
|
|
|
|
check-cast v1, Landroid/view/ViewGroup;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollX()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getScrollY()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/ViewGroup;->getChildCount()I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v5, v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ltz v5, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v1, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
add-int v6, p4, v3
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-lt v6, v8, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
if-ge v6, v8, :cond_0
|
|
|
|
|
|
|
|
add-int v8, p5, v4
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-lt v8, v9, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-ge v8, v9, :cond_0
|
|
|
|
|
|
|
|
const/4 v9, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
sub-int v10, v6, v10
|
|
|
|
|
|
|
|
invoke-virtual {v7}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
sub-int v11, v8, v6
|
|
|
|
|
|
|
|
move-object v6, p0
|
|
|
|
|
|
|
|
move v8, v9
|
|
|
|
|
|
|
|
move v9, p3
|
|
|
|
|
|
|
|
invoke-virtual/range {v6 .. v11}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->canScroll(Landroid/view/View;ZIII)Z
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
move v1, p3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
move v1, p3
|
|
|
|
|
|
|
|
neg-int v1, v1
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
invoke-virtual {p1, v1}, Landroid/view/View;->canScrollHorizontally(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_2
|
|
|
|
return v2
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public canSlide()Z
|
|
|
|
.locals 1
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public closePane()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public computeScroll()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->abort()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public dispatchOnPanelClosed(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelClosed(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0x20
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->sendAccessibilityEvent(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public dispatchOnPanelOpened(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelOpened(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 p1, 0x20
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->sendAccessibilityEvent(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public dispatchOnPanelSlide(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-interface {v0, p1, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;->onPanelSlide(Landroid/view/View;F)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public draw(Landroid/graphics/Canvas;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-le v1, v2, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
add-int/2addr v4, v1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
sub-int v4, v1, v4
|
|
|
|
|
|
|
|
move v6, v4
|
|
|
|
|
|
|
|
move v4, v1
|
|
|
|
|
|
|
|
move v1, v6
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-virtual {v0, v1, v2, v4, v3}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
:goto_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-boolean v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
iget-boolean v0, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->getClipBounds(Landroid/graphics/Rect;)Z
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, v0, Landroid/graphics/Rect;->left:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
iput v2, v0, Landroid/graphics/Rect;->right:I
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mTmpRect:Landroid/graphics/Rect;
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->clipRect(Landroid/graphics/Rect;)Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-virtual {p1, v1}, Landroid/graphics/Canvas;->restoreToCount(I)V
|
|
|
|
|
|
|
|
return p2
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>()V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;-><init>(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getCoveredFadeColor()I
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getParallaxDistance()I
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/Px;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public getSliderFadeColor()I
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public invalidateChildRegion(Landroid/view/View;)V
|
|
|
|
.locals 1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-object v0, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimPaint:Landroid/graphics/Paint;
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setLayerPaint(Landroid/view/View;Landroid/graphics/Paint;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public isDimmed(Landroid/view/View;)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
iget-boolean p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float p1, p1, v1
|
|
|
|
|
|
|
|
if-lez p1, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public isLayoutRtlSupport()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
|
|
|
return v1
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isOpen()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/high16 v1, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
cmpl-float v0, v0, v1
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public isSlideable()Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onAttachedToWindow()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onDetachedFromWindow()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
iput-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v1, v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$DisableLayerRunnable;->run()V
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPostedRunnables:Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-le v1, v2, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
float-to-int v4, v4
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
float-to-int v5, v5
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1, v4, v5}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
|
|
|
|
iput-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_9
|
|
|
|
|
|
|
|
iget-boolean v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_8
|
|
|
|
|
|
|
|
if-ne v0, v2, :cond_2
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
sub-float/2addr v0, v4
|
|
|
|
|
|
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
sub-float/2addr v1, v4
|
|
|
|
|
|
|
|
invoke-static {v1}, Ljava/lang/Math;->abs(F)F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
int-to-float v4, v4
|
|
|
|
|
|
|
|
cmpl-float v4, v0, v4
|
|
|
|
|
|
|
|
if-lez v4, :cond_5
|
|
|
|
|
|
|
|
cmpl-float v0, v1, v0
|
|
|
|
|
|
|
|
if-lez v0, :cond_5
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
iput-boolean v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iput-boolean v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mIsUnableToDrag:Z
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
iput v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v5, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
float-to-int v0, v0
|
|
|
|
|
|
|
|
float-to-int v1, v1
|
|
|
|
|
|
|
|
invoke-virtual {v4, v5, v0, v1}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isDimmed(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
:goto_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-nez p1, :cond_7
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_6
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_7
|
|
|
|
:goto_2
|
|
|
|
return v2
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_3
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
return v3
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
:goto_4
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->cancel()V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onLayout(ZIIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 18
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
iget-object v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
sub-int v3, p4, p2
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
:goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_4
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
|
|
|
|
iget-boolean v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
if-eqz v8, :cond_3
|
|
|
|
|
|
|
|
const/high16 v8, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
iput v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
move v11, v4
|
|
|
|
|
|
|
|
move v12, v11
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-ge v4, v7, :cond_b
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v13
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v14
|
|
|
|
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v14, v15, :cond_5
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
goto/16 :goto_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v14
|
|
|
|
|
|
|
|
check-cast v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
iget-boolean v2, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v2, v14, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v8, v14, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v2, v8
|
|
|
|
|
|
|
|
sub-int v8, v3, v5
|
|
|
|
|
|
|
|
iget v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
sub-int v10, v8, v10
|
|
|
|
|
|
|
|
invoke-static {v11, v10}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
sub-int/2addr v10, v12
|
|
|
|
|
|
|
|
sub-int/2addr v10, v2
|
|
|
|
|
|
|
|
iput v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v2, v14, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
|
|
|
iget v2, v14, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_5
|
|
|
|
add-int v16, v12, v2
|
|
|
|
|
|
|
|
add-int v16, v16, v10
|
|
|
|
|
|
|
|
div-int/lit8 v17, v15, 0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int v9, v17, v16
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-le v9, v8, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v8, 0x1
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
iput-boolean v8, v14, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
int-to-float v8, v10
|
|
|
|
|
|
|
|
iget v9, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
mul-float v8, v8, v9
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
|
|
|
add-int/2addr v2, v8
|
|
|
|
|
|
|
|
add-int/2addr v2, v12
|
|
|
|
|
|
|
|
int-to-float v8, v8
|
|
|
|
|
|
|
|
iget v9, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v9, v9
|
|
|
|
|
|
|
|
div-float/2addr v8, v9
|
|
|
|
|
|
|
|
iput v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-boolean v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v2, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v8, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
|
|
|
sub-float v8, v9, v8
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
mul-float v8, v8, v2
|
|
|
|
|
|
|
|
float-to-int v8, v8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move v2, v11
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
goto :goto_7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v9, 0x3f800000 # 1.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move v2, v11
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sub-int v10, v3, v2
|
|
|
|
|
|
|
|
add-int/2addr v10, v8
|
|
|
|
|
|
|
|
sub-int v8, v10, v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
sub-int v8, v2, v8
|
|
|
|
|
|
|
|
add-int v10, v8, v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v12
|
|
|
|
|
|
|
|
add-int/2addr v12, v6
|
|
|
|
|
|
|
|
invoke-virtual {v13, v8, v6, v10, v12}, Landroid/view/View;->layout(IIII)V
|
|
|
|
|
|
|
|
invoke-virtual {v13}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v8, v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move v12, v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move v11, v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_9
|
2019-07-24 11:27:29 +00:00
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
iget-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_f
|
|
|
|
|
|
|
|
iget-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_d
|
|
|
|
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
if-eqz v1, :cond_c
|
|
|
|
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->parallaxOtherViews(F)V
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-boolean v1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_e
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
iget v2, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_d
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_a
|
2019-07-24 11:27:29 +00:00
|
|
|
if-ge v1, v7, :cond_e
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iget v3, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v2, v4, v3}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_e
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_b
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->updateObscuredViewsVisibility(Landroid/view/View;)V
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onMeasure(II)V
|
|
|
|
.locals 21
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/16 v5, 0x12c
|
|
|
|
|
|
|
|
const/high16 v6, -0x80000000
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v1, v7, :cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->isInEditMode()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v8, :cond_1
|
|
|
|
|
|
|
|
if-ne v1, v6, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
if-nez v1, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/16 v2, 0x12c
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "Width must have an exact value or MATCH_PARENT"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
|
|
|
if-nez v3, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->isInEditMode()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v3, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v3, -0x80000000
|
|
|
|
|
|
|
|
const/16 v4, 0x12c
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
|
|
|
|
const-string v2, "Height must not be UNSPECIFIED"
|
|
|
|
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v3, v6, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v3, v7, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
move v5, v4
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
|
|
|
|
move v5, v4
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
sub-int v8, v2, v8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
sub-int/2addr v8, v9
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
const/4 v10, 0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-le v9, v10, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const-string v10, "SlidingPaneLayout"
|
|
|
|
|
|
|
|
const-string v11, "onMeasure: More than two child views are not supported."
|
|
|
|
|
|
|
|
invoke-static {v10, v11}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
iput-object v10, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
move v13, v4
|
|
|
|
|
|
|
|
move v14, v8
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
|
|
|
const/16 v16, 0x1
|
|
|
|
|
|
|
|
if-ge v4, v9, :cond_11
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v18
|
|
|
|
|
|
|
|
move-object/from16 v7, v18
|
|
|
|
|
|
|
|
check-cast v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v10, v15, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-boolean v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
goto/16 :goto_6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
iget v10, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
cmpl-float v19, v10, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v19, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-float/2addr v12, v10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v10, v7, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v10, :cond_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto/16 :goto_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_9
|
|
|
|
iget v10, v7, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v10, v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, -0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v15, v1, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sub-int v1, v8, v10
|
|
|
|
|
|
|
|
const/high16 v10, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_a
|
|
|
|
iget v1, v7, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v1, v15, :cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sub-int v1, v8, v10
|
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v7, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v1, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
:goto_3
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, -0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v15, v10, :cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v10, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_c
|
|
|
|
iget v10, v7, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v10, v15, :cond_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_d
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v10, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v15, v10}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v6, v1, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
const/high16 v15, -0x80000000
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v3, v15, :cond_e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-le v10, v13, :cond_e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v10, v5}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v13
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_e
|
2019-07-24 11:27:29 +00:00
|
|
|
sub-int/2addr v14, v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gez v14, :cond_f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_f
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
iput-boolean v1, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
|
|
|
or-int/2addr v1, v11
|
|
|
|
|
|
|
|
iget-boolean v7, v7, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->slideable:Z
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v7, :cond_10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object v6, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_10
|
2019-07-24 11:27:29 +00:00
|
|
|
move v11, v1
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/high16 v6, -0x80000000
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto/16 :goto_2
|
|
|
|
|
|
|
|
:cond_11
|
|
|
|
if-nez v11, :cond_12
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
cmpl-float v3, v12, v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v3, :cond_22
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_12
|
|
|
|
iget v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mOverhangSize:I
|
|
|
|
|
|
|
|
sub-int v1, v8, v1
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
:goto_7
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ge v3, v9, :cond_22
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v6, v15, :cond_15
|
|
|
|
|
|
|
|
:cond_13
|
|
|
|
:goto_8
|
|
|
|
move/from16 v20, v1
|
|
|
|
|
|
|
|
:cond_14
|
|
|
|
:goto_9
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/high16 v6, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
goto/16 :goto_e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_15
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v7, v15, :cond_16
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_16
|
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
|
|
|
|
|
|
|
if-nez v7, :cond_17
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
cmpl-float v7, v7, v10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v7, :cond_17
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_17
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_a
|
|
|
|
if-eqz v7, :cond_18
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_18
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_b
|
|
|
|
if-eqz v11, :cond_1d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v15, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v4, v15, :cond_1d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v15, v6, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gez v15, :cond_13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gt v10, v1, :cond_19
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v10, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
cmpl-float v10, v10, v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v10, :cond_13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_19
|
|
|
|
if-eqz v7, :cond_1c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, -0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v7, v10, :cond_1a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1a
|
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v10, -0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v7, v10, :cond_1b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1b
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v6, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1c
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_c
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-static {v1, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
invoke-virtual {v4, v10, v6}, Landroid/view/View;->measure(II)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1d
|
2019-07-24 11:27:29 +00:00
|
|
|
iget v7, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
const/4 v15, 0x0
|
|
|
|
|
|
|
|
cmpl-float v7, v7, v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lez v7, :cond_13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->width:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v7, :cond_20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v15, -0x2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v7, v15, :cond_1e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v7, -0x80000000
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v17
|
|
|
|
|
|
|
|
move/from16 v15, v17
|
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1e
|
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v15, -0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v7, v15, :cond_1f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v5, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move/from16 v15, v20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1f
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v15, v6, Landroid/view/ViewGroup$MarginLayoutParams;->height:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {v15, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_20
|
2019-07-24 11:27:29 +00:00
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v15, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_d
|
|
|
|
if-eqz v11, :cond_21
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v6, v6, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr v7, v6
|
|
|
|
|
|
|
|
sub-int v6, v8, v7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move/from16 v20, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/high16 v7, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v6, v7}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eq v10, v6, :cond_14
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4, v1, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto/16 :goto_9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_21
|
|
|
|
move/from16 v20, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-static {v1, v14}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
iget v6, v6, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->weight:F
|
|
|
|
|
|
|
|
int-to-float v7, v7
|
|
|
|
|
|
|
|
mul-float v6, v6, v7
|
|
|
|
|
|
|
|
div-float/2addr v6, v12
|
|
|
|
|
|
|
|
float-to-int v6, v6
|
|
|
|
|
|
|
|
add-int/2addr v10, v6
|
|
|
|
|
|
|
|
const/high16 v6, 0x40000000 # 2.0f
|
|
|
|
|
|
|
|
invoke-static {v10, v6}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual {v4, v7, v15}, Landroid/view/View;->measure(II)V
|
|
|
|
|
|
|
|
:goto_e
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move/from16 v1, v20
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/16 v15, 0x8
|
|
|
|
|
|
|
|
goto/16 :goto_7
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_22
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v1, v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-int/2addr v3, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v2, v3}, Landroid/view/ViewGroup;->setMeasuredDimension(II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-boolean v11, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_23
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez v11, :cond_23
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v1, v0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/customview/widget/ViewDragHelper;->abort()V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_23
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onPanelDragged(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sub-int/2addr v3, p1
|
|
|
|
|
|
|
|
sub-int p1, v3, v2
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v0, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v0, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_1
|
|
|
|
add-int/2addr v2, v0
|
|
|
|
|
|
|
|
sub-int/2addr p1, v2
|
|
|
|
|
|
|
|
int-to-float p1, p1
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v0, v0
|
|
|
|
|
|
|
|
div-float/2addr p1, v0
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
iget p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->parallaxOtherViews(F)V
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
iget-boolean p1, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;->dimWhenOffset:Z
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideOffset:F
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dimChildView(Landroid/view/View;FI)V
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->dispatchOnPanelSlide(Landroid/view/View;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onRestoreInstanceState(Landroid/os/Parcelable;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
instance-of v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
iget-boolean v0, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane()Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane()Z
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-boolean p1, p1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onSaveInstanceState()Landroid/os/Parcelable;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
new-instance v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;-><init>(Landroid/os/Parcelable;)V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isSlideable()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isOpen()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean v0, v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$SavedState;->isOpen:Z
|
|
|
|
|
|
|
|
return-object v1
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onSizeChanged(IIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->onSizeChanged(IIII)V
|
|
|
|
|
|
|
|
if-eq p1, p3, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mFirstLayout:Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroid/view/ViewGroup;->onTouchEvent(Landroid/view/MotionEvent;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getActionMasked()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isDimmed(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iget v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
sub-float v2, v0, v2
|
|
|
|
|
|
|
|
iget v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
sub-float v3, p1, v3
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
mul-float v2, v2, v2
|
|
|
|
|
|
|
|
mul-float v3, v3, v3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-float/2addr v3, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
mul-int v4, v4, v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
int-to-float v2, v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
cmpg-float v2, v3, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-gez v2, :cond_3
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
float-to-int v0, v0
|
|
|
|
|
|
|
|
float-to-int p1, p1
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v0, p1}, Landroidx/customview/widget/ViewDragHelper;->isViewUnder(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, v0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionX:F
|
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mInitialMotionY:F
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_0
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public openPane()Z
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane(Landroid/view/View;I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public requestChildFocus(Landroid/view/View;Landroid/view/View;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->requestChildFocus(Landroid/view/View;Landroid/view/View;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->isInTouchMode()Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
iget-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
if-ne p1, p2, :cond_0
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPreservedOpenState:Z
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setAllChildrenVisible()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-ge v2, v0, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
const/4 v5, 0x4
|
|
|
|
|
|
|
|
if-ne v4, v5, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setCoveredFadeColor(I)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # I
|
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCoveredFadeColor:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setPanelSlideListener(Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mPanelSlideListener:Landroidx/slidingpanelayout/widget/SlidingPaneLayout$PanelSlideListener;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setParallaxDistance(I)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # I
|
|
|
|
.annotation build Landroidx/annotation/Px;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mParallaxBy:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->requestLayout()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableLeft:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowDrawableRight(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mShadowDrawableRight:Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResource(I)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # I
|
|
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResourceLeft(I)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableLeft(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setShadowResourceRight(I)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setShadowDrawableRight(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public setSliderFadeColor(I)V
|
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # I
|
|
|
|
.annotation build Landroidx/annotation/ColorInt;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput p1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSliderFadeColor:I
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothSlideClosed()V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->closePane()Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public smoothSlideOpen()V
|
|
|
|
.locals 0
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->openPane()Z
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public smoothSlideTo(FI)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 4
|
|
|
|
|
|
|
|
iget-boolean p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mCanSlide:Z
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Landroidx/slidingpanelayout/widget/SlidingPaneLayout$LayoutParams;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getWidth()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
int-to-float v2, v2
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
iget v3, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v3, v3
|
|
|
|
|
|
|
|
mul-float p1, p1, v3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-float/2addr p1, p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
int-to-float p2, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-float/2addr p1, p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sub-float/2addr v2, p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
float-to-int p1, v2
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
add-int/2addr p2, v1
|
|
|
|
|
|
|
|
int-to-float p2, p2
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideRange:I
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
mul-float p1, p1, v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
add-float/2addr p1, p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
float-to-int p1, p1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iget-object p2, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mDragHelper:Landroidx/customview/widget/ViewDragHelper;
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->mSlideableView:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
invoke-virtual {p2, v1, p1, v2}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->setAllChildrenVisible()V
|
|
|
|
|
|
|
|
invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public updateObscuredViewsVisibility(Landroid/view/View;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 17
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->isLayoutRtlSupport()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getWidth()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
sub-int/2addr v2, v3
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingLeft()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getWidth()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingRight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
sub-int/2addr v3, v4
|
|
|
|
|
|
|
|
:goto_1
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingTop()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getHeight()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getPaddingBottom()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
invoke-static/range {p1 .. p1}, Landroidx/slidingpanelayout/widget/SlidingPaneLayout;->viewIsOpaque(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v8
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
invoke-virtual/range {p1 .. p1}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
move-object/from16 v13, p0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ge v12, v11, :cond_8
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v13, v12}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v14
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v14, v0, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
|
|
|
|
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
const/16 v6, 0x8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-ne v15, v6, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move/from16 v16, v1
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
if-eqz v1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move v6, v3
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
move v6, v2
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getLeft()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v6, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getTop()I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
invoke-static {v4, v15}, Ljava/lang/Math;->max(II)I
|
|
|
|
|
|
|
|
move-result v15
|
|
|
|
|
|
|
|
move/from16 v16, v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_6
|
2019-08-30 20:04:20 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
move v0, v2
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
move v0, v3
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getRight()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {v14}, Landroid/view/View;->getBottom()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-static {v5, v1}, Ljava/lang/Math;->min(II)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lt v6, v7, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-lt v15, v9, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gt v0, v8, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-gt v1, v10, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x4
|
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
invoke-virtual {v14, v6}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
add-int/lit8 v12, v12, 0x1
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
move/from16 v1, v16
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_8
|
|
|
|
:goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|