1537 lines
		
	
	
		
			46 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			1537 lines
		
	
	
		
			46 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/material/navigation/NavigationView;
 | |
| .super Lcom/google/android/material/internal/ScrimInsetsFrameLayout;
 | |
| .source "NavigationView.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/android/material/navigation/NavigationView$SavedState;,
 | |
|         Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final CHECKED_STATE_SET:[I
 | |
| 
 | |
| .field private static final DEF_STYLE_RES:I
 | |
| 
 | |
| .field private static final DISABLED_STATE_SET:[I
 | |
| 
 | |
| .field private static final PRESENTER_NAVIGATION_VIEW_ID:I = 0x1
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public listener:Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;
 | |
| 
 | |
| .field private final maxWidth:I
 | |
| 
 | |
| .field private final menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private menuInflater:Landroid/view/MenuInflater;
 | |
| 
 | |
| .field private onGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
| .field private final presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
| .field private final tmpLocation:[I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 4
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     new-array v1, v0, [I
 | |
| 
 | |
|     const v2, 0x10100a0
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     aput v2, v1, v3
 | |
| 
 | |
|     .line 1
 | |
|     sput-object v1, Lcom/google/android/material/navigation/NavigationView;->CHECKED_STATE_SET:[I
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     const v1, -0x101009e
 | |
| 
 | |
|     aput v1, v0, v3
 | |
| 
 | |
|     .line 2
 | |
|     sput-object v0, Lcom/google/android/material/navigation/NavigationView;->DISABLED_STATE_SET:[I
 | |
| 
 | |
|     .line 3
 | |
|     sget v0, Lcom/google/android/material/R$style;->Widget_Design_NavigationView:I
 | |
| 
 | |
|     sput v0, Lcom/google/android/material/navigation/NavigationView;->DEF_STYLE_RES:I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, v0}, Lcom/google/android/material/navigation/NavigationView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
 | |
|     .locals 1
 | |
|     .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
 | |
| 
 | |
|     .line 2
 | |
|     sget v0, Lcom/google/android/material/R$attr;->navigationViewStyle:I
 | |
| 
 | |
|     invoke-direct {p0, p1, p2, v0}, Lcom/google/android/material/navigation/NavigationView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
|     .locals 10
 | |
|     .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
 | |
| 
 | |
|     .line 3
 | |
|     sget v6, Lcom/google/android/material/navigation/NavigationView;->DEF_STYLE_RES:I
 | |
| 
 | |
|     invoke-static {p1, p2, p3, v6}, Lcom/google/android/material/theme/overlay/MaterialThemeOverlay;->wrap(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {p0, p1, p2, p3}, Lcom/google/android/material/internal/ScrimInsetsFrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
 | |
| 
 | |
|     .line 4
 | |
|     new-instance p1, Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-direct {p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;-><init>()V
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     .line 5
 | |
|     iput-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->tmpLocation:[I
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v7
 | |
| 
 | |
|     .line 7
 | |
|     new-instance v8, Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     invoke-direct {v8, v7}, Lcom/google/android/material/internal/NavigationMenu;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     iput-object v8, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     .line 8
 | |
|     sget-object v2, Lcom/google/android/material/R$styleable;->NavigationView:[I
 | |
| 
 | |
|     const/4 v9, 0x0
 | |
| 
 | |
|     new-array v5, v9, [I
 | |
| 
 | |
|     move-object v0, v7
 | |
| 
 | |
|     move-object v1, p2
 | |
| 
 | |
|     move v3, p3
 | |
| 
 | |
|     move v4, v6
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainTintedStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroidx/appcompat/widget/j0;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 10
 | |
|     sget v1, Lcom/google/android/material/R$styleable;->NavigationView_android_background:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v0, v1}, Landroidx/appcompat/widget/j0;->h(I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-static {p0, v1}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 12
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     instance-of v1, v1, Landroid/graphics/drawable/ColorDrawable;
 | |
| 
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     .line 13
 | |
|     :cond_1
 | |
|     invoke-static {v7, p2, p3, v6}, Lcom/google/android/material/shape/ShapeAppearanceModel;->builder(Landroid/content/Context;Landroid/util/AttributeSet;II)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->build()Lcom/google/android/material/shape/ShapeAppearanceModel;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 14
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 15
 | |
|     new-instance v1, Lcom/google/android/material/shape/MaterialShapeDrawable;
 | |
| 
 | |
|     invoke-direct {v1, p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
 | |
| 
 | |
|     .line 16
 | |
|     instance-of p2, p3, Landroid/graphics/drawable/ColorDrawable;
 | |
| 
 | |
|     if-eqz p2, :cond_2
 | |
| 
 | |
|     .line 17
 | |
|     check-cast p3, Landroid/graphics/drawable/ColorDrawable;
 | |
| 
 | |
|     .line 18
 | |
|     invoke-virtual {p3}, Landroid/graphics/drawable/ColorDrawable;->getColor()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-static {p2}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {v1, p2}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 20
 | |
|     :cond_2
 | |
|     invoke-virtual {v1, v7}, Lcom/google/android/material/shape/MaterialShapeDrawable;->initializeElevationOverlay(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 21
 | |
|     invoke-static {p0, v1}, Landroidx/core/view/ViewCompat;->I1(Landroid/view/View;Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 22
 | |
|     :cond_3
 | |
|     sget p2, Lcom/google/android/material/R$styleable;->NavigationView_elevation:I
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-eqz p3, :cond_4
 | |
| 
 | |
|     .line 23
 | |
|     invoke-virtual {v0, p2, v9}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     int-to-float p2, p2
 | |
| 
 | |
|     invoke-virtual {p0, p2}, Lcom/google/android/material/navigation/NavigationView;->setElevation(F)V
 | |
| 
 | |
|     .line 24
 | |
|     :cond_4
 | |
|     sget p2, Lcom/google/android/material/R$styleable;->NavigationView_android_fitsSystemWindows:I
 | |
| 
 | |
|     invoke-virtual {v0, p2, v9}, Landroidx/appcompat/widget/j0;->a(IZ)Z
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-virtual {p0, p2}, Landroid/widget/FrameLayout;->setFitsSystemWindows(Z)V
 | |
| 
 | |
|     .line 25
 | |
|     sget p2, Lcom/google/android/material/R$styleable;->NavigationView_android_maxWidth:I
 | |
| 
 | |
|     invoke-virtual {v0, p2, v9}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     iput p2, p0, Lcom/google/android/material/navigation/NavigationView;->maxWidth:I
 | |
| 
 | |
|     .line 26
 | |
|     sget p2, Lcom/google/android/material/R$styleable;->NavigationView_itemIconTint:I
 | |
| 
 | |
|     invoke-virtual {v0, p2}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-eqz p3, :cond_5
 | |
| 
 | |
|     .line 27
 | |
|     invoke-virtual {v0, p2}, Landroidx/appcompat/widget/j0;->d(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_5
 | |
|     const p2, 0x1010038
 | |
| 
 | |
|     .line 28
 | |
|     invoke-direct {p0, p2}, Lcom/google/android/material/navigation/NavigationView;->createDefaultColorStateList(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 29
 | |
|     :goto_0
 | |
|     sget p3, Lcom/google/android/material/R$styleable;->NavigationView_itemTextAppearance:I
 | |
| 
 | |
|     invoke-virtual {v0, p3}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     if-eqz v1, :cond_6
 | |
| 
 | |
|     .line 30
 | |
|     invoke-virtual {v0, p3, v9}, Landroidx/appcompat/widget/j0;->u(II)I
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     move v1, v2
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_6
 | |
|     move p3, v9
 | |
| 
 | |
|     move v1, p3
 | |
| 
 | |
|     .line 31
 | |
|     :goto_1
 | |
|     sget v3, Lcom/google/android/material/R$styleable;->NavigationView_itemIconSize:I
 | |
| 
 | |
|     invoke-virtual {v0, v3}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-eqz v4, :cond_7
 | |
| 
 | |
|     .line 32
 | |
|     invoke-virtual {v0, v3, v9}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     invoke-virtual {p0, v3}, Lcom/google/android/material/navigation/NavigationView;->setItemIconSize(I)V
 | |
| 
 | |
|     :cond_7
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     .line 33
 | |
|     sget v4, Lcom/google/android/material/R$styleable;->NavigationView_itemTextColor:I
 | |
| 
 | |
|     invoke-virtual {v0, v4}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     if-eqz v5, :cond_8
 | |
| 
 | |
|     .line 34
 | |
|     invoke-virtual {v0, v4}, Landroidx/appcompat/widget/j0;->d(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     :cond_8
 | |
|     if-nez v1, :cond_9
 | |
| 
 | |
|     if-nez v3, :cond_9
 | |
| 
 | |
|     const v3, 0x1010036
 | |
| 
 | |
|     .line 35
 | |
|     invoke-direct {p0, v3}, Lcom/google/android/material/navigation/NavigationView;->createDefaultColorStateList(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     .line 36
 | |
|     :cond_9
 | |
|     sget v4, Lcom/google/android/material/R$styleable;->NavigationView_itemBackground:I
 | |
| 
 | |
|     invoke-virtual {v0, v4}, Landroidx/appcompat/widget/j0;->h(I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     if-nez v4, :cond_a
 | |
| 
 | |
|     .line 37
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/navigation/NavigationView;->hasShapeAppearance(Landroidx/appcompat/widget/j0;)Z
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     if-eqz v5, :cond_a
 | |
| 
 | |
|     .line 38
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/navigation/NavigationView;->createDefaultItemBackground(Landroidx/appcompat/widget/j0;)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v4
 | |
| 
 | |
|     .line 39
 | |
|     :cond_a
 | |
|     sget v5, Lcom/google/android/material/R$styleable;->NavigationView_itemHorizontalPadding:I
 | |
| 
 | |
|     invoke-virtual {v0, v5}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     if-eqz v6, :cond_b
 | |
| 
 | |
|     .line 40
 | |
|     invoke-virtual {v0, v5, v9}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     .line 41
 | |
|     invoke-virtual {p1, v5}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemHorizontalPadding(I)V
 | |
| 
 | |
|     .line 42
 | |
|     :cond_b
 | |
|     sget v5, Lcom/google/android/material/R$styleable;->NavigationView_itemIconPadding:I
 | |
| 
 | |
|     .line 43
 | |
|     invoke-virtual {v0, v5, v9}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     .line 44
 | |
|     sget v6, Lcom/google/android/material/R$styleable;->NavigationView_itemMaxLines:I
 | |
| 
 | |
|     invoke-virtual {v0, v6, v2}, Landroidx/appcompat/widget/j0;->o(II)I
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     invoke-virtual {p0, v6}, Lcom/google/android/material/navigation/NavigationView;->setItemMaxLines(I)V
 | |
| 
 | |
|     .line 45
 | |
|     new-instance v6, Lcom/google/android/material/navigation/NavigationView$1;
 | |
| 
 | |
|     invoke-direct {v6, p0}, Lcom/google/android/material/navigation/NavigationView$1;-><init>(Lcom/google/android/material/navigation/NavigationView;)V
 | |
| 
 | |
|     invoke-virtual {v8, v6}, Landroidx/appcompat/view/menu/d;->setCallback(Landroidx/appcompat/view/menu/d$a;)V
 | |
| 
 | |
|     .line 46
 | |
|     invoke-virtual {p1, v2}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setId(I)V
 | |
| 
 | |
|     .line 47
 | |
|     invoke-virtual {p1, v7, v8}, Lcom/google/android/material/internal/NavigationMenuPresenter;->initForMenu(Landroid/content/Context;Landroidx/appcompat/view/menu/d;)V
 | |
| 
 | |
|     .line 48
 | |
|     invoke-virtual {p1, p2}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconTintList(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 49
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getOverScrollMode()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setOverScrollMode(I)V
 | |
| 
 | |
|     if-eqz v1, :cond_c
 | |
| 
 | |
|     .line 50
 | |
|     invoke-virtual {p1, p3}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemTextAppearance(I)V
 | |
| 
 | |
|     .line 51
 | |
|     :cond_c
 | |
|     invoke-virtual {p1, v3}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemTextColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 52
 | |
|     invoke-virtual {p1, v4}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemBackground(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     .line 53
 | |
|     invoke-virtual {p1, v5}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconPadding(I)V
 | |
| 
 | |
|     .line 54
 | |
|     invoke-virtual {v8, p1}, Landroidx/appcompat/view/menu/d;->addMenuPresenter(Landroidx/appcompat/view/menu/i;)V
 | |
| 
 | |
|     .line 55
 | |
|     invoke-virtual {p1, p0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getMenuView(Landroid/view/ViewGroup;)Landroidx/appcompat/view/menu/j;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroid/view/View;
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
 | |
| 
 | |
|     .line 56
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->NavigationView_menu:I
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     if-eqz p2, :cond_d
 | |
| 
 | |
|     .line 57
 | |
|     invoke-virtual {v0, p1, v9}, Landroidx/appcompat/widget/j0;->u(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationView;->inflateMenu(I)V
 | |
| 
 | |
|     .line 58
 | |
|     :cond_d
 | |
|     sget p1, Lcom/google/android/material/R$styleable;->NavigationView_headerLayout:I
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     if-eqz p2, :cond_e
 | |
| 
 | |
|     .line 59
 | |
|     invoke-virtual {v0, p1, v9}, Landroidx/appcompat/widget/j0;->u(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationView;->inflateHeaderView(I)Landroid/view/View;
 | |
| 
 | |
|     .line 60
 | |
|     :cond_e
 | |
|     invoke-virtual {v0}, Landroidx/appcompat/widget/j0;->I()V
 | |
| 
 | |
|     .line 61
 | |
|     invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationView;->setupInsetScrimsListener()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$000(Lcom/google/android/material/navigation/NavigationView;)[I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p0, p0, Lcom/google/android/material/navigation/NavigationView;->tmpLocation:[I
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$100(Lcom/google/android/material/navigation/NavigationView;)Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private createDefaultColorStateList(I)Landroid/content/res/ColorStateList;
 | |
|     .locals 10
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroid/util/TypedValue;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     invoke-virtual {v1, p1, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     iget v3, v0, Landroid/util/TypedValue;->resourceId:I
 | |
| 
 | |
|     invoke-static {p1, v3}, Lg/a;->c(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v3}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     sget v4, Landroidx/appcompat/R$attr;->colorPrimary:I
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v3, v4, v0, v2}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     if-nez v3, :cond_1
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     iget v0, v0, Landroid/util/TypedValue;->data:I
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1}, Landroid/content/res/ColorStateList;->getDefaultColor()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     .line 9
 | |
|     new-instance v3, Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     const/4 v4, 0x3
 | |
| 
 | |
|     new-array v5, v4, [[I
 | |
| 
 | |
|     sget-object v6, Lcom/google/android/material/navigation/NavigationView;->DISABLED_STATE_SET:[I
 | |
| 
 | |
|     const/4 v7, 0x0
 | |
| 
 | |
|     aput-object v6, v5, v7
 | |
| 
 | |
|     sget-object v8, Lcom/google/android/material/navigation/NavigationView;->CHECKED_STATE_SET:[I
 | |
| 
 | |
|     aput-object v8, v5, v2
 | |
| 
 | |
|     sget-object v8, Landroid/widget/FrameLayout;->EMPTY_STATE_SET:[I
 | |
| 
 | |
|     const/4 v9, 0x2
 | |
| 
 | |
|     aput-object v8, v5, v9
 | |
| 
 | |
|     new-array v4, v4, [I
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {p1, v6, v1}, Landroid/content/res/ColorStateList;->getColorForState([II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     aput p1, v4, v7
 | |
| 
 | |
|     aput v0, v4, v2
 | |
| 
 | |
|     aput v1, v4, v9
 | |
| 
 | |
|     invoke-direct {v3, v5, v4}, Landroid/content/res/ColorStateList;-><init>([[I[I)V
 | |
| 
 | |
|     return-object v3
 | |
| .end method
 | |
| 
 | |
| .method private final createDefaultItemBackground(Landroidx/appcompat/widget/j0;)Landroid/graphics/drawable/Drawable;
 | |
|     .locals 9
 | |
|     .param p1    # Landroidx/appcompat/widget/j0;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeAppearance:I
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/j0;->u(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     sget v2, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeAppearanceOverlay:I
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1, v2, v1}, Landroidx/appcompat/widget/j0;->u(II)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v4, Lcom/google/android/material/shape/MaterialShapeDrawable;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v3, v0, v2}, Lcom/google/android/material/shape/ShapeAppearanceModel;->builder(Landroid/content/Context;II)Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/shape/ShapeAppearanceModel$Builder;->build()Lcom/google/android/material/shape/ShapeAppearanceModel;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {v4, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;-><init>(Lcom/google/android/material/shape/ShapeAppearanceModel;)V
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sget v2, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeFillColor:I
 | |
| 
 | |
|     .line 9
 | |
|     invoke-static {v0, p1, v2}, Lcom/google/android/material/resources/MaterialResources;->getColorStateList(Landroid/content/Context;Landroidx/appcompat/widget/j0;I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v4, v0}, Lcom/google/android/material/shape/MaterialShapeDrawable;->setFillColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     .line 11
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeInsetStart:I
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v5
 | |
| 
 | |
|     .line 12
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeInsetTop:I
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     .line 13
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeInsetEnd:I
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v7
 | |
| 
 | |
|     .line 14
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeInsetBottom:I
 | |
| 
 | |
|     invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/j0;->g(II)I
 | |
| 
 | |
|     move-result v8
 | |
| 
 | |
|     .line 15
 | |
|     new-instance p1, Landroid/graphics/drawable/InsetDrawable;
 | |
| 
 | |
|     move-object v3, p1
 | |
| 
 | |
|     invoke-direct/range {v3 .. v8}, Landroid/graphics/drawable/InsetDrawable;-><init>(Landroid/graphics/drawable/Drawable;IIII)V
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method private getMenuInflater()Landroid/view/MenuInflater;
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menuInflater:Landroid/view/MenuInflater;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Li/h;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-direct {v0, v1}, Li/h;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menuInflater:Landroid/view/MenuInflater;
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menuInflater:Landroid/view/MenuInflater;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method private hasShapeAppearance(Landroidx/appcompat/widget/j0;)Z
 | |
|     .locals 1
 | |
|     .param p1    # Landroidx/appcompat/widget/j0;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeAppearance:I
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     sget v0, Lcom/google/android/material/R$styleable;->NavigationView_itemShapeAppearanceOverlay:I
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1, v0}, Landroidx/appcompat/widget/j0;->C(I)Z
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     const/4 p1, 0x1
 | |
| 
 | |
|     :goto_1
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method private setupInsetScrimsListener()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/android/material/navigation/NavigationView$2;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/navigation/NavigationView$2;-><init>(Lcom/google/android/material/navigation/NavigationView;)V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->onGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/navigation/NavigationView;->onGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->addOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public addHeaderView(Landroid/view/View;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->addHeaderView(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getCheckedItem()Landroid/view/MenuItem;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getCheckedItem()Landroidx/appcompat/view/menu/g;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getHeaderCount()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getHeaderCount()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getHeaderView(I)Landroid/view/View;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getHeaderView(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public getItemBackground()Landroid/graphics/drawable/Drawable;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemBackground()Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getItemHorizontalPadding()I
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemHorizontalPadding()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getItemIconPadding()I
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Dimension;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemIconPadding()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getItemIconTintList()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemTintList()Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getItemMaxLines()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemMaxLines()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getItemTextColor()Landroid/content/res/ColorStateList;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->getItemTextColor()Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getMenu()Landroid/view/Menu;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public inflateHeaderView(I)Landroid/view/View;
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/LayoutRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->inflateHeaderView(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public inflateMenu(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setUpdateSuspended(Z)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/navigation/NavigationView;->getMenuInflater()Landroid/view/MenuInflater;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     invoke-virtual {v0, p1, v1}, Landroid/view/MenuInflater;->inflate(ILandroid/view/Menu;)V
 | |
| 
 | |
|     .line 3
 | |
|     iget-object p1, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setUpdateSuspended(Z)V
 | |
| 
 | |
|     .line 4
 | |
|     iget-object p1, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Lcom/google/android/material/internal/NavigationMenuPresenter;->updateMenuView(Z)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onAttachedToWindow()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/internal/ScrimInsetsFrameLayout;->onAttachedToWindow()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0}, Lcom/google/android/material/shape/MaterialShapeUtils;->setParentAbsoluteElevation(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onDetachedFromWindow()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/internal/ScrimInsetsFrameLayout;->onDetachedFromWindow()V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/navigation/NavigationView;->onGlobalLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/view/ViewTreeObserver;->removeOnGlobalLayoutListener(Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onInsetsChanged(Landroidx/core/view/WindowInsetsCompat;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroidx/core/view/WindowInsetsCompat;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/RestrictTo;
 | |
|         value = {
 | |
|             .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->dispatchApplyWindowInsets(Landroidx/core/view/WindowInsetsCompat;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onMeasure(II)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Landroid/view/View$MeasureSpec;->getMode(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/high16 v1, -0x80000000
 | |
| 
 | |
|     const/high16 v2, 0x40000000    # 2.0f
 | |
| 
 | |
|     if-eq v0, v1, :cond_1
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     iget p1, p0, Lcom/google/android/material/navigation/NavigationView;->maxWidth:I
 | |
| 
 | |
|     invoke-static {p1, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     iget v0, p0, Lcom/google/android/material/navigation/NavigationView;->maxWidth:I
 | |
| 
 | |
|     invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1, v2}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     .line 5
 | |
|     :goto_0
 | |
|     invoke-super {p0, p1, p2}, Landroid/widget/FrameLayout;->onMeasure(II)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onRestoreInstanceState(Landroid/os/Parcelable;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     instance-of v0, p1, Lcom/google/android/material/navigation/NavigationView$SavedState;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onRestoreInstanceState(Landroid/os/Parcelable;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     check-cast p1, Lcom/google/android/material/navigation/NavigationView$SavedState;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1}, Landroidx/customview/view/AbsSavedState;->getSuperState()Landroid/os/Parcelable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-super {p0, v0}, Landroid/widget/FrameLayout;->onRestoreInstanceState(Landroid/os/Parcelable;)V
 | |
| 
 | |
|     .line 5
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     iget-object p1, p1, Lcom/google/android/material/navigation/NavigationView$SavedState;->menuState:Landroid/os/Bundle;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroidx/appcompat/view/menu/d;->restorePresenterStates(Landroid/os/Bundle;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onSaveInstanceState()Landroid/os/Parcelable;
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Landroid/widget/FrameLayout;->onSaveInstanceState()Landroid/os/Parcelable;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Lcom/google/android/material/navigation/NavigationView$SavedState;
 | |
| 
 | |
|     invoke-direct {v1, v0}, Lcom/google/android/material/navigation/NavigationView$SavedState;-><init>(Landroid/os/Parcelable;)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Landroid/os/Bundle;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
 | |
| 
 | |
|     iput-object v0, v1, Lcom/google/android/material/navigation/NavigationView$SavedState;->menuState:Landroid/os/Bundle;
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v2, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     invoke-virtual {v2, v0}, Landroidx/appcompat/view/menu/d;->savePresenterStates(Landroid/os/Bundle;)V
 | |
| 
 | |
|     return-object v1
 | |
| .end method
 | |
| 
 | |
| .method public removeHeaderView(Landroid/view/View;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->removeHeaderView(Landroid/view/View;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedItem(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/IdRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroidx/appcompat/view/menu/d;->findItem(I)Landroid/view/MenuItem;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     check-cast p1, Landroidx/appcompat/view/menu/g;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setCheckedItem(Landroidx/appcompat/view/menu/g;)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setCheckedItem(Landroid/view/MenuItem;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/view/MenuItem;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->menu:Lcom/google/android/material/internal/NavigationMenu;
 | |
| 
 | |
|     invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroidx/appcompat/view/menu/d;->findItem(I)Landroid/view/MenuItem;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     check-cast p1, Landroidx/appcompat/view/menu/g;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setCheckedItem(Landroidx/appcompat/view/menu/g;)V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v0, "Called setCheckedItem(MenuItem) with an item that is not in the current menu."
 | |
| 
 | |
|     invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public setElevation(F)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setElevation(F)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0, p1}, Lcom/google/android/material/shape/MaterialShapeUtils;->setElevation(Landroid/view/View;F)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemBackground(Landroid/graphics/drawable/Drawable;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/drawable/Drawable;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemBackground(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemBackgroundResource(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DrawableRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0, p1}, Landroidx/core/content/d;->i(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/navigation/NavigationView;->setItemBackground(Landroid/graphics/drawable/Drawable;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemHorizontalPadding(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/Dimension;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemHorizontalPadding(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemHorizontalPaddingResource(I)V
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/DimenRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemHorizontalPadding(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemIconPadding(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/Dimension;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconPadding(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemIconPaddingResource(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {p0}, Landroid/widget/FrameLayout;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Landroid/content/res/Resources;->getDimensionPixelSize(I)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconPadding(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemIconSize(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/Dimension;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconSize(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemIconTintList(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemIconTintList(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemMaxLines(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemMaxLines(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemTextAppearance(I)V
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StyleRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemTextAppearance(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setItemTextColor(Landroid/content/res/ColorStateList;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setItemTextColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setNavigationItemSelectedListener(Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;)V
 | |
|     .locals 0
 | |
|     .param p1    # Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/android/material/navigation/NavigationView;->listener:Lcom/google/android/material/navigation/NavigationView$OnNavigationItemSelectedListener;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setOverScrollMode(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setOverScrollMode(I)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/navigation/NavigationView;->presenter:Lcom/google/android/material/internal/NavigationMenuPresenter;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/internal/NavigationMenuPresenter;->setOverScrollMode(I)V
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 |