.class public Landroidx/drawerlayout/widget/DrawerLayout; .super Landroid/view/ViewGroup; .source "DrawerLayout.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate;, Landroidx/drawerlayout/widget/DrawerLayout$AccessibilityDelegate;, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;, Landroidx/drawerlayout/widget/DrawerLayout$SimpleDrawerListener;, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; } .end annotation # static fields .field public static final ALLOW_EDGE_LOCK:Z = false .field public static final CAN_HIDE_DESCENDANTS:Z = true .field public static final CHILDREN_DISALLOW_INTERCEPT:Z = true .field public static final DEFAULT_SCRIM_COLOR:I = -0x67000000 .field public static final DRAWER_ELEVATION:I = 0xa .field public static final LAYOUT_ATTRS:[I .field public static final LOCK_MODE_LOCKED_CLOSED:I = 0x1 .field public static final LOCK_MODE_LOCKED_OPEN:I = 0x2 .field public static final LOCK_MODE_UNDEFINED:I = 0x3 .field public static final LOCK_MODE_UNLOCKED:I = 0x0 .field public static final MIN_DRAWER_MARGIN:I = 0x40 .field public static final MIN_FLING_VELOCITY:I = 0x190 .field public static final PEEK_DELAY:I = 0xa0 .field public static final SET_DRAWER_SHADOW_FROM_ELEVATION:Z = true .field public static final STATE_DRAGGING:I = 0x1 .field public static final STATE_IDLE:I = 0x0 .field public static final STATE_SETTLING:I = 0x2 .field public static final TAG:Ljava/lang/String; = "DrawerLayout" .field public static final THEME_ATTRS:[I .field public static final TOUCH_SLOP_SENSITIVITY:F = 1.0f # instance fields .field public final mChildAccessibilityDelegate:Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate; .field public mChildHitRect:Landroid/graphics/Rect; .field public mChildInvertedMatrix:Landroid/graphics/Matrix; .field public mChildrenCanceledTouch:Z .field public mDisallowInterceptRequested:Z .field public mDrawStatusBarBackground:Z .field public mDrawerElevation:F .field public mDrawerState:I .field public mFirstLayout:Z .field public mInLayout:Z .field public mInitialMotionX:F .field public mInitialMotionY:F .field public mLastInsets:Ljava/lang/Object; .field public final mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; .field public final mLeftDragger:Landroidx/customview/widget/ViewDragHelper; .field public mListener:Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; .annotation build Landroidx/annotation/Nullable; .end annotation .end field .field public mListeners:Ljava/util/List; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/List<", "Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;", ">;" } .end annotation .end field .field public mLockModeEnd:I .field public mLockModeLeft:I .field public mLockModeRight:I .field public mLockModeStart:I .field public mMinDrawerMargin:I .field public final mNonDrawerViews:Ljava/util/ArrayList; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/ArrayList<", "Landroid/view/View;", ">;" } .end annotation .end field .field public final mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; .field public final mRightDragger:Landroidx/customview/widget/ViewDragHelper; .field public mScrimColor:I .field public mScrimOpacity:F .field public mScrimPaint:Landroid/graphics/Paint; .field public mShadowEnd:Landroid/graphics/drawable/Drawable; .field public mShadowLeft:Landroid/graphics/drawable/Drawable; .field public mShadowLeftResolved:Landroid/graphics/drawable/Drawable; .field public mShadowRight:Landroid/graphics/drawable/Drawable; .field public mShadowRightResolved:Landroid/graphics/drawable/Drawable; .field public mShadowStart:Landroid/graphics/drawable/Drawable; .field public mStatusBarBackground:Landroid/graphics/drawable/Drawable; .field public mTitleLeft:Ljava/lang/CharSequence; .field public mTitleRight:Ljava/lang/CharSequence; # direct methods .method public static constructor ()V .locals 4 const/4 v0, 0x1 new-array v1, v0, [I const v2, 0x1010434 const/4 v3, 0x0 aput v2, v1, v3 sput-object v1, Landroidx/drawerlayout/widget/DrawerLayout;->THEME_ATTRS:[I new-array v0, v0, [I const v1, 0x10100b3 aput v1, v0, v3 sput-object v0, Landroidx/drawerlayout/widget/DrawerLayout;->LAYOUT_ATTRS:[I return-void .end method .method public constructor (Landroid/content/Context;)V .locals 1 .param p1 # Landroid/content/Context; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 v0, 0x0 invoke-direct {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 1 .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 const/4 v0, 0x0 invoke-direct {p0, p1, p2, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .locals 4 .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 invoke-direct {p0, p1, p2, p3}, Landroid/view/ViewGroup;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V new-instance p2, Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate; invoke-direct {p2}, Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate;->()V iput-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildAccessibilityDelegate:Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate; const/high16 p2, -0x67000000 iput p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimColor:I new-instance p2, Landroid/graphics/Paint; invoke-direct {p2}, Landroid/graphics/Paint;->()V iput-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimPaint:Landroid/graphics/Paint; const/4 p2, 0x1 iput-boolean p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z const/4 p3, 0x3 iput p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I iput p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I iput p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I iput p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I const/4 v0, 0x0 iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable; iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRight:Landroid/graphics/drawable/Drawable; const/high16 v0, 0x40000 invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setDescendantFocusability(I)V invoke-virtual {p0}, Landroid/view/ViewGroup;->getResources()Landroid/content/res/Resources; move-result-object v0 invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics; move-result-object v0 iget v0, v0, Landroid/util/DisplayMetrics;->density:F const/high16 v1, 0x42800000 # 64.0f mul-float v1, v1, v0 const/high16 v2, 0x3f000000 # 0.5f add-float/2addr v1, v2 float-to-int v1, v1 iput v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mMinDrawerMargin:I const/high16 v1, 0x43c80000 # 400.0f mul-float v1, v1, v0 new-instance v2, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-direct {v2, p0, p3}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->(Landroidx/drawerlayout/widget/DrawerLayout;I)V iput-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; new-instance p3, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; const/4 v2, 0x5 invoke-direct {p3, p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->(Landroidx/drawerlayout/widget/DrawerLayout;I)V iput-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; const/high16 v2, 0x3f800000 # 1.0f invoke-static {p0, v2, p3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper; move-result-object p3 iput-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p3, p2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p3, v1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; iget-object v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p3, v3}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->setDragger(Landroidx/customview/widget/ViewDragHelper;)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-static {p0, v2, p3}, Landroidx/customview/widget/ViewDragHelper;->create(Landroid/view/ViewGroup;FLandroidx/customview/widget/ViewDragHelper$Callback;)Landroidx/customview/widget/ViewDragHelper; move-result-object p3 iput-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; const/4 v2, 0x2 invoke-virtual {p3, v2}, Landroidx/customview/widget/ViewDragHelper;->setEdgeTrackingEnabled(I)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p3, v1}, Landroidx/customview/widget/ViewDragHelper;->setMinVelocity(F)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p3, v1}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->setDragger(Landroidx/customview/widget/ViewDragHelper;)V invoke-virtual {p0, p2}, Landroid/view/ViewGroup;->setFocusableInTouchMode(Z)V invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V new-instance p2, Landroidx/drawerlayout/widget/DrawerLayout$AccessibilityDelegate; invoke-direct {p2, p0}, Landroidx/drawerlayout/widget/DrawerLayout$AccessibilityDelegate;->(Landroidx/drawerlayout/widget/DrawerLayout;)V invoke-static {p0, p2}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V const/4 p2, 0x0 invoke-virtual {p0, p2}, Landroid/view/ViewGroup;->setMotionEventSplittingEnabled(Z)V invoke-static {p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z move-result p3 if-eqz p3, :cond_0 new-instance p3, Landroidx/drawerlayout/widget/DrawerLayout$1; invoke-direct {p3, p0}, Landroidx/drawerlayout/widget/DrawerLayout$1;->(Landroidx/drawerlayout/widget/DrawerLayout;)V invoke-virtual {p0, p3}, Landroid/view/ViewGroup;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V const/16 p3, 0x500 invoke-virtual {p0, p3}, Landroid/view/ViewGroup;->setSystemUiVisibility(I)V sget-object p3, Landroidx/drawerlayout/widget/DrawerLayout;->THEME_ATTRS:[I invoke-virtual {p1, p3}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray; move-result-object p1 :try_start_0 invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable; move-result-object p2 iput-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V goto :goto_0 :catchall_0 move-exception p2 invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V throw p2 :cond_0 :goto_0 const/high16 p1, 0x41200000 # 10.0f mul-float v0, v0, p1 iput v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerElevation:F new-instance p1, Ljava/util/ArrayList; invoke-direct {p1}, Ljava/util/ArrayList;->()V iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mNonDrawerViews:Ljava/util/ArrayList; return-void .end method .method private dispatchTransformedGenericPointerEvent(Landroid/view/MotionEvent;Landroid/view/View;)Z .locals 3 invoke-virtual {p2}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix; move-result-object v0 invoke-virtual {v0}, Landroid/graphics/Matrix;->isIdentity()Z move-result v0 if-nez v0, :cond_0 invoke-direct {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->getTransformedMotionEvent(Landroid/view/MotionEvent;Landroid/view/View;)Landroid/view/MotionEvent; move-result-object p1 invoke-virtual {p2, p1}, Landroid/view/View;->dispatchGenericMotionEvent(Landroid/view/MotionEvent;)Z move-result p2 invoke-virtual {p1}, Landroid/view/MotionEvent;->recycle()V goto :goto_0 :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getScrollX()I move-result v0 invoke-virtual {p2}, Landroid/view/View;->getLeft()I move-result v1 sub-int/2addr v0, v1 int-to-float v0, v0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getScrollY()I move-result v1 invoke-virtual {p2}, Landroid/view/View;->getTop()I move-result v2 sub-int/2addr v1, v2 int-to-float v1, v1 invoke-virtual {p1, v0, v1}, Landroid/view/MotionEvent;->offsetLocation(FF)V invoke-virtual {p2, p1}, Landroid/view/View;->dispatchGenericMotionEvent(Landroid/view/MotionEvent;)Z move-result p2 neg-float v0, v0 neg-float v1, v1 invoke-virtual {p1, v0, v1}, Landroid/view/MotionEvent;->offsetLocation(FF)V :goto_0 return p2 .end method .method private getTransformedMotionEvent(Landroid/view/MotionEvent;Landroid/view/View;)Landroid/view/MotionEvent; .locals 3 invoke-virtual {p0}, Landroid/view/ViewGroup;->getScrollX()I move-result v0 invoke-virtual {p2}, Landroid/view/View;->getLeft()I move-result v1 sub-int/2addr v0, v1 int-to-float v0, v0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getScrollY()I move-result v1 invoke-virtual {p2}, Landroid/view/View;->getTop()I move-result v2 sub-int/2addr v1, v2 int-to-float v1, v1 invoke-static {p1}, Landroid/view/MotionEvent;->obtain(Landroid/view/MotionEvent;)Landroid/view/MotionEvent; move-result-object p1 invoke-virtual {p1, v0, v1}, Landroid/view/MotionEvent;->offsetLocation(FF)V invoke-virtual {p2}, Landroid/view/View;->getMatrix()Landroid/graphics/Matrix; move-result-object p2 invoke-virtual {p2}, Landroid/graphics/Matrix;->isIdentity()Z move-result v0 if-nez v0, :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildInvertedMatrix:Landroid/graphics/Matrix; if-nez v0, :cond_0 new-instance v0, Landroid/graphics/Matrix; invoke-direct {v0}, Landroid/graphics/Matrix;->()V iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildInvertedMatrix:Landroid/graphics/Matrix; :cond_0 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildInvertedMatrix:Landroid/graphics/Matrix; invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->invert(Landroid/graphics/Matrix;)Z iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildInvertedMatrix:Landroid/graphics/Matrix; invoke-virtual {p1, p2}, Landroid/view/MotionEvent;->transform(Landroid/graphics/Matrix;)V :cond_1 return-object p1 .end method .method public static gravityToString(I)Ljava/lang/String; .locals 2 and-int/lit8 v0, p0, 0x3 const/4 v1, 0x3 if-ne v0, v1, :cond_0 const-string p0, "LEFT" return-object p0 :cond_0 and-int/lit8 v0, p0, 0x5 const/4 v1, 0x5 if-ne v0, v1, :cond_1 const-string p0, "RIGHT" return-object p0 :cond_1 invoke-static {p0}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; move-result-object p0 return-object p0 .end method .method public static hasOpaqueBackground(Landroid/view/View;)Z .locals 2 invoke-virtual {p0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable; move-result-object p0 const/4 v0, 0x0 if-eqz p0, :cond_0 invoke-virtual {p0}, Landroid/graphics/drawable/Drawable;->getOpacity()I move-result p0 const/4 v1, -0x1 if-ne p0, v1, :cond_0 const/4 v0, 0x1 :cond_0 return v0 .end method .method private hasPeekingDrawer()Z .locals 4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_1 invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v3 invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v3 check-cast v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget-boolean v3, v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->isPeeking:Z if-eqz v3, :cond_0 const/4 v0, 0x1 return v0 :cond_0 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_1 return v1 .end method .method private hasVisibleDrawer()Z .locals 1 invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->findVisibleDrawer()Landroid/view/View; move-result-object v0 if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 .end method .method public static includeChildForAccessibility(Landroid/view/View;)Z .locals 2 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I move-result v0 const/4 v1, 0x4 if-eq v0, v1, :cond_0 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getImportantForAccessibility(Landroid/view/View;)I move-result p0 const/4 v0, 0x2 if-eq p0, v0, :cond_0 const/4 p0, 0x1 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return p0 .end method .method private isInBoundsOfChild(FFLandroid/view/View;)Z .locals 1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildHitRect:Landroid/graphics/Rect; if-nez v0, :cond_0 new-instance v0, Landroid/graphics/Rect; invoke-direct {v0}, Landroid/graphics/Rect;->()V iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildHitRect:Landroid/graphics/Rect; :cond_0 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildHitRect:Landroid/graphics/Rect; invoke-virtual {p3, v0}, Landroid/view/View;->getHitRect(Landroid/graphics/Rect;)V iget-object p3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildHitRect:Landroid/graphics/Rect; float-to-int p1, p1 float-to-int p2, p2 invoke-virtual {p3, p1, p2}, Landroid/graphics/Rect;->contains(II)Z move-result p1 return p1 .end method .method private mirror(Landroid/graphics/drawable/Drawable;I)Z .locals 1 if-eqz p1, :cond_1 invoke-static {p1}, Landroidx/core/graphics/drawable/DrawableCompat;->isAutoMirrored(Landroid/graphics/drawable/Drawable;)Z move-result v0 if-nez v0, :cond_0 goto :goto_0 :cond_0 invoke-static {p1, p2}, Landroidx/core/graphics/drawable/DrawableCompat;->setLayoutDirection(Landroid/graphics/drawable/Drawable;I)Z const/4 p1, 0x1 return p1 :cond_1 :goto_0 const/4 p1, 0x0 return p1 .end method .method private resolveLeftShadow()Landroid/graphics/drawable/Drawable; .locals 2 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 if-nez v0, :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; if-eqz v1, :cond_1 invoke-direct {p0, v1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->mirror(Landroid/graphics/drawable/Drawable;I)Z iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; return-object v0 :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; if-eqz v1, :cond_1 invoke-direct {p0, v1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->mirror(Landroid/graphics/drawable/Drawable;I)Z iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; return-object v0 :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable; return-object v0 .end method .method private resolveRightShadow()Landroid/graphics/drawable/Drawable; .locals 2 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 if-nez v0, :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; if-eqz v1, :cond_1 invoke-direct {p0, v1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->mirror(Landroid/graphics/drawable/Drawable;I)Z iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; return-object v0 :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; if-eqz v1, :cond_1 invoke-direct {p0, v1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->mirror(Landroid/graphics/drawable/Drawable;I)Z iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; return-object v0 :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRight:Landroid/graphics/drawable/Drawable; return-object v0 .end method .method private resolveShadowDrawables()V .locals 1 sget-boolean v0, Landroidx/drawerlayout/widget/DrawerLayout;->SET_DRAWER_SHADOW_FROM_ELEVATION:Z if-eqz v0, :cond_0 return-void :cond_0 invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->resolveLeftShadow()Landroid/graphics/drawable/Drawable; move-result-object v0 iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->resolveRightShadow()Landroid/graphics/drawable/Drawable; move-result-object v0 iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; return-void .end method .method private updateChildrenImportantForAccessibility(Landroid/view/View;Z)V .locals 4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 :goto_0 if-ge v1, v0, :cond_3 invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v2 if-nez p2, :cond_0 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v3 if-eqz v3, :cond_1 :cond_0 if-eqz p2, :cond_2 if-ne v2, p1, :cond_2 :cond_1 const/4 v3, 0x1 invoke-static {v2, v3}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V goto :goto_1 :cond_2 const/4 v3, 0x4 invoke-static {v2, v3}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V :goto_1 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_3 return-void .end method # virtual methods .method public addDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V .locals 1 .param p1 # Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; .annotation build Landroidx/annotation/NonNull; .end annotation .end param if-nez p1, :cond_0 return-void :cond_0 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-nez v0, :cond_1 new-instance v0, Ljava/util/ArrayList; invoke-direct {v0}, Ljava/util/ArrayList;->()V iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z return-void .end method .method public addFocusables(Ljava/util/ArrayList;II)V .locals 6 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/ArrayList<", "Landroid/view/View;", ">;II)V" } .end annotation invoke-virtual {p0}, Landroid/view/ViewGroup;->getDescendantFocusability()I move-result v0 const/high16 v1, 0x60000 if-ne v0, v1, :cond_0 return-void :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 :goto_0 if-ge v2, v0, :cond_3 invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v4 invoke-virtual {p0, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v5 if-eqz v5, :cond_1 invoke-virtual {p0, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(Landroid/view/View;)Z move-result v5 if-eqz v5, :cond_2 invoke-virtual {v4, p1, p2, p3}, Landroid/view/View;->addFocusables(Ljava/util/ArrayList;II)V const/4 v3, 0x1 goto :goto_1 :cond_1 iget-object v5, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mNonDrawerViews:Ljava/util/ArrayList; invoke-virtual {v5, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_2 :goto_1 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_3 if-nez v3, :cond_5 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mNonDrawerViews:Ljava/util/ArrayList; invoke-virtual {v0}, Ljava/util/ArrayList;->size()I move-result v0 :goto_2 if-ge v1, v0, :cond_5 iget-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mNonDrawerViews:Ljava/util/ArrayList; invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroid/view/View; invoke-virtual {v2}, Landroid/view/View;->getVisibility()I move-result v3 if-nez v3, :cond_4 invoke-virtual {v2, p1, p2, p3}, Landroid/view/View;->addFocusables(Ljava/util/ArrayList;II)V :cond_4 add-int/lit8 v1, v1, 0x1 goto :goto_2 :cond_5 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mNonDrawerViews:Ljava/util/ArrayList; invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V return-void .end method .method public addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V .locals 0 invoke-super {p0, p1, p2, p3}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->findOpenDrawer()Landroid/view/View; move-result-object p2 if-nez p2, :cond_1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result p2 if-eqz p2, :cond_0 goto :goto_0 :cond_0 const/4 p2, 0x1 invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V goto :goto_1 :cond_1 :goto_0 const/4 p2, 0x4 invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setImportantForAccessibility(Landroid/view/View;I)V :goto_1 sget-boolean p2, Landroidx/drawerlayout/widget/DrawerLayout;->CAN_HIDE_DESCENDANTS:Z if-nez p2, :cond_2 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildAccessibilityDelegate:Landroidx/drawerlayout/widget/DrawerLayout$ChildAccessibilityDelegate; invoke-static {p1, p2}, Landroidx/core/view/ViewCompat;->setAccessibilityDelegate(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V :cond_2 return-void .end method .method public cancelChildViewTouch()V .locals 9 iget-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z if-nez v0, :cond_1 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v3 const/4 v5, 0x3 const/4 v6, 0x0 const/4 v7, 0x0 const/4 v8, 0x0 move-wide v1, v3 invoke-static/range {v1 .. v8}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent; move-result-object v0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v1 const/4 v2, 0x0 :goto_0 if-ge v2, v1, :cond_0 invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v3 invoke-virtual {v3, v0}, Landroid/view/View;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 invoke-virtual {v0}, Landroid/view/MotionEvent;->recycle()V const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z :cond_1 return-void .end method .method public checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z .locals 0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerViewAbsoluteGravity(Landroid/view/View;)I move-result p1 and-int/2addr p1, p2 if-ne p1, p2, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public checkLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Z .locals 1 instance-of v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$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 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public closeDrawer(I)V .locals 1 const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(IZ)V return-void .end method .method public closeDrawer(IZ)V .locals 1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object v0 if-eqz v0, :cond_0 invoke-virtual {p0, v0, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(Landroid/view/View;Z)V return-void :cond_0 new-instance p2, Ljava/lang/IllegalArgumentException; const-string v0, "No drawer view found with gravity " invoke-static {v0}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-static {p1}, Landroidx/drawerlayout/widget/DrawerLayout;->gravityToString(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p2 .end method .method public closeDrawer(Landroid/view/View;)V .locals 1 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(Landroid/view/View;Z)V return-void .end method .method public closeDrawer(Landroid/view/View;Z)V .locals 4 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_3 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget-boolean v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z const/4 v2, 0x0 const/4 v3, 0x0 if-eqz v1, :cond_0 iput v3, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F iput v2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I goto :goto_0 :cond_0 const/4 v1, 0x4 if-eqz p2, :cond_2 iget p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I or-int/2addr p2, v1 iput p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 p2, 0x3 invoke-virtual {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result p2 if-eqz p2, :cond_1 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p1}, Landroid/view/View;->getWidth()I move-result v0 neg-int v0, v0 invoke-virtual {p1}, Landroid/view/View;->getTop()I move-result v1 invoke-virtual {p2, p1, v0, v1}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z goto :goto_0 :cond_1 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v0 invoke-virtual {p1}, Landroid/view/View;->getTop()I move-result v1 invoke-virtual {p2, p1, v0, v1}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z goto :goto_0 :cond_2 invoke-virtual {p0, p1, v3}, Landroidx/drawerlayout/widget/DrawerLayout;->moveDrawerToOffset(Landroid/view/View;F)V iget p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-virtual {p0, p2, v2, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->updateDrawerState(IILandroid/view/View;)V invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V :goto_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void :cond_3 new-instance p2, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "View " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p1, " is not a sliding drawer" invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p2 .end method .method public closeDrawers()V .locals 1 const/4 v0, 0x0 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers(Z)V return-void .end method .method public closeDrawers(Z)V .locals 9 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 const/4 v3, 0x0 :goto_0 if-ge v2, v0, :cond_3 invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v4 invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v5 check-cast v5, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; invoke-virtual {p0, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v6 if-eqz v6, :cond_2 if-eqz p1, :cond_0 iget-boolean v6, v5, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->isPeeking:Z if-nez v6, :cond_0 goto :goto_2 :cond_0 invoke-virtual {v4}, Landroid/view/View;->getWidth()I move-result v6 const/4 v7, 0x3 invoke-virtual {p0, v4, v7}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v7 if-eqz v7, :cond_1 iget-object v7, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; neg-int v6, v6 invoke-virtual {v4}, Landroid/view/View;->getTop()I move-result v8 invoke-virtual {v7, v4, v6, v8}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z move-result v4 goto :goto_1 :cond_1 iget-object v6, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v7 invoke-virtual {v4}, Landroid/view/View;->getTop()I move-result v8 invoke-virtual {v6, v4, v7, v8}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z move-result v4 :goto_1 or-int/2addr v3, v4 iput-boolean v1, v5, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->isPeeking:Z :cond_2 :goto_2 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_3 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-virtual {p1}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->removeCallbacks()V iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-virtual {p1}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->removeCallbacks()V if-eqz v3, :cond_4 invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V :cond_4 return-void .end method .method public computeScroll()V .locals 4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 const/4 v2, 0x0 :goto_0 if-ge v2, v0, :cond_0 invoke-virtual {p0, v2}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v3 invoke-virtual {v3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v3 check-cast v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v3, v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F invoke-static {v1, v3}, Ljava/lang/Math;->max(FF)F move-result v1 add-int/lit8 v2, v2, 0x1 goto :goto_0 :cond_0 iput v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimOpacity:F iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; const/4 v1, 0x1 invoke-virtual {v0, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z move-result v0 iget-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v2, v1}, Landroidx/customview/widget/ViewDragHelper;->continueSettling(Z)Z move-result v1 if-nez v0, :cond_1 if-eqz v1, :cond_2 :cond_1 invoke-static {p0}, Landroidx/core/view/ViewCompat;->postInvalidateOnAnimation(Landroid/view/View;)V :cond_2 return-void .end method .method public dispatchGenericMotionEvent(Landroid/view/MotionEvent;)Z .locals 6 invoke-virtual {p1}, Landroid/view/MotionEvent;->getSource()I move-result v0 and-int/lit8 v0, v0, 0x2 if-eqz v0, :cond_4 invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v0 const/16 v1, 0xa if-eq v0, v1, :cond_4 iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimOpacity:F const/4 v1, 0x0 cmpg-float v0, v0, v1 if-gtz v0, :cond_0 goto :goto_2 :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 if-eqz v0, :cond_3 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v1 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result v2 const/4 v3, 0x1 sub-int/2addr v0, v3 :goto_0 if-ltz v0, :cond_3 invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v4 invoke-direct {p0, v1, v2, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->isInBoundsOfChild(FFLandroid/view/View;)Z move-result v5 if-eqz v5, :cond_2 invoke-virtual {p0, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result v5 if-eqz v5, :cond_1 goto :goto_1 :cond_1 invoke-direct {p0, p1, v4}, Landroidx/drawerlayout/widget/DrawerLayout;->dispatchTransformedGenericPointerEvent(Landroid/view/MotionEvent;Landroid/view/View;)Z move-result v4 if-eqz v4, :cond_2 return v3 :cond_2 :goto_1 add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_3 const/4 p1, 0x0 return p1 :cond_4 :goto_2 invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchGenericMotionEvent(Landroid/view/MotionEvent;)Z move-result p1 return p1 .end method .method public dispatchOnDrawerClosed(Landroid/view/View;)V .locals 3 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v1, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v2, 0x1 and-int/2addr v1, v2 if-ne v1, v2, :cond_1 const/4 v1, 0x0 iput v1, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-eqz v0, :cond_0 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 sub-int/2addr v0, v2 :goto_0 if-ltz v0, :cond_0 iget-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v2 check-cast v2, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; invoke-interface {v2, p1}, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;->onDrawerClosed(Landroid/view/View;)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_0 invoke-direct {p0, p1, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->updateChildrenImportantForAccessibility(Landroid/view/View;Z)V invoke-virtual {p0}, Landroid/view/ViewGroup;->hasWindowFocus()Z move-result p1 if-eqz p1, :cond_1 invoke-virtual {p0}, Landroid/view/ViewGroup;->getRootView()Landroid/view/View; move-result-object p1 if-eqz p1, :cond_1 const/16 v0, 0x20 invoke-virtual {p1, v0}, Landroid/view/View;->sendAccessibilityEvent(I)V :cond_1 return-void .end method .method public dispatchOnDrawerOpened(Landroid/view/View;)V .locals 3 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v1, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v2, 0x1 and-int/2addr v1, v2 if-nez v1, :cond_1 iput v2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-eqz v0, :cond_0 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 sub-int/2addr v0, v2 :goto_0 if-ltz v0, :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; invoke-interface {v1, p1}, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;->onDrawerOpened(Landroid/view/View;)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_0 invoke-direct {p0, p1, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->updateChildrenImportantForAccessibility(Landroid/view/View;Z)V invoke-virtual {p0}, Landroid/view/ViewGroup;->hasWindowFocus()Z move-result p1 if-eqz p1, :cond_1 const/16 p1, 0x20 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->sendAccessibilityEvent(I)V :cond_1 return-void .end method .method public dispatchOnDrawerSlide(Landroid/view/View;F)V .locals 2 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-eqz v0, :cond_0 invoke-interface {v0}, Ljava/util/List;->size()I move-result v0 add-int/lit8 v0, v0, -0x1 :goto_0 if-ltz v0, :cond_0 iget-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v1 check-cast v1, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; invoke-interface {v1, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;->onDrawerSlide(Landroid/view/View;F)V add-int/lit8 v0, v0, -0x1 goto :goto_0 :cond_0 return-void .end method .method public drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z .locals 14 move-object v0, p0 move-object v1, p1 move-object/from16 v2, p2 invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I move-result v3 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result v4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v5 invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I move-result v6 const/4 v7, 0x3 const/4 v8, 0x0 if-eqz v4, :cond_4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v9 const/4 v10, 0x0 const/4 v11, 0x0 :goto_0 if-ge v10, v9, :cond_3 invoke-virtual {p0, v10}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v12 if-eq v12, v2, :cond_2 invoke-virtual {v12}, Landroid/view/View;->getVisibility()I move-result v13 if-nez v13, :cond_2 invoke-static {v12}, Landroidx/drawerlayout/widget/DrawerLayout;->hasOpaqueBackground(Landroid/view/View;)Z move-result v13 if-eqz v13, :cond_2 invoke-virtual {p0, v12}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v13 if-eqz v13, :cond_2 invoke-virtual {v12}, Landroid/view/View;->getHeight()I move-result v13 if-ge v13, v3, :cond_0 goto :goto_1 :cond_0 invoke-virtual {p0, v12, v7}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v13 if-eqz v13, :cond_1 invoke-virtual {v12}, Landroid/view/View;->getRight()I move-result v12 if-le v12, v11, :cond_2 move v11, v12 goto :goto_1 :cond_1 invoke-virtual {v12}, Landroid/view/View;->getLeft()I move-result v12 if-ge v12, v5, :cond_2 move v5, v12 :cond_2 :goto_1 add-int/lit8 v10, v10, 0x1 goto :goto_0 :cond_3 invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I move-result v3 invoke-virtual {p1, v11, v8, v5, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z move v8, v11 :cond_4 invoke-super/range {p0 .. p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z move-result v9 invoke-virtual {p1, v6}, Landroid/graphics/Canvas;->restoreToCount(I)V iget v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimOpacity:F const/4 v6, 0x0 cmpl-float v10, v3, v6 if-lez v10, :cond_5 if-eqz v4, :cond_5 iget v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimColor:I const/high16 v4, -0x1000000 and-int/2addr v4, v2 ushr-int/lit8 v4, v4, 0x18 int-to-float v4, v4 mul-float v4, v4, v3 float-to-int v3, v4 shl-int/lit8 v3, v3, 0x18 const v4, 0xffffff and-int/2addr v2, v4 or-int/2addr v2, v3 iget-object v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimPaint:Landroid/graphics/Paint; invoke-virtual {v3, v2}, Landroid/graphics/Paint;->setColor(I)V int-to-float v2, v8 const/4 v3, 0x0 int-to-float v4, v5 invoke-virtual {p0}, Landroid/view/ViewGroup;->getHeight()I move-result v5 int-to-float v5, v5 iget-object v6, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimPaint:Landroid/graphics/Paint; move-object v1, p1 invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V goto/16 :goto_2 :cond_5 iget-object v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; const/high16 v4, 0x437f0000 # 255.0f const/high16 v5, 0x3f800000 # 1.0f if-eqz v3, :cond_6 invoke-virtual {p0, v2, v7}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v3 if-eqz v3, :cond_6 iget-object v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I move-result v3 invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getRight()I move-result v7 iget-object v8, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v8}, Landroidx/customview/widget/ViewDragHelper;->getEdgeSize()I move-result v8 int-to-float v10, v7 int-to-float v8, v8 div-float/2addr v10, v8 invoke-static {v10, v5}, Ljava/lang/Math;->min(FF)F move-result v5 invoke-static {v6, v5}, Ljava/lang/Math;->max(FF)F move-result v5 iget-object v6, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I move-result v8 add-int/2addr v3, v7 invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getBottom()I move-result v2 invoke-virtual {v6, v7, v8, v3, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V iget-object v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; mul-float v5, v5, v4 float-to-int v3, v5 invoke-virtual {v2, v3}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V iget-object v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeftResolved:Landroid/graphics/drawable/Drawable; invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V goto :goto_2 :cond_6 iget-object v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; if-eqz v3, :cond_7 const/4 v3, 0x5 invoke-virtual {p0, v2, v3}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v3 if-eqz v3, :cond_7 iget-object v3, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; invoke-virtual {v3}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I move-result v3 invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getLeft()I move-result v7 invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v8 sub-int/2addr v8, v7 iget-object v10, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v10}, Landroidx/customview/widget/ViewDragHelper;->getEdgeSize()I move-result v10 int-to-float v8, v8 int-to-float v10, v10 div-float/2addr v8, v10 invoke-static {v8, v5}, Ljava/lang/Math;->min(FF)F move-result v5 invoke-static {v6, v5}, Ljava/lang/Math;->max(FF)F move-result v5 iget-object v6, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; sub-int v3, v7, v3 invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getTop()I move-result v8 invoke-virtual/range {p2 .. p2}, Landroid/view/View;->getBottom()I move-result v2 invoke-virtual {v6, v3, v8, v7, v2}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V iget-object v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; mul-float v5, v5, v4 float-to-int v3, v5 invoke-virtual {v2, v3}, Landroid/graphics/drawable/Drawable;->setAlpha(I)V iget-object v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRightResolved:Landroid/graphics/drawable/Drawable; invoke-virtual {v2, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V :cond_7 :goto_2 return v9 .end method .method public findDrawerWithGravity(I)Landroid/view/View; .locals 4 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result p1 and-int/lit8 p1, p1, 0x7 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 :goto_0 if-ge v1, v0, :cond_1 invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v2 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerViewAbsoluteGravity(Landroid/view/View;)I move-result v3 and-int/lit8 v3, v3, 0x7 if-ne v3, p1, :cond_0 return-object v2 :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 const/4 p1, 0x0 return-object p1 .end method .method public findOpenDrawer()Landroid/view/View; .locals 5 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 :goto_0 if-ge v1, v0, :cond_1 invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v2 invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v3 check-cast v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v3, v3, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v4, 0x1 and-int/2addr v3, v4 if-ne v3, v4, :cond_0 return-object v2 :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 const/4 v0, 0x0 return-object v0 .end method .method public findVisibleDrawer()Landroid/view/View; .locals 4 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v1, 0x0 :goto_0 if-ge v1, v0, :cond_1 invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v2 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v3 if-eqz v3, :cond_0 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerVisible(Landroid/view/View;)Z move-result v3 if-eqz v3, :cond_0 return-object v2 :cond_0 add-int/lit8 v1, v1, 0x1 goto :goto_0 :cond_1 const/4 v0, 0x0 return-object v0 .end method .method public generateDefaultLayoutParams()Landroid/view/ViewGroup$LayoutParams; .locals 2 new-instance v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; const/4 v1, -0x1 invoke-direct {v0, v1, v1}, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->(II)V return-object v0 .end method .method public generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams; .locals 2 new-instance v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; move-result-object v1 invoke-direct {v0, v1, p1}, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->(Landroid/content/Context;Landroid/util/AttributeSet;)V return-object v0 .end method .method public generateLayoutParams(Landroid/view/ViewGroup$LayoutParams;)Landroid/view/ViewGroup$LayoutParams; .locals 1 instance-of v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; if-eqz v0, :cond_0 new-instance v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; invoke-direct {v0, p1}, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->(Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;)V goto :goto_0 :cond_0 instance-of v0, p1, Landroid/view/ViewGroup$MarginLayoutParams; if-eqz v0, :cond_1 new-instance v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; check-cast p1, Landroid/view/ViewGroup$MarginLayoutParams; invoke-direct {v0, p1}, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->(Landroid/view/ViewGroup$MarginLayoutParams;)V goto :goto_0 :cond_1 new-instance v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; invoke-direct {v0, p1}, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->(Landroid/view/ViewGroup$LayoutParams;)V :goto_0 return-object v0 .end method .method public getDrawerElevation()F .locals 1 sget-boolean v0, Landroidx/drawerlayout/widget/DrawerLayout;->SET_DRAWER_SHADOW_FROM_ELEVATION:Z if-eqz v0, :cond_0 iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerElevation:F return v0 :cond_0 const/4 v0, 0x0 return v0 .end method .method public getDrawerLockMode(I)I .locals 3 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 const/4 v1, 0x3 if-eq p1, v1, :cond_9 const/4 v2, 0x5 if-eq p1, v2, :cond_6 const v2, 0x800003 if-eq p1, v2, :cond_3 const v2, 0x800005 if-eq p1, v2, :cond_0 goto :goto_4 :cond_0 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I if-eq p1, v1, :cond_1 return p1 :cond_1 if-nez v0, :cond_2 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I goto :goto_0 :cond_2 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I :goto_0 if-eq p1, v1, :cond_c return p1 :cond_3 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I if-eq p1, v1, :cond_4 return p1 :cond_4 if-nez v0, :cond_5 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I goto :goto_1 :cond_5 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I :goto_1 if-eq p1, v1, :cond_c return p1 :cond_6 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I if-eq p1, v1, :cond_7 return p1 :cond_7 if-nez v0, :cond_8 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I goto :goto_2 :cond_8 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I :goto_2 if-eq p1, v1, :cond_c return p1 :cond_9 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I if-eq p1, v1, :cond_a return p1 :cond_a if-nez v0, :cond_b iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I goto :goto_3 :cond_b iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I :goto_3 if-eq p1, v1, :cond_c return p1 :cond_c :goto_4 const/4 p1, 0x0 return p1 .end method .method public getDrawerLockMode(Landroid/view/View;)I .locals 3 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerLockMode(I)I move-result p1 return p1 :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "View " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p1, " is not a drawer" invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public getDrawerTitle(I)Ljava/lang/CharSequence; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result p1 const/4 v0, 0x3 if-ne p1, v0, :cond_0 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mTitleLeft:Ljava/lang/CharSequence; return-object p1 :cond_0 const/4 v0, 0x5 if-ne p1, v0, :cond_1 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mTitleRight:Ljava/lang/CharSequence; return-object p1 :cond_1 const/4 p1, 0x0 return-object p1 .end method .method public getDrawerViewAbsoluteGravity(Landroid/view/View;)I .locals 1 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result p1 return p1 .end method .method public getDrawerViewOffset(Landroid/view/View;)F .locals 0 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F return p1 .end method .method public getStatusBarBackgroundDrawable()Landroid/graphics/drawable/Drawable; .locals 1 .annotation build Landroidx/annotation/Nullable; .end annotation iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; return-object v0 .end method .method public isContentView(Landroid/view/View;)Z .locals 0 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I if-nez p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 .end method .method public isDrawerOpen(I)Z .locals 0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object p1 if-eqz p1, :cond_0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerOpen(Landroid/view/View;)Z move-result p1 return p1 :cond_0 const/4 p1, 0x0 return p1 .end method .method public isDrawerOpen(Landroid/view/View;)Z .locals 3 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_1 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v0, 0x1 and-int/2addr p1, v0 if-ne p1, v0, :cond_0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return v0 :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "View " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p1, " is not a drawer" invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public isDrawerView(Landroid/view/View;)Z .locals 2 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v0, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-static {p1}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result p1 invoke-static {v0, p1}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result p1 and-int/lit8 v0, p1, 0x3 const/4 v1, 0x1 if-eqz v0, :cond_0 return v1 :cond_0 and-int/lit8 p1, p1, 0x5 if-eqz p1, :cond_1 return v1 :cond_1 const/4 p1, 0x0 return p1 .end method .method public isDrawerVisible(I)Z .locals 0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object p1 if-eqz p1, :cond_0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerVisible(Landroid/view/View;)Z move-result p1 return p1 :cond_0 const/4 p1, 0x0 return p1 .end method .method public isDrawerVisible(Landroid/view/View;)Z .locals 3 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_1 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F const/4 v0, 0x0 cmpl-float p1, p1, v0 if-lez p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 return p1 :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V const-string v2, "View " invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p1, " is not a drawer" invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public moveDrawerToOffset(Landroid/view/View;F)V .locals 2 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerViewOffset(Landroid/view/View;)F move-result v0 invoke-virtual {p1}, Landroid/view/View;->getWidth()I move-result v1 int-to-float v1, v1 mul-float v0, v0, v1 float-to-int v0, v0 mul-float v1, v1, p2 float-to-int v1, v1 sub-int/2addr v1, v0 const/4 v0, 0x3 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v0 if-eqz v0, :cond_0 goto :goto_0 :cond_0 neg-int v1, v1 :goto_0 invoke-virtual {p1, v1}, Landroid/view/View;->offsetLeftAndRight(I)V invoke-virtual {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerViewOffset(Landroid/view/View;F)V return-void .end method .method public onAttachedToWindow()V .locals 1 invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z return-void .end method .method public onDetachedFromWindow()V .locals 1 invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V const/4 v0, 0x1 iput-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z return-void .end method .method public onDraw(Landroid/graphics/Canvas;)V .locals 4 invoke-super {p0, p1}, Landroid/view/ViewGroup;->onDraw(Landroid/graphics/Canvas;)V iget-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawStatusBarBackground:Z if-eqz v0, :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; if-eqz v0, :cond_1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLastInsets:Ljava/lang/Object; const/4 v1, 0x0 if-eqz v0, :cond_0 check-cast v0, Landroid/view/WindowInsets; invoke-virtual {v0}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 if-lez v0, :cond_1 iget-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v3 invoke-virtual {v2, v1, v1, v3, v0}, Landroid/graphics/drawable/Drawable;->setBounds(IIII)V iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; invoke-virtual {v0, p1}, Landroid/graphics/drawable/Drawable;->draw(Landroid/graphics/Canvas;)V :cond_1 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-object v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v1, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z move-result v1 iget-object v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v2, p1}, Landroidx/customview/widget/ViewDragHelper;->shouldInterceptTouchEvent(Landroid/view/MotionEvent;)Z move-result v2 or-int/2addr v1, v2 const/4 v2, 0x1 const/4 v3, 0x0 if-eqz v0, :cond_3 if-eq v0, v2, :cond_1 const/4 p1, 0x2 const/4 v4, 0x3 if-eq v0, p1, :cond_0 if-eq v0, v4, :cond_1 goto :goto_0 :cond_0 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p1, v4}, Landroidx/customview/widget/ViewDragHelper;->checkTouchSlop(I)Z move-result p1 if-eqz p1, :cond_2 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-virtual {p1}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->removeCallbacks()V iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightCallback:Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback; invoke-virtual {p1}, Landroidx/drawerlayout/widget/DrawerLayout$ViewDragCallback;->removeCallbacks()V goto :goto_0 :cond_1 invoke-virtual {p0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers(Z)V iput-boolean v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z iput-boolean v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z :cond_2 :goto_0 const/4 p1, 0x0 goto :goto_2 :cond_3 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/drawerlayout/widget/DrawerLayout;->mInitialMotionX:F iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mInitialMotionY:F iget v4, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimOpacity:F const/4 v5, 0x0 cmpl-float v4, v4, v5 if-lez v4, :cond_4 iget-object v4, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; float-to-int v0, v0 float-to-int p1, p1 invoke-virtual {v4, v0, p1}, Landroidx/customview/widget/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View; move-result-object p1 if-eqz p1, :cond_4 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result p1 if-eqz p1, :cond_4 const/4 p1, 0x1 goto :goto_1 :cond_4 const/4 p1, 0x0 :goto_1 iput-boolean v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z iput-boolean v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z :goto_2 if-nez v1, :cond_6 if-nez p1, :cond_6 invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->hasPeekingDrawer()Z move-result p1 if-nez p1, :cond_6 iget-boolean p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z if-eqz p1, :cond_5 goto :goto_3 :cond_5 const/4 v2, 0x0 :cond_6 :goto_3 return v2 .end method .method public onKeyDown(ILandroid/view/KeyEvent;)Z .locals 1 const/4 v0, 0x4 if-ne p1, v0, :cond_0 invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->hasVisibleDrawer()Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p2}, Landroid/view/KeyEvent;->startTracking()V const/4 p1, 0x1 return p1 :cond_0 invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onKeyDown(ILandroid/view/KeyEvent;)Z move-result p1 return p1 .end method .method public onKeyUp(ILandroid/view/KeyEvent;)Z .locals 1 const/4 v0, 0x4 if-ne p1, v0, :cond_2 invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->findVisibleDrawer()Landroid/view/View; move-result-object p1 if-eqz p1, :cond_0 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerLockMode(Landroid/view/View;)I move-result p2 if-nez p2, :cond_0 invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers()V :cond_0 if-eqz p1, :cond_1 const/4 p1, 0x1 goto :goto_0 :cond_1 const/4 p1, 0x0 :goto_0 return p1 :cond_2 invoke-super {p0, p1, p2}, Landroid/view/ViewGroup;->onKeyUp(ILandroid/view/KeyEvent;)Z move-result p1 return p1 .end method .method public onLayout(ZIIII)V .locals 16 move-object/from16 v0, p0 const/4 v1, 0x1 iput-boolean v1, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mInLayout:Z sub-int v2, p4, p2 invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v3 const/4 v5, 0x0 :goto_0 if-ge v5, v3, :cond_b invoke-virtual {v0, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v6 invoke-virtual {v6}, Landroid/view/View;->getVisibility()I move-result v7 const/16 v8, 0x8 if-ne v7, v8, :cond_0 goto/16 :goto_6 :cond_0 invoke-virtual {v6}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v7 check-cast v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; invoke-virtual {v0, v6}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result v8 if-eqz v8, :cond_1 iget v8, v7, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I iget v9, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I move-result v10 add-int/2addr v10, v8 iget v7, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I move-result v11 add-int/2addr v11, v7 invoke-virtual {v6, v8, v9, v10, v11}, Landroid/view/View;->layout(IIII)V goto/16 :goto_6 :cond_1 invoke-virtual {v6}, Landroid/view/View;->getMeasuredWidth()I move-result v8 invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I move-result v9 const/4 v10, 0x3 invoke-virtual {v0, v6, v10}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result v10 if-eqz v10, :cond_2 neg-int v10, v8 int-to-float v11, v8 iget v12, v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F mul-float v12, v12, v11 float-to-int v12, v12 add-int/2addr v10, v12 add-int v12, v8, v10 int-to-float v12, v12 div-float/2addr v12, v11 goto :goto_1 :cond_2 int-to-float v10, v8 iget v11, v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F mul-float v11, v11, v10 float-to-int v11, v11 sub-int v11, v2, v11 sub-int v12, v2, v11 int-to-float v12, v12 div-float/2addr v12, v10 move v10, v11 :goto_1 iget v11, v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F cmpl-float v11, v12, v11 if-eqz v11, :cond_3 const/4 v11, 0x1 goto :goto_2 :cond_3 const/4 v11, 0x0 :goto_2 iget v13, v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I and-int/lit8 v13, v13, 0x70 const/16 v14, 0x10 if-eq v13, v14, :cond_5 const/16 v14, 0x50 if-eq v13, v14, :cond_4 iget v13, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I add-int/2addr v8, v10 add-int/2addr v9, v13 invoke-virtual {v6, v10, v13, v8, v9}, Landroid/view/View;->layout(IIII)V goto :goto_4 :cond_4 sub-int v9, p5, p3 iget v13, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I sub-int v13, v9, v13 invoke-virtual {v6}, Landroid/view/View;->getMeasuredHeight()I move-result v14 sub-int/2addr v13, v14 add-int/2addr v8, v10 iget v14, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I sub-int/2addr v9, v14 invoke-virtual {v6, v10, v13, v8, v9}, Landroid/view/View;->layout(IIII)V goto :goto_4 :cond_5 sub-int v13, p5, p3 sub-int v14, v13, v9 div-int/lit8 v14, v14, 0x2 iget v15, v7, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I if-ge v14, v15, :cond_6 move v14, v15 goto :goto_3 :cond_6 add-int v15, v14, v9 iget v1, v7, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I sub-int v4, v13, v1 if-le v15, v4, :cond_7 sub-int/2addr v13, v1 sub-int v14, v13, v9 :cond_7 :goto_3 add-int/2addr v8, v10 add-int/2addr v9, v14 invoke-virtual {v6, v10, v14, v8, v9}, Landroid/view/View;->layout(IIII)V :goto_4 if-eqz v11, :cond_8 invoke-virtual {v0, v6, v12}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerViewOffset(Landroid/view/View;F)V :cond_8 iget v1, v7, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F const/4 v4, 0x0 cmpl-float v1, v1, v4 if-lez v1, :cond_9 const/4 v1, 0x0 goto :goto_5 :cond_9 const/4 v1, 0x4 :goto_5 invoke-virtual {v6}, Landroid/view/View;->getVisibility()I move-result v4 if-eq v4, v1, :cond_a invoke-virtual {v6, v1}, Landroid/view/View;->setVisibility(I)V :cond_a :goto_6 add-int/lit8 v5, v5, 0x1 const/4 v1, 0x1 goto/16 :goto_0 :cond_b const/4 v1, 0x0 iput-boolean v1, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mInLayout:Z iput-boolean v1, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z return-void .end method .method public onMeasure(II)V .locals 16 .annotation build Landroid/annotation/SuppressLint; value = { "WrongConstant" } .end annotation move-object/from16 v0, p0 invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getMode(I)I move-result v1 invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getMode(I)I move-result v2 invoke-static/range {p1 .. p1}, Landroid/view/View$MeasureSpec;->getSize(I)I move-result v3 invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I move-result v4 const/high16 v5, 0x40000000 # 2.0f if-ne v1, v5, :cond_0 if-eq v2, v5, :cond_4 :cond_0 invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->isInEditMode()Z move-result v5 if-eqz v5, :cond_16 const/high16 v5, -0x80000000 if-ne v1, v5, :cond_1 goto :goto_0 :cond_1 if-nez v1, :cond_2 const/16 v3, 0x12c :cond_2 :goto_0 if-ne v2, v5, :cond_3 goto :goto_1 :cond_3 if-nez v2, :cond_4 const/16 v4, 0x12c :cond_4 :goto_1 invoke-virtual {v0, v3, v4}, Landroid/view/ViewGroup;->setMeasuredDimension(II)V iget-object v1, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mLastInsets:Ljava/lang/Object; const/4 v2, 0x0 if-eqz v1, :cond_5 invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z move-result v1 if-eqz v1, :cond_5 const/4 v1, 0x1 goto :goto_2 :cond_5 const/4 v1, 0x0 :goto_2 invoke-static/range {p0 .. p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v5 invoke-virtual/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v6 const/4 v7, 0x0 const/4 v8, 0x0 const/4 v9, 0x0 :goto_3 if-ge v7, v6, :cond_15 invoke-virtual {v0, v7}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v10 invoke-virtual {v10}, Landroid/view/View;->getVisibility()I move-result v11 const/16 v12, 0x8 if-ne v11, v12, :cond_6 goto/16 :goto_7 :cond_6 invoke-virtual {v10}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v11 check-cast v11, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; const/4 v12, 0x3 if-eqz v1, :cond_c iget v13, v11, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-static {v13, v5}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result v13 invoke-static {v10}, Landroidx/core/view/ViewCompat;->getFitsSystemWindows(Landroid/view/View;)Z move-result v14 const/4 v15, 0x5 if-eqz v14, :cond_9 iget-object v14, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mLastInsets:Ljava/lang/Object; check-cast v14, Landroid/view/WindowInsets; if-ne v13, v12, :cond_7 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetLeft()I move-result v12 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v13 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetBottom()I move-result v15 invoke-virtual {v14, v12, v13, v2, v15}, Landroid/view/WindowInsets;->replaceSystemWindowInsets(IIII)Landroid/view/WindowInsets; move-result-object v14 goto :goto_4 :cond_7 if-ne v13, v15, :cond_8 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v12 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetRight()I move-result v13 invoke-virtual {v14}, Landroid/view/WindowInsets;->getSystemWindowInsetBottom()I move-result v15 invoke-virtual {v14, v2, v12, v13, v15}, Landroid/view/WindowInsets;->replaceSystemWindowInsets(IIII)Landroid/view/WindowInsets; move-result-object v14 :cond_8 :goto_4 invoke-virtual {v10, v14}, Landroid/view/View;->dispatchApplyWindowInsets(Landroid/view/WindowInsets;)Landroid/view/WindowInsets; goto :goto_6 :cond_9 iget-object v12, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mLastInsets:Ljava/lang/Object; check-cast v12, Landroid/view/WindowInsets; const/4 v14, 0x3 if-ne v13, v14, :cond_a invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetLeft()I move-result v13 invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v14 invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetBottom()I move-result v15 invoke-virtual {v12, v13, v14, v2, v15}, Landroid/view/WindowInsets;->replaceSystemWindowInsets(IIII)Landroid/view/WindowInsets; move-result-object v12 goto :goto_5 :cond_a if-ne v13, v15, :cond_b invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v13 invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetRight()I move-result v14 invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetBottom()I move-result v15 invoke-virtual {v12, v2, v13, v14, v15}, Landroid/view/WindowInsets;->replaceSystemWindowInsets(IIII)Landroid/view/WindowInsets; move-result-object v12 :cond_b :goto_5 invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetLeft()I move-result v2 iput v2, v11, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetTop()I move-result v2 iput v2, v11, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetRight()I move-result v2 iput v2, v11, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I invoke-virtual {v12}, Landroid/view/WindowInsets;->getSystemWindowInsetBottom()I move-result v2 iput v2, v11, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I :cond_c :goto_6 invoke-virtual {v0, v10}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result v2 if-eqz v2, :cond_d iget v2, v11, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I sub-int v2, v3, v2 iget v12, v11, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I sub-int/2addr v2, v12 const/high16 v12, 0x40000000 # 2.0f invoke-static {v2, v12}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I move-result v2 iget v13, v11, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I sub-int v13, v4, v13 iget v11, v11, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I sub-int/2addr v13, v11 invoke-static {v13, v12}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I move-result v11 invoke-virtual {v10, v2, v11}, Landroid/view/View;->measure(II)V :goto_7 move/from16 v13, p1 move/from16 v14, p2 goto/16 :goto_b :cond_d invoke-virtual {v0, v10}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v2 if-eqz v2, :cond_14 sget-boolean v2, Landroidx/drawerlayout/widget/DrawerLayout;->SET_DRAWER_SHADOW_FROM_ELEVATION:Z if-eqz v2, :cond_e invoke-static {v10}, Landroidx/core/view/ViewCompat;->getElevation(Landroid/view/View;)F move-result v2 iget v12, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerElevation:F cmpl-float v2, v2, v12 if-eqz v2, :cond_e invoke-static {v10, v12}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V :cond_e invoke-virtual {v0, v10}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerViewAbsoluteGravity(Landroid/view/View;)I move-result v2 and-int/lit8 v2, v2, 0x7 const/4 v12, 0x3 if-ne v2, v12, :cond_f const/4 v12, 0x1 goto :goto_8 :cond_f const/4 v12, 0x0 :goto_8 if-eqz v12, :cond_10 if-nez v8, :cond_11 :cond_10 if-nez v12, :cond_12 if-nez v9, :cond_11 goto :goto_9 :cond_11 new-instance v1, Ljava/lang/IllegalStateException; const-string v3, "Child drawer has absolute gravity " invoke-static {v3}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v3 invoke-static {v2}, Landroidx/drawerlayout/widget/DrawerLayout;->gravityToString(I)Ljava/lang/String; move-result-object v2 invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v2, " but this " invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v2, "DrawerLayout" invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v2, " already has a " invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v2, "drawer view along that edge" invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v1 :cond_12 :goto_9 if-eqz v12, :cond_13 const/4 v8, 0x1 goto :goto_a :cond_13 const/4 v9, 0x1 :goto_a iget v2, v0, Landroidx/drawerlayout/widget/DrawerLayout;->mMinDrawerMargin:I iget v12, v11, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I add-int/2addr v2, v12 iget v12, v11, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I add-int/2addr v2, v12 iget v12, v11, Landroid/view/ViewGroup$MarginLayoutParams;->width:I move/from16 v13, p1 invoke-static {v13, v2, v12}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I move-result v2 iget v12, v11, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I iget v14, v11, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I add-int/2addr v12, v14 iget v11, v11, Landroid/view/ViewGroup$MarginLayoutParams;->height:I move/from16 v14, p2 invoke-static {v14, v12, v11}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I move-result v11 invoke-virtual {v10, v2, v11}, Landroid/view/View;->measure(II)V :goto_b add-int/lit8 v7, v7, 0x1 const/4 v2, 0x0 goto/16 :goto_3 :cond_14 new-instance v1, Ljava/lang/IllegalStateException; new-instance v2, Ljava/lang/StringBuilder; invoke-direct {v2}, Ljava/lang/StringBuilder;->()V const-string v3, "Child " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string v3, " at index " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v3, " does not have a valid layout_gravity - must be Gravity.LEFT, " invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v3, "Gravity.RIGHT or Gravity.NO_GRAVITY" invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v2 invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v1 :cond_15 return-void :cond_16 new-instance v1, Ljava/lang/IllegalArgumentException; const-string v2, "DrawerLayout must be measured with MeasureSpec.EXACTLY." invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v1 .end method .method public onRestoreInstanceState(Landroid/os/Parcelable;)V .locals 3 instance-of v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$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/drawerlayout/widget/DrawerLayout$SavedState; invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable; move-result-object v0 invoke-super {p0, v0}, Landroid/view/ViewGroup;->onRestoreInstanceState(Landroid/os/Parcelable;)V iget v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->openDrawerGravity:I if-eqz v0, :cond_1 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object v0 if-eqz v0, :cond_1 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(Landroid/view/View;)V :cond_1 iget v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeLeft:I const/4 v1, 0x3 if-eq v0, v1, :cond_2 invoke-virtual {p0, v0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V :cond_2 iget v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeRight:I if-eq v0, v1, :cond_3 const/4 v2, 0x5 invoke-virtual {p0, v0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V :cond_3 iget v0, p1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeStart:I if-eq v0, v1, :cond_4 const v2, 0x800003 invoke-virtual {p0, v0, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V :cond_4 iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeEnd:I if-eq p1, v1, :cond_5 const v0, 0x800005 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V :cond_5 return-void .end method .method public onRtlPropertiesChanged(I)V .locals 0 invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->resolveShadowDrawables()V return-void .end method .method public onSaveInstanceState()Landroid/os/Parcelable; .locals 9 invoke-super {p0}, Landroid/view/ViewGroup;->onSaveInstanceState()Landroid/os/Parcelable; move-result-object v0 new-instance v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState; invoke-direct {v1, v0}, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->(Landroid/os/Parcelable;)V invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 const/4 v2, 0x0 const/4 v3, 0x0 :goto_0 if-ge v3, v0, :cond_4 invoke-virtual {p0, v3}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v4 invoke-virtual {v4}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v4 check-cast v4, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v5, v4, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v6, 0x1 if-ne v5, v6, :cond_0 const/4 v5, 0x1 goto :goto_1 :cond_0 const/4 v5, 0x0 :goto_1 iget v7, v4, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 v8, 0x2 if-ne v7, v8, :cond_1 goto :goto_2 :cond_1 const/4 v6, 0x0 :goto_2 if-nez v5, :cond_3 if-eqz v6, :cond_2 goto :goto_3 :cond_2 add-int/lit8 v3, v3, 0x1 goto :goto_0 :cond_3 :goto_3 iget v0, v4, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I iput v0, v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->openDrawerGravity:I :cond_4 iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I iput v0, v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeLeft:I iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I iput v0, v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeRight:I iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I iput v0, v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeStart:I iget v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I iput v0, v1, Landroidx/drawerlayout/widget/DrawerLayout$SavedState;->lockModeEnd:I return-object v1 .end method .method public onTouchEvent(Landroid/view/MotionEvent;)Z .locals 6 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v0, p1}, Landroidx/customview/widget/ViewDragHelper;->processTouchEvent(Landroid/view/MotionEvent;)V invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I move-result v0 and-int/lit16 v0, v0, 0xff const/4 v1, 0x1 const/4 v2, 0x0 if-eqz v0, :cond_4 if-eq v0, v1, :cond_1 const/4 p1, 0x3 if-eq v0, p1, :cond_0 goto :goto_2 :cond_0 invoke-virtual {p0, v1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers(Z)V iput-boolean v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z iput-boolean v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z goto :goto_2 :cond_1 invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F move-result v0 invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F move-result p1 iget-object v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; float-to-int v4, v0 float-to-int v5, p1 invoke-virtual {v3, v4, v5}, Landroidx/customview/widget/ViewDragHelper;->findTopChildUnder(II)Landroid/view/View; move-result-object v3 if-eqz v3, :cond_3 invoke-virtual {p0, v3}, Landroidx/drawerlayout/widget/DrawerLayout;->isContentView(Landroid/view/View;)Z move-result v3 if-eqz v3, :cond_3 iget v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mInitialMotionX:F sub-float/2addr v0, v3 iget v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mInitialMotionY:F sub-float/2addr p1, v3 iget-object v3, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v3}, Landroidx/customview/widget/ViewDragHelper;->getTouchSlop()I move-result v3 mul-float v0, v0, v0 mul-float p1, p1, p1 add-float/2addr p1, v0 mul-int v3, v3, v3 int-to-float v0, v3 cmpg-float p1, p1, v0 if-gez p1, :cond_3 invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->findOpenDrawer()Landroid/view/View; move-result-object p1 if-eqz p1, :cond_3 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->getDrawerLockMode(Landroid/view/View;)I move-result p1 const/4 v0, 0x2 if-ne p1, v0, :cond_2 goto :goto_0 :cond_2 const/4 p1, 0x0 goto :goto_1 :cond_3 :goto_0 const/4 p1, 0x1 :goto_1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers(Z)V iput-boolean v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z goto :goto_2 :cond_4 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/drawerlayout/widget/DrawerLayout;->mInitialMotionX:F iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mInitialMotionY:F iput-boolean v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z iput-boolean v2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mChildrenCanceledTouch:Z :goto_2 return v1 .end method .method public openDrawer(I)V .locals 1 const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(IZ)V return-void .end method .method public openDrawer(IZ)V .locals 1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object v0 if-eqz v0, :cond_0 invoke-virtual {p0, v0, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(Landroid/view/View;Z)V return-void :cond_0 new-instance p2, Ljava/lang/IllegalArgumentException; const-string v0, "No drawer view found with gravity " invoke-static {v0}, Lf/e/c/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v0 invoke-static {p1}, Landroidx/drawerlayout/widget/DrawerLayout;->gravityToString(I)Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p2 .end method .method public openDrawer(Landroid/view/View;)V .locals 1 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param const/4 v0, 0x1 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(Landroid/view/View;Z)V return-void .end method .method public openDrawer(Landroid/view/View;Z)V .locals 3 .param p1 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_3 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget-boolean v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mFirstLayout:Z const/high16 v2, 0x3f800000 # 1.0f if-eqz v1, :cond_0 iput v2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F const/4 p2, 0x1 iput p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I invoke-direct {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->updateChildrenImportantForAccessibility(Landroid/view/View;Z)V goto :goto_0 :cond_0 const/4 v1, 0x0 if-eqz p2, :cond_2 iget p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I or-int/lit8 p2, p2, 0x2 iput p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->openState:I const/4 p2, 0x3 invoke-virtual {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->checkDrawerViewAbsoluteGravity(Landroid/view/View;I)Z move-result p2 if-eqz p2, :cond_1 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p1}, Landroid/view/View;->getTop()I move-result v0 invoke-virtual {p2, p1, v1, v0}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z goto :goto_0 :cond_1 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p0}, Landroid/view/ViewGroup;->getWidth()I move-result v0 invoke-virtual {p1}, Landroid/view/View;->getWidth()I move-result v1 sub-int/2addr v0, v1 invoke-virtual {p1}, Landroid/view/View;->getTop()I move-result v1 invoke-virtual {p2, p1, v0, v1}, Landroidx/customview/widget/ViewDragHelper;->smoothSlideViewTo(Landroid/view/View;II)Z goto :goto_0 :cond_2 invoke-virtual {p0, p1, v2}, Landroidx/drawerlayout/widget/DrawerLayout;->moveDrawerToOffset(Landroid/view/View;F)V iget p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-virtual {p0, p2, v1, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->updateDrawerState(IILandroid/view/View;)V invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V :goto_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void :cond_3 new-instance p2, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "View " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p1, " is not a sliding drawer" invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p2 .end method .method public removeDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V .locals 1 .param p1 # Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; .annotation build Landroidx/annotation/NonNull; .end annotation .end param if-nez p1, :cond_0 return-void :cond_0 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-nez v0, :cond_1 return-void :cond_1 invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z return-void .end method .method public requestDisallowInterceptTouchEvent(Z)V .locals 0 invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V iput-boolean p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDisallowInterceptRequested:Z if-eqz p1, :cond_0 const/4 p1, 0x1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawers(Z)V :cond_0 return-void .end method .method public requestLayout()V .locals 1 iget-boolean v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mInLayout:Z if-nez v0, :cond_0 invoke-super {p0}, Landroid/view/ViewGroup;->requestLayout()V :cond_0 return-void .end method .method public setChildInsets(Ljava/lang/Object;Z)V .locals 0 .annotation build Landroidx/annotation/RestrictTo; value = { .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope; } .end annotation iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLastInsets:Ljava/lang/Object; iput-boolean p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawStatusBarBackground:Z if-nez p2, :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getBackground()Landroid/graphics/drawable/Drawable; move-result-object p1 if-nez p1, :cond_0 const/4 p1, 0x1 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->setWillNotDraw(Z)V invoke-virtual {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->requestLayout()V return-void .end method .method public setDrawerElevation(F)V .locals 2 iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerElevation:F const/4 p1, 0x0 :goto_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I move-result v0 if-ge p1, v0, :cond_1 invoke-virtual {p0, p1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View; move-result-object v0 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v1 if-eqz v1, :cond_0 iget v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerElevation:F invoke-static {v0, v1}, Landroidx/core/view/ViewCompat;->setElevation(Landroid/view/View;F)V :cond_0 add-int/lit8 p1, p1, 0x1 goto :goto_0 :cond_1 return-void .end method .method public setDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V .locals 1 .annotation runtime Ljava/lang/Deprecated; .end annotation iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListener:Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; if-eqz v0, :cond_0 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->removeDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V :cond_0 if-eqz p1, :cond_1 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->addDrawerListener(Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;)V :cond_1 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListener:Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; return-void .end method .method public setDrawerLockMode(I)V .locals 1 const/4 v0, 0x3 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V const/4 v0, 0x5 invoke-virtual {p0, p1, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V return-void .end method .method public setDrawerLockMode(II)V .locals 3 invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 invoke-static {p2, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result v0 const/4 v1, 0x3 if-eq p2, v1, :cond_3 const/4 v2, 0x5 if-eq p2, v2, :cond_2 const v2, 0x800003 if-eq p2, v2, :cond_1 const v2, 0x800005 if-eq p2, v2, :cond_0 goto :goto_0 :cond_0 iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeEnd:I goto :goto_0 :cond_1 iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeStart:I goto :goto_0 :cond_2 iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeRight:I goto :goto_0 :cond_3 iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLockModeLeft:I :goto_0 if-eqz p1, :cond_5 if-ne v0, v1, :cond_4 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; goto :goto_1 :cond_4 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; :goto_1 invoke-virtual {p2}, Landroidx/customview/widget/ViewDragHelper;->cancel()V :cond_5 const/4 p2, 0x1 if-eq p1, p2, :cond_7 const/4 p2, 0x2 if-eq p1, p2, :cond_6 goto :goto_2 :cond_6 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object p1 if-eqz p1, :cond_8 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->openDrawer(Landroid/view/View;)V goto :goto_2 :cond_7 invoke-virtual {p0, v0}, Landroidx/drawerlayout/widget/DrawerLayout;->findDrawerWithGravity(I)Landroid/view/View; move-result-object p1 if-eqz p1, :cond_8 invoke-virtual {p0, p1}, Landroidx/drawerlayout/widget/DrawerLayout;->closeDrawer(Landroid/view/View;)V :cond_8 :goto_2 return-void .end method .method public setDrawerLockMode(ILandroid/view/View;)V .locals 2 .param p2 # Landroid/view/View; .annotation build Landroidx/annotation/NonNull; .end annotation .end param invoke-virtual {p0, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->isDrawerView(Landroid/view/View;)Z move-result v0 if-eqz v0, :cond_0 invoke-virtual {p2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p2 check-cast p2, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p2, p2, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->gravity:I invoke-virtual {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerLockMode(II)V return-void :cond_0 new-instance p1, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const-string v1, "View " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; const-string p2, " is not a " invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p2, "drawer with appropriate layout_gravity" invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p1 .end method .method public setDrawerShadow(II)V .locals 1 .param p1 # I .annotation build Landroidx/annotation/DrawableRes; .end annotation .end param invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; 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, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->setDrawerShadow(Landroid/graphics/drawable/Drawable;I)V return-void .end method .method public setDrawerShadow(Landroid/graphics/drawable/Drawable;I)V .locals 2 sget-boolean v0, Landroidx/drawerlayout/widget/DrawerLayout;->SET_DRAWER_SHADOW_FROM_ELEVATION:Z if-eqz v0, :cond_0 return-void :cond_0 const v0, 0x800003 and-int v1, p2, v0 if-ne v1, v0, :cond_1 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowStart:Landroid/graphics/drawable/Drawable; goto :goto_0 :cond_1 const v0, 0x800005 and-int v1, p2, v0 if-ne v1, v0, :cond_2 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowEnd:Landroid/graphics/drawable/Drawable; goto :goto_0 :cond_2 and-int/lit8 v0, p2, 0x3 const/4 v1, 0x3 if-ne v0, v1, :cond_3 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowLeft:Landroid/graphics/drawable/Drawable; goto :goto_0 :cond_3 const/4 v0, 0x5 and-int/2addr p2, v0 if-ne p2, v0, :cond_4 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mShadowRight:Landroid/graphics/drawable/Drawable; :goto_0 invoke-direct {p0}, Landroidx/drawerlayout/widget/DrawerLayout;->resolveShadowDrawables()V invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V :cond_4 return-void .end method .method public setDrawerTitle(ILjava/lang/CharSequence;)V .locals 1 .param p2 # Ljava/lang/CharSequence; .annotation build Landroidx/annotation/Nullable; .end annotation .end param invoke-static {p0}, Landroidx/core/view/ViewCompat;->getLayoutDirection(Landroid/view/View;)I move-result v0 invoke-static {p1, v0}, Landroidx/core/view/GravityCompat;->getAbsoluteGravity(II)I move-result p1 const/4 v0, 0x3 if-ne p1, v0, :cond_0 iput-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mTitleLeft:Ljava/lang/CharSequence; goto :goto_0 :cond_0 const/4 v0, 0x5 if-ne p1, v0, :cond_1 iput-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mTitleRight:Ljava/lang/CharSequence; :cond_1 :goto_0 return-void .end method .method public setDrawerViewOffset(Landroid/view/View;F)V .locals 2 invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object v0 check-cast v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget v1, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F cmpl-float v1, p2, v1 if-nez v1, :cond_0 return-void :cond_0 iput p2, v0, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F invoke-virtual {p0, p1, p2}, Landroidx/drawerlayout/widget/DrawerLayout;->dispatchOnDrawerSlide(Landroid/view/View;F)V return-void .end method .method public setScrimColor(I)V .locals 0 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param iput p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mScrimColor:I invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void .end method .method public setStatusBarBackground(I)V .locals 1 if-eqz p1, :cond_0 invoke-virtual {p0}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context; 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 goto :goto_0 :cond_0 const/4 p1, 0x0 :goto_0 iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void .end method .method public setStatusBarBackground(Landroid/graphics/drawable/Drawable;)V .locals 0 .param p1 # Landroid/graphics/drawable/Drawable; .annotation build Landroidx/annotation/Nullable; .end annotation .end param iput-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void .end method .method public setStatusBarBackgroundColor(I)V .locals 1 .param p1 # I .annotation build Landroidx/annotation/ColorInt; .end annotation .end param new-instance v0, Landroid/graphics/drawable/ColorDrawable; invoke-direct {v0, p1}, Landroid/graphics/drawable/ColorDrawable;->(I)V iput-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mStatusBarBackground:Landroid/graphics/drawable/Drawable; invoke-virtual {p0}, Landroid/view/ViewGroup;->invalidate()V return-void .end method .method public updateDrawerState(IILandroid/view/View;)V .locals 3 iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mLeftDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {p1}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I move-result p1 iget-object v0, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mRightDragger:Landroidx/customview/widget/ViewDragHelper; invoke-virtual {v0}, Landroidx/customview/widget/ViewDragHelper;->getViewDragState()I move-result v0 const/4 v1, 0x2 const/4 v2, 0x1 if-eq p1, v2, :cond_2 if-ne v0, v2, :cond_0 goto :goto_0 :cond_0 if-eq p1, v1, :cond_3 if-ne v0, v1, :cond_1 goto :goto_1 :cond_1 const/4 v1, 0x0 goto :goto_1 :cond_2 :goto_0 const/4 v1, 0x1 :cond_3 :goto_1 if-eqz p3, :cond_5 if-nez p2, :cond_5 invoke-virtual {p3}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams; move-result-object p1 check-cast p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams; iget p1, p1, Landroidx/drawerlayout/widget/DrawerLayout$LayoutParams;->onScreen:F const/4 p2, 0x0 cmpl-float p2, p1, p2 if-nez p2, :cond_4 invoke-virtual {p0, p3}, Landroidx/drawerlayout/widget/DrawerLayout;->dispatchOnDrawerClosed(Landroid/view/View;)V goto :goto_2 :cond_4 const/high16 p2, 0x3f800000 # 1.0f cmpl-float p1, p1, p2 if-nez p1, :cond_5 invoke-virtual {p0, p3}, Landroidx/drawerlayout/widget/DrawerLayout;->dispatchOnDrawerOpened(Landroid/view/View;)V :cond_5 :goto_2 iget p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerState:I if-eq v1, p1, :cond_6 iput v1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mDrawerState:I iget-object p1, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; if-eqz p1, :cond_6 invoke-interface {p1}, Ljava/util/List;->size()I move-result p1 sub-int/2addr p1, v2 :goto_3 if-ltz p1, :cond_6 iget-object p2, p0, Landroidx/drawerlayout/widget/DrawerLayout;->mListeners:Ljava/util/List; invoke-interface {p2, p1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object p2 check-cast p2, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener; invoke-interface {p2, v1}, Landroidx/drawerlayout/widget/DrawerLayout$DrawerListener;->onDrawerStateChanged(I)V add-int/lit8 p1, p1, -0x1 goto :goto_3 :cond_6 return-void .end method