927 lines
		
	
	
		
			27 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			927 lines
		
	
	
		
			27 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Lcom/google/android/material/snackbar/Snackbar;
 | |
| .super Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| .source "Snackbar.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/android/material/snackbar/Snackbar$SnackbarLayout;,
 | |
|         Lcom/google/android/material/snackbar/Snackbar$Callback;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "Lcom/google/android/material/snackbar/BaseTransientBottomBar<",
 | |
|         "Lcom/google/android/material/snackbar/Snackbar;",
 | |
|         ">;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final SNACKBAR_BUTTON_STYLE_ATTR:[I
 | |
| 
 | |
| .field private static final SNACKBAR_CONTENT_STYLE_ATTRS:[I
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private callback:Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback<",
 | |
|             "Lcom/google/android/material/snackbar/Snackbar;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private hasAction:Z
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 4
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     new-array v1, v0, [I
 | |
| 
 | |
|     .line 1
 | |
|     sget v2, Lcom/google/android/material/R$attr;->snackbarButtonStyle:I
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     aput v2, v1, v3
 | |
| 
 | |
|     sput-object v1, Lcom/google/android/material/snackbar/Snackbar;->SNACKBAR_BUTTON_STYLE_ATTR:[I
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     new-array v1, v1, [I
 | |
| 
 | |
|     aput v2, v1, v3
 | |
| 
 | |
|     .line 2
 | |
|     sget v2, Lcom/google/android/material/R$attr;->snackbarTextViewStyle:I
 | |
| 
 | |
|     aput v2, v1, v0
 | |
| 
 | |
|     sput-object v1, Lcom/google/android/material/snackbar/Snackbar;->SNACKBAR_CONTENT_STYLE_ATTRS:[I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
|     .locals 0
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/view/ViewGroup;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p4    # Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1, p2, p3, p4}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     const-string p2, "accessibility"
 | |
| 
 | |
|     invoke-virtual {p1, p2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     check-cast p1, Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     iput-object p1, p0, Lcom/google/android/material/snackbar/Snackbar;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private static findSuitableParent(Landroid/view/View;)Landroid/view/ViewGroup;
 | |
|     .locals 3
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     move-object v1, v0
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     instance-of v2, p0, Landroidx/coordinatorlayout/widget/CoordinatorLayout;
 | |
| 
 | |
|     if-eqz v2, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     check-cast p0, Landroid/view/ViewGroup;
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     instance-of v2, p0, Landroid/widget/FrameLayout;
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/view/View;->getId()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const v2, 0x1020002
 | |
| 
 | |
|     if-ne v1, v2, :cond_2
 | |
| 
 | |
|     .line 5
 | |
|     check-cast p0, Landroid/view/ViewGroup;
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_2
 | |
|     move-object v1, p0
 | |
| 
 | |
|     check-cast v1, Landroid/view/ViewGroup;
 | |
| 
 | |
|     :cond_3
 | |
|     if-eqz p0, :cond_5
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 8
 | |
|     instance-of v2, p0, Landroid/view/View;
 | |
| 
 | |
|     if-eqz v2, :cond_4
 | |
| 
 | |
|     check-cast p0, Landroid/view/View;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_4
 | |
|     move-object p0, v0
 | |
| 
 | |
|     :cond_5
 | |
|     :goto_0
 | |
|     if-nez p0, :cond_0
 | |
| 
 | |
|     return-object v1
 | |
| .end method
 | |
| 
 | |
| .method public static hasSnackbarButtonStyleAttr(Landroid/content/Context;)Z
 | |
|     .locals 3
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/android/material/snackbar/Snackbar;->SNACKBAR_BUTTON_STYLE_ATTR:[I
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     if-eq v2, v1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     :cond_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private static hasSnackbarContentStyleAttrs(Landroid/content/Context;)Z
 | |
|     .locals 5
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/android/material/snackbar/Snackbar;->SNACKBAR_CONTENT_STYLE_ATTRS:[I
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     const/4 v1, -0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, v3, v1}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     if-eq v2, v1, :cond_0
 | |
| 
 | |
|     if-eq v4, v1, :cond_0
 | |
| 
 | |
|     move v0, v3
 | |
| 
 | |
|     :cond_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public static make(Landroid/content/Context;Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 0
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {p0, p1, p2, p3}, Lcom/google/android/material/snackbar/Snackbar;->makeInternal(Landroid/content/Context;Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static make(Landroid/view/View;II)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StringRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources;->getText(I)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p0, p1, p2}, Lcom/google/android/material/snackbar/Snackbar;->make(Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static make(Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {v0, p0, p1, p2}, Lcom/google/android/material/snackbar/Snackbar;->makeInternal(Landroid/content/Context;Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method private static makeInternal(Landroid/content/Context;Landroid/view/View;Ljava/lang/CharSequence;I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 3
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p1    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Lcom/google/android/material/snackbar/Snackbar;->findSuitableParent(Landroid/view/View;)Landroid/view/ViewGroup;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     if-eqz p1, :cond_2
 | |
| 
 | |
|     if-nez p0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0}, Lcom/google/android/material/snackbar/Snackbar;->hasSnackbarContentStyleAttrs(Landroid/content/Context;)Z
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     sget v1, Lcom/google/android/material/R$layout;->mtrl_layout_snackbar_include:I
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     sget v1, Lcom/google/android/material/R$layout;->design_layout_snackbar_include:I
 | |
| 
 | |
|     :goto_0
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0, v1, p1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     invoke-direct {v1, p0, p1, v0, v0}, Lcom/google/android/material/snackbar/Snackbar;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v1, p2}, Lcom/google/android/material/snackbar/Snackbar;->setText(Ljava/lang/CharSequence;)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v1, p3}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->setDuration(I)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     .line 9
 | |
|     :cond_2
 | |
|     new-instance p0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p1, "No suitable parent found from the given view. Please provide a valid view."
 | |
| 
 | |
|     invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public dismiss()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->dismiss()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getDuration()I
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getDuration()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, -0x2
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     return v1
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
 | |
| 
 | |
|     const/16 v3, 0x1d
 | |
| 
 | |
|     if-lt v2, v3, :cond_2
 | |
| 
 | |
|     .line 3
 | |
|     iget-boolean v1, p0, Lcom/google/android/material/snackbar/Snackbar;->hasAction:Z
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     const/4 v1, 0x4
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     .line 4
 | |
|     :goto_0
 | |
|     iget-object v2, p0, Lcom/google/android/material/snackbar/Snackbar;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     or-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     or-int/lit8 v1, v1, 0x2
 | |
| 
 | |
|     invoke-virtual {v2, v0, v1}, Landroid/view/accessibility/AccessibilityManager;->getRecommendedTimeoutMillis(II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_2
 | |
|     iget-boolean v2, p0, Lcom/google/android/material/snackbar/Snackbar;->hasAction:Z
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/snackbar/Snackbar;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     invoke-virtual {v2}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-eqz v2, :cond_3
 | |
| 
 | |
|     move v0, v1
 | |
| 
 | |
|     :cond_3
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isShown()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->isShown()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public setAction(ILandroid/view/View$OnClickListener;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StringRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2}, Lcom/google/android/material/snackbar/Snackbar;->setAction(Ljava/lang/CharSequence;Landroid/view/View$OnClickListener;)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public setAction(Ljava/lang/CharSequence;Landroid/view/View$OnClickListener;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 3
 | |
|     .param p1    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/view/View$OnClickListener;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getActionView()Landroid/widget/Button;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     if-nez v2, :cond_1
 | |
| 
 | |
|     if-nez p2, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v2, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     iput-boolean v2, p0, Lcom/google/android/material/snackbar/Snackbar;->hasAction:Z
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     .line 8
 | |
|     new-instance p1, Lcom/google/android/material/snackbar/Snackbar$1;
 | |
| 
 | |
|     invoke-direct {p1, p0, p2}, Lcom/google/android/material/snackbar/Snackbar$1;-><init>(Lcom/google/android/material/snackbar/Snackbar;Landroid/view/View$OnClickListener;)V
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     const/16 p1, 0x8
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setVisibility(I)V
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
 | |
| 
 | |
|     .line 11
 | |
|     iput-boolean v1, p0, Lcom/google/android/material/snackbar/Snackbar;->hasAction:Z
 | |
| 
 | |
|     :goto_1
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setActionTextColor(I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorInt;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getActionView()Landroid/widget/Button;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setActionTextColor(Landroid/content/res/ColorStateList;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getActionView()Landroid/widget/Button;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setBackgroundTint(I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 0
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorInt;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/snackbar/Snackbar;->setBackgroundTintList(Landroid/content/res/ColorStateList;)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public setBackgroundTintList(Landroid/content/res/ColorStateList;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/content/res/ColorStateList;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->setBackgroundTintList(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/graphics/PorterDuff$Mode;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->setBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setCallback(Lcom/google/android/material/snackbar/Snackbar$Callback;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/snackbar/Snackbar$Callback;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation runtime Ljava/lang/Deprecated;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/Snackbar;->callback:Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->removeCallback(Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| 
 | |
|     :cond_0
 | |
|     if-eqz p1, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->addCallback(Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| 
 | |
|     .line 4
 | |
|     :cond_1
 | |
|     iput-object p1, p0, Lcom/google/android/material/snackbar/Snackbar;->callback:Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setMaxInlineActionWidth(I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/Dimension;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, p1}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->setMaxInlineActionWidth(I)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setText(I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 1
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/StringRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/snackbar/Snackbar;->setText(Ljava/lang/CharSequence;)Lcom/google/android/material/snackbar/Snackbar;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method public setText(Ljava/lang/CharSequence;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .param p1    # Ljava/lang/CharSequence;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getMessageView()Landroid/widget/TextView;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setTextColor(I)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/ColorInt;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getMessageView()Landroid/widget/TextView;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(I)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setTextColor(Landroid/content/res/ColorStateList;)Lcom/google/android/material/snackbar/Snackbar;
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->getChildAt(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->getMessageView()Landroid/widget/TextView;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public show()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-super {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->show()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |