2080 lines
		
	
	
		
			64 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			2080 lines
		
	
	
		
			64 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public abstract Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| .super Ljava/lang/Object;
 | |
| .source "BaseTransientBottomBar.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/MemberClasses;
 | |
|     value = {
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$BehaviorDelegate;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$OnAttachStateChangeListener;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$OnLayoutChangeListener;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$Duration;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$ContentViewCallback;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;,
 | |
|         Lcom/google/android/material/snackbar/BaseTransientBottomBar$AnimationMode;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/Signature;
 | |
|     value = {
 | |
|         "<B:",
 | |
|         "Lcom/google/android/material/snackbar/BaseTransientBottomBar<",
 | |
|         "TB;>;>",
 | |
|         "Ljava/lang/Object;"
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final ANIMATION_DURATION:I = 0xfa
 | |
| 
 | |
| .field public static final ANIMATION_FADE_DURATION:I = 0xb4
 | |
| 
 | |
| .field private static final ANIMATION_FADE_IN_DURATION:I = 0x96
 | |
| 
 | |
| .field private static final ANIMATION_FADE_OUT_DURATION:I = 0x4b
 | |
| 
 | |
| .field public static final ANIMATION_MODE_FADE:I = 0x1
 | |
| 
 | |
| .field public static final ANIMATION_MODE_SLIDE:I = 0x0
 | |
| 
 | |
| .field private static final ANIMATION_SCALE_FROM_VALUE:F = 0.8f
 | |
| 
 | |
| .field public static final LENGTH_INDEFINITE:I = -0x2
 | |
| 
 | |
| .field public static final LENGTH_LONG:I = 0x0
 | |
| 
 | |
| .field public static final LENGTH_SHORT:I = -0x1
 | |
| 
 | |
| .field public static final MSG_DISMISS:I = 0x1
 | |
| 
 | |
| .field public static final MSG_SHOW:I
 | |
| 
 | |
| .field private static final SNACKBAR_STYLE_ATTR:[I
 | |
| 
 | |
| .field private static final TAG:Ljava/lang/String;
 | |
| 
 | |
| .field private static final USE_OFFSET_API:Z
 | |
| 
 | |
| .field public static final handler:Landroid/os/Handler;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field private final accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private anchorView:Landroid/view/View;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final anchorViewLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
| .field private anchorViewLayoutListenerEnabled:Z
 | |
| 
 | |
| .field private behavior:Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
| .field private final bottomMarginGestureInsetRunnable:Ljava/lang/Runnable;
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x1d
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private callbacks:Ljava/util/List;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/List<",
 | |
|             "Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback<",
 | |
|             "TB;>;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final contentViewCallback:Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final context:Landroid/content/Context;
 | |
| 
 | |
| .field private duration:I
 | |
| 
 | |
| .field private extraBottomMarginAnchorView:I
 | |
| 
 | |
| .field private extraBottomMarginGestureInset:I
 | |
| 
 | |
| .field private extraBottomMarginWindowInset:I
 | |
| 
 | |
| .field private extraLeftMarginWindowInset:I
 | |
| 
 | |
| .field private extraRightMarginWindowInset:I
 | |
| 
 | |
| .field private gestureInsetBottomIgnored:Z
 | |
| 
 | |
| .field public managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private originalMargins:Landroid/graphics/Rect;
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field private final targetParent:Landroid/view/ViewGroup;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| .field public final view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     sput-boolean v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->USE_OFFSET_API:Z
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     new-array v1, v1, [I
 | |
| 
 | |
|     .line 2
 | |
|     sget v2, Lcom/google/android/material/R$attr;->snackbarStyle:I
 | |
| 
 | |
|     aput v2, v1, v0
 | |
| 
 | |
|     sput-object v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->SNACKBAR_STYLE_ATTR:[I
 | |
| 
 | |
|     const-string v0, "BaseTransientBottomBar"
 | |
| 
 | |
|     .line 3
 | |
|     sput-object v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->TAG:Ljava/lang/String;
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v0, Landroid/os/Handler;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     new-instance v2, Lcom/google/android/material/snackbar/BaseTransientBottomBar$1;
 | |
| 
 | |
|     invoke-direct {v2}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$1;-><init>()V
 | |
| 
 | |
|     invoke-direct {v0, v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
 | |
| 
 | |
|     sput-object v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->handler:Landroid/os/Handler;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
|     .locals 3
 | |
|     .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 2
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 3
 | |
|     iput-boolean v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListenerEnabled:Z
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$2;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$2;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     iput-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$3;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$3;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     iput-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->bottomMarginGestureInsetRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$6;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$6;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     iput-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     if-eqz p2, :cond_4
 | |
| 
 | |
|     if-eqz p3, :cond_3
 | |
| 
 | |
|     if-eqz p4, :cond_2
 | |
| 
 | |
|     .line 7
 | |
|     iput-object p2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->targetParent:Landroid/view/ViewGroup;
 | |
| 
 | |
|     .line 8
 | |
|     iput-object p4, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->contentViewCallback:Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
| 
 | |
|     .line 9
 | |
|     iput-object p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->context:Landroid/content/Context;
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {p1}, Lcom/google/android/material/internal/ThemeEnforcement;->checkAppCompatTheme(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 11
 | |
|     invoke-static {p1}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
 | |
| 
 | |
|     move-result-object p4
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getSnackbarBaseLayoutResId()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     invoke-virtual {p4, v1, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     check-cast p2, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     iput-object p2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     .line 13
 | |
|     instance-of p4, p3, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     if-eqz p4, :cond_0
 | |
| 
 | |
|     .line 14
 | |
|     move-object p4, p3
 | |
| 
 | |
|     check-cast p4, Lcom/google/android/material/snackbar/SnackbarContentLayout;
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p2}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->getActionTextColorAlpha()F
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p4, v0}, Lcom/google/android/material/snackbar/SnackbarContentLayout;->updateActionTextColorAlphaIfNeeded(F)V
 | |
| 
 | |
|     .line 16
 | |
|     :cond_0
 | |
|     invoke-virtual {p2, p3}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;)V
 | |
| 
 | |
|     .line 17
 | |
|     invoke-virtual {p2}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object p3
 | |
| 
 | |
|     .line 18
 | |
|     instance-of p4, p3, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     if-eqz p4, :cond_1
 | |
| 
 | |
|     .line 19
 | |
|     check-cast p3, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     .line 20
 | |
|     new-instance p4, Landroid/graphics/Rect;
 | |
| 
 | |
|     iget v0, p3, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
 | |
| 
 | |
|     iget v1, p3, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I
 | |
| 
 | |
|     iget v2, p3, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
 | |
| 
 | |
|     iget p3, p3, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
 | |
| 
 | |
|     invoke-direct {p4, v0, v1, v2, p3}, Landroid/graphics/Rect;-><init>(IIII)V
 | |
| 
 | |
|     iput-object p4, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->originalMargins:Landroid/graphics/Rect;
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 p3, 0x1
 | |
| 
 | |
|     .line 21
 | |
|     invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->D1(Landroid/view/View;I)V
 | |
| 
 | |
|     .line 22
 | |
|     invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->R1(Landroid/view/View;I)V
 | |
| 
 | |
|     .line 23
 | |
|     invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->O1(Landroid/view/View;Z)V
 | |
| 
 | |
|     .line 24
 | |
|     new-instance p3, Lcom/google/android/material/snackbar/BaseTransientBottomBar$4;
 | |
| 
 | |
|     invoke-direct {p3, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$4;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->a2(Landroid/view/View;Ls1/e0;)V
 | |
| 
 | |
|     .line 25
 | |
|     new-instance p3, Lcom/google/android/material/snackbar/BaseTransientBottomBar$5;
 | |
| 
 | |
|     invoke-direct {p3, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$5;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-static {p2, p3}, Landroidx/core/view/ViewCompat;->B1(Landroid/view/View;Landroidx/core/view/a;)V
 | |
| 
 | |
|     const-string p2, "accessibility"
 | |
| 
 | |
|     .line 26
 | |
|     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/BaseTransientBottomBar;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 27
 | |
|     :cond_2
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p2, "Transient bottom bar must have non-null callback"
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| 
 | |
|     .line 28
 | |
|     :cond_3
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p2, "Transient bottom bar must have non-null content"
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| 
 | |
|     .line 29
 | |
|     :cond_4
 | |
|     new-instance p1, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string p2, "Transient bottom bar must have non-null parent"
 | |
| 
 | |
|     invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw p1
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
|     .locals 1
 | |
|     .param p1    # Landroid/view/ViewGroup;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p2    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .param p3    # Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p1}, Landroid/view/ViewGroup;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-direct {p0, v0, p1, p2, p3}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;-><init>(Landroid/content/Context;Landroid/view/ViewGroup;Landroid/view/View;Lcom/google/android/material/snackbar/ContentViewCallback;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$000(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)Z
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean p0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListenerEnabled:Z
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1002(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraLeftMarginWindowInset:I
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$102(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginAnchorView:I
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1102(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraRightMarginWindowInset:I
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1200(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->showViewImpl()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1400(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->startFadeInAnimation()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1500(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->startSlideInAnimation()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1600(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->contentViewCallback:Lcom/google/android/material/snackbar/ContentViewCallback;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$1700()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-boolean v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->USE_OFFSET_API:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$200(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->calculateBottomMarginForAnchorView()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$300(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->updateMargins()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$400(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)Landroid/content/Context;
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget-object p0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->context:Landroid/content/Context;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$500(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getScreenHeight()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$600(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getViewAbsoluteBottom()I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$700(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iget p0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginGestureInset:I
 | |
| 
 | |
|     return p0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$702(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginGestureInset:I
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$800()Ljava/lang/String;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->TAG:Ljava/lang/String;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public static synthetic access$902(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)I
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginWindowInset:I
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method private animateViewOut(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->getAnimationMode()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-ne v0, v1, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->startFadeOutAnimation(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->startSlideOutAnimation(I)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private calculateBottomMarginForAnchorView()I
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     return v0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     new-array v2, v1, [I
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v2}, Landroid/view/View;->getLocationOnScreen([I)V
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     aget v2, v2, v0
 | |
| 
 | |
|     new-array v1, v1, [I
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v3, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->targetParent:Landroid/view/ViewGroup;
 | |
| 
 | |
|     invoke-virtual {v3, v1}, Landroid/view/ViewGroup;->getLocationOnScreen([I)V
 | |
| 
 | |
|     .line 5
 | |
|     aget v0, v1, v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->targetParent:Landroid/view/ViewGroup;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/view/ViewGroup;->getHeight()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-int/2addr v1, v0
 | |
| 
 | |
|     sub-int/2addr v1, v2
 | |
| 
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method private varargs getAlphaAnimator([F)Landroid/animation/ValueAnimator;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_INTERPOLATOR:Landroid/animation/TimeInterpolator;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar$13;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$13;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method private varargs getScaleAnimator([F)Landroid/animation/ValueAnimator;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v0, Lcom/google/android/material/animation/AnimationUtils;->LINEAR_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar$14;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$14;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
 | |
| 
 | |
|     return-object p1
 | |
| .end method
 | |
| 
 | |
| .method private getScreenHeight()I
 | |
|     .locals 2
 | |
|     .annotation build Landroidx/annotation/RequiresApi;
 | |
|         value = 0x11
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->context:Landroid/content/Context;
 | |
| 
 | |
|     const-string v1, "window"
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     check-cast v0, Landroid/view/WindowManager;
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Landroid/util/DisplayMetrics;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/util/DisplayMetrics;-><init>()V
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v0}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/view/Display;->getRealMetrics(Landroid/util/DisplayMetrics;)V
 | |
| 
 | |
|     .line 4
 | |
|     iget v0, v1, Landroid/util/DisplayMetrics;->heightPixels:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private getTranslationYBottom()I
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getHeight()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     instance-of v2, v1, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     if-eqz v2, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     check-cast v1, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     iget v1, v1, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
 | |
| 
 | |
|     add-int/2addr v0, v1
 | |
| 
 | |
|     :cond_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private getViewAbsoluteBottom()I
 | |
|     .locals 2
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->getLocationOnScreen([I)V
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     aget v0, v0, v1
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v1}, Landroid/widget/FrameLayout;->getHeight()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-int/2addr v1, v0
 | |
| 
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method private isSwipeDismissable()Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->f()Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     instance-of v0, v0, Lcom/google/android/material/behavior/SwipeDismissBehavior;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private setUpBehavior(Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->behavior:Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getNewBehavior()Lcom/google/android/material/behavior/SwipeDismissBehavior;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     instance-of v1, v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     if-eqz v1, :cond_1
 | |
| 
 | |
|     .line 4
 | |
|     move-object v1, v0
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     invoke-static {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;->access$1300(Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$9;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$9;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/behavior/SwipeDismissBehavior;->setListener(Lcom/google/android/material/behavior/SwipeDismissBehavior$OnDismissListener;)V
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p1, v0}, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->q(Landroidx/coordinatorlayout/widget/CoordinatorLayout$Behavior;)V
 | |
| 
 | |
|     .line 7
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     if-nez v0, :cond_2
 | |
| 
 | |
|     const/16 v0, 0x50
 | |
| 
 | |
|     .line 8
 | |
|     iput v0, p1, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;->g:I
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private shouldUpdateGestureInset()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginGestureInset:I
 | |
| 
 | |
|     if-lez v0, :cond_0
 | |
| 
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->gestureInsetBottomIgnored:Z
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->isSwipeDismissable()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method private showViewImpl()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->shouldAnimate()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->animateViewIn()V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .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;->setVisibility(I)V
 | |
| 
 | |
|     .line 5
 | |
|     :cond_1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->onViewShown()V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private startFadeInAnimation()V
 | |
|     .locals 5
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     new-array v1, v0, [F
 | |
| 
 | |
|     .line 1
 | |
|     fill-array-data v1, :array_0
 | |
| 
 | |
|     invoke-direct {p0, v1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getAlphaAnimator([F)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     new-array v2, v0, [F
 | |
| 
 | |
|     .line 2
 | |
|     fill-array-data v2, :array_1
 | |
| 
 | |
|     invoke-direct {p0, v2}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getScaleAnimator([F)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v3, Landroid/animation/AnimatorSet;
 | |
| 
 | |
|     invoke-direct {v3}, Landroid/animation/AnimatorSet;-><init>()V
 | |
| 
 | |
|     new-array v0, v0, [Landroid/animation/Animator;
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     aput-object v1, v0, v4
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     aput-object v2, v0, v1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v3, v0}, Landroid/animation/AnimatorSet;->playTogether([Landroid/animation/Animator;)V
 | |
| 
 | |
|     const-wide/16 v0, 0x96
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v3, v0, v1}, Landroid/animation/AnimatorSet;->setDuration(J)Landroid/animation/AnimatorSet;
 | |
| 
 | |
|     .line 6
 | |
|     new-instance v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar$11;
 | |
| 
 | |
|     invoke-direct {v0, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$11;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v3, v0}, Landroid/animation/AnimatorSet;->addListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v3}, Landroid/animation/AnimatorSet;->start()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :array_0
 | |
|     .array-data 4
 | |
|         0x0
 | |
|         0x3f800000    # 1.0f
 | |
|     .end array-data
 | |
| 
 | |
|     :array_1
 | |
|     .array-data 4
 | |
|         0x3f4ccccd    # 0.8f
 | |
|         0x3f800000    # 1.0f
 | |
|     .end array-data
 | |
| .end method
 | |
| 
 | |
| .method private startFadeOutAnimation(I)V
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x2
 | |
| 
 | |
|     new-array v0, v0, [F
 | |
| 
 | |
|     .line 1
 | |
|     fill-array-data v0, :array_0
 | |
| 
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getAlphaAnimator([F)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-wide/16 v1, 0x4b
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$12;
 | |
| 
 | |
|     invoke-direct {v1, p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$12;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     nop
 | |
| 
 | |
|     :array_0
 | |
|     .array-data 4
 | |
|         0x3f800000    # 1.0f
 | |
|         0x0
 | |
|     .end array-data
 | |
| .end method
 | |
| 
 | |
| .method private startSlideInAnimation()V
 | |
|     .locals 5
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getTranslationYBottom()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     sget-boolean v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->USE_OFFSET_API:Z
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-static {v1, v0}, Landroidx/core/view/ViewCompat;->f1(Landroid/view/View;I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     int-to-float v2, v0
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/widget/FrameLayout;->setTranslationY(F)V
 | |
| 
 | |
|     .line 5
 | |
|     :goto_0
 | |
|     new-instance v1, Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/animation/ValueAnimator;-><init>()V
 | |
| 
 | |
|     const/4 v2, 0x2
 | |
| 
 | |
|     new-array v2, v2, [I
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     aput v0, v2, v3
 | |
| 
 | |
|     const/4 v4, 0x1
 | |
| 
 | |
|     aput v3, v2, v4
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setIntValues([I)V
 | |
| 
 | |
|     .line 7
 | |
|     sget-object v2, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
 | |
| 
 | |
|     const-wide/16 v2, 0xfa
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {v1, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     .line 9
 | |
|     new-instance v2, Lcom/google/android/material/snackbar/BaseTransientBottomBar$15;
 | |
| 
 | |
|     invoke-direct {v2, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$15;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
| 
 | |
|     .line 10
 | |
|     new-instance v2, Lcom/google/android/material/snackbar/BaseTransientBottomBar$16;
 | |
| 
 | |
|     invoke-direct {v2, p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$16;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)V
 | |
| 
 | |
|     invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v1}, Landroid/animation/ValueAnimator;->start()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private startSlideOutAnimation(I)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     invoke-direct {v0}, Landroid/animation/ValueAnimator;-><init>()V
 | |
| 
 | |
|     const/4 v1, 0x2
 | |
| 
 | |
|     new-array v1, v1, [I
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     aput v2, v1, v2
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getTranslationYBottom()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     const/4 v3, 0x1
 | |
| 
 | |
|     aput v2, v1, v3
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setIntValues([I)V
 | |
| 
 | |
|     .line 3
 | |
|     sget-object v1, Lcom/google/android/material/animation/AnimationUtils;->FAST_OUT_SLOW_IN_INTERPOLATOR:Landroid/animation/TimeInterpolator;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
 | |
| 
 | |
|     const-wide/16 v1, 0xfa
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
 | |
| 
 | |
|     .line 5
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$17;
 | |
| 
 | |
|     invoke-direct {v1, p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$17;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;I)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/animation/ValueAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
 | |
| 
 | |
|     .line 6
 | |
|     new-instance p1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$18;
 | |
| 
 | |
|     invoke-direct {p1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$18;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v0}, Landroid/animation/ValueAnimator;->start()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private updateMargins()V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     instance-of v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     if-eqz v1, :cond_3
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->originalMargins:Landroid/graphics/Rect;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     iget-object v2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     if-eqz v2, :cond_1
 | |
| 
 | |
|     iget v2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginAnchorView:I
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     iget v2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginWindowInset:I
 | |
| 
 | |
|     .line 4
 | |
|     :goto_0
 | |
|     check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;
 | |
| 
 | |
|     .line 5
 | |
|     iget v3, v1, Landroid/graphics/Rect;->bottom:I
 | |
| 
 | |
|     add-int/2addr v3, v2
 | |
| 
 | |
|     iput v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
 | |
| 
 | |
|     .line 6
 | |
|     iget v2, v1, Landroid/graphics/Rect;->left:I
 | |
| 
 | |
|     iget v3, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraLeftMarginWindowInset:I
 | |
| 
 | |
|     add-int/2addr v2, v3
 | |
| 
 | |
|     iput v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
 | |
| 
 | |
|     .line 7
 | |
|     iget v1, v1, Landroid/graphics/Rect;->right:I
 | |
| 
 | |
|     iget v2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraRightMarginWindowInset:I
 | |
| 
 | |
|     add-int/2addr v1, v2
 | |
| 
 | |
|     iput v1, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->requestLayout()V
 | |
| 
 | |
|     .line 9
 | |
|     sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
 | |
| 
 | |
|     const/16 v1, 0x1d
 | |
| 
 | |
|     if-lt v0, v1, :cond_2
 | |
| 
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->shouldUpdateGestureInset()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 10
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->bottomMarginGestureInsetRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->removeCallbacks(Ljava/lang/Runnable;)Z
 | |
| 
 | |
|     .line 11
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->bottomMarginGestureInsetRunnable:Ljava/lang/Runnable;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
 | |
| 
 | |
|     :cond_2
 | |
|     return-void
 | |
| 
 | |
|     .line 12
 | |
|     :cond_3
 | |
|     :goto_1
 | |
|     sget-object v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->TAG:Ljava/lang/String;
 | |
| 
 | |
|     const-string v1, "Unable to update margins because layout params are not MarginLayoutParams"
 | |
| 
 | |
|     invoke-static {v0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public addCallback(Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback<",
 | |
|             "TB;>;)TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v0, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     iput-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     .line 3
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public animateViewIn()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$10;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$10;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->post(Ljava/lang/Runnable;)Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public dismiss()V
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->dispatchDismiss(I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public dispatchDismiss(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1, p1}, Lcom/google/android/material/snackbar/SnackbarManager;->dismiss(Lcom/google/android/material/snackbar/SnackbarManager$Callback;I)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public getAnchorView()Landroid/view/View;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/Nullable;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getAnimationMode()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->getAnimationMode()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getBehavior()Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->behavior:Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getContext()Landroid/content/Context;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->context:Landroid/content/Context;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getDuration()I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->duration:I
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getNewBehavior()Lcom/google/android/material/behavior/SwipeDismissBehavior;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "()",
 | |
|             "Lcom/google/android/material/behavior/SwipeDismissBehavior<",
 | |
|             "+",
 | |
|             "Landroid/view/View;",
 | |
|             ">;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     invoke-direct {v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;-><init>()V
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getSnackbarBaseLayoutResId()I
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/LayoutRes;
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->hasSnackbarStyleAttr()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     sget v0, Lcom/google/android/material/R$layout;->mtrl_layout_snackbar:I
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     sget v0, Lcom/google/android/material/R$layout;->design_layout_snackbar:I
 | |
| 
 | |
|     :goto_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public getView()Landroid/view/View;
 | |
|     .locals 1
 | |
|     .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;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public hasSnackbarStyleAttr()Z
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->context:Landroid/content/Context;
 | |
| 
 | |
|     sget-object v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->SNACKBAR_STYLE_ATTR:[I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/Context;->obtainStyledAttributes([I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     if-eq v3, v2, :cond_0
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     :cond_0
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method public final hideView(I)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->shouldAnimate()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getVisibility()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-direct {p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->animateViewOut(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 3
 | |
|     :cond_0
 | |
|     invoke-virtual {p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->onViewHidden(I)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public isAnchorViewLayoutListenerEnabled()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListenerEnabled:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isGestureInsetBottomIgnored()Z
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-boolean v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->gestureInsetBottomIgnored:Z
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isShown()Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/SnackbarManager;->isCurrent(Lcom/google/android/material/snackbar/SnackbarManager$Callback;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public isShownOrQueued()Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/SnackbarManager;->isCurrentOrNext(Lcom/google/android/material/snackbar/SnackbarManager$Callback;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public onViewHidden(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/SnackbarManager;->onDismissed(Lcom/google/android/material/snackbar/SnackbarManager$Callback;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v0}, Ljava/util/List;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
| 
 | |
|     invoke-virtual {v1, p0, p1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;->onDismissed(Ljava/lang/Object;I)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     iget-object p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 6
 | |
|     instance-of v0, p1, Landroid/view/ViewGroup;
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     check-cast p1, Landroid/view/ViewGroup;
 | |
| 
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {p1, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V
 | |
| 
 | |
|     :cond_1
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public onViewShown()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/SnackbarManager;->onShown(Lcom/google/android/material/snackbar/SnackbarManager$Callback;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v0}, Ljava/util/List;->size()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     check-cast v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
| 
 | |
|     invoke-virtual {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;->onShown(Ljava/lang/Object;)V
 | |
| 
 | |
|     add-int/lit8 v0, v0, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public removeCallback(Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 1
 | |
|     .param p1    # Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lcom/google/android/material/snackbar/BaseTransientBottomBar$BaseCallback<",
 | |
|             "TB;>;)TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 1
 | |
|     :cond_0
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->callbacks:Ljava/util/List;
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     return-object p0
 | |
| 
 | |
|     .line 2
 | |
|     :cond_1
 | |
|     invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setAnchorView(I)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 2
 | |
|     .param p1    # I
 | |
|         .annotation build Landroidx/annotation/IdRes;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(I)TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 4
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->targetParent:Landroid/view/ViewGroup;
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->setAnchorView(Landroid/view/View;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     return-object p1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     new-instance v0, Ljava/lang/IllegalArgumentException;
 | |
| 
 | |
|     const-string v1, "Unable to find anchor view with id: "
 | |
| 
 | |
|     invoke-static {v1, p1}, Landroid/support/v4/media/b;->a(Ljava/lang/String;I)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public setAnchorView(Landroid/view/View;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/Nullable;
 | |
|         .end annotation
 | |
|     .end param
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Landroid/view/View;",
 | |
|             ")TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     invoke-static {v0, v1}, Lcom/google/android/material/internal/ViewUtils;->removeOnGlobalLayoutListener(Landroid/view/View;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     .line 2
 | |
|     iput-object p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorView:Landroid/view/View;
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListener:Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;
 | |
| 
 | |
|     invoke-static {p1, v0}, Lcom/google/android/material/internal/ViewUtils;->addOnGlobalLayoutListener(Landroid/view/View;Landroid/view/ViewTreeObserver$OnGlobalLayoutListener;)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setAnchorViewLayoutListenerEnabled(Z)V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->anchorViewLayoutListenerEnabled:Z
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public setAnimationMode(I)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 1
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(I)TB;"
 | |
|         }
 | |
|     .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;->setAnimationMode(I)V
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setBehavior(Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(",
 | |
|             "Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;",
 | |
|             ")TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iput-object p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->behavior:Lcom/google/android/material/snackbar/BaseTransientBottomBar$Behavior;
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setDuration(I)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(I)TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iput p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->duration:I
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public setGestureInsetBottomIgnored(Z)Lcom/google/android/material/snackbar/BaseTransientBottomBar;
 | |
|     .locals 0
 | |
|     .annotation build Landroidx/annotation/NonNull;
 | |
|     .end annotation
 | |
| 
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "(Z)TB;"
 | |
|         }
 | |
|     .end annotation
 | |
| 
 | |
|     .line 1
 | |
|     iput-boolean p1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->gestureInsetBottomIgnored:Z
 | |
| 
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| .method public shouldAnimate()Z
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->accessibilityManager:Landroid/view/accessibility/AccessibilityManager;
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     return v1
 | |
| 
 | |
|     .line 2
 | |
|     :cond_0
 | |
|     invoke-virtual {v0, v1}, Landroid/view/accessibility/AccessibilityManager;->getEnabledAccessibilityServiceList(I)Ljava/util/List;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method public show()V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {}, Lcom/google/android/material/snackbar/SnackbarManager;->getInstance()Lcom/google/android/material/snackbar/SnackbarManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->getDuration()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     iget-object v2, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->managerCallback:Lcom/google/android/material/snackbar/SnackbarManager$Callback;
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Lcom/google/android/material/snackbar/SnackbarManager;->show(ILcom/google/android/material/snackbar/SnackbarManager$Callback;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final showView()V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$7;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$7;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->setOnAttachStateChangeListener(Lcom/google/android/material/snackbar/BaseTransientBottomBar$OnAttachStateChangeListener;)V
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getParent()Landroid/view/ViewParent;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 4
 | |
|     instance-of v1, v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
 | |
| 
 | |
|     if-eqz v1, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     check-cast v0, Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;
 | |
| 
 | |
|     invoke-direct {p0, v0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->setUpBehavior(Landroidx/coordinatorlayout/widget/CoordinatorLayout$d;)V
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->calculateBottomMarginForAnchorView()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     iput v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->extraBottomMarginAnchorView:I
 | |
| 
 | |
|     .line 7
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->updateMargins()V
 | |
| 
 | |
|     .line 8
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     const/4 v1, 0x4
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V
 | |
| 
 | |
|     .line 9
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->targetParent:Landroid/view/ViewGroup;
 | |
| 
 | |
|     iget-object v1, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V
 | |
| 
 | |
|     .line 10
 | |
|     :cond_1
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     invoke-static {v0}, Landroidx/core/view/ViewCompat;->U0(Landroid/view/View;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_2
 | |
| 
 | |
|     .line 11
 | |
|     invoke-direct {p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->showViewImpl()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 12
 | |
|     :cond_2
 | |
|     iget-object v0, p0, Lcom/google/android/material/snackbar/BaseTransientBottomBar;->view:Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;
 | |
| 
 | |
|     new-instance v1, Lcom/google/android/material/snackbar/BaseTransientBottomBar$8;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$8;-><init>(Lcom/google/android/material/snackbar/BaseTransientBottomBar;)V
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Lcom/google/android/material/snackbar/BaseTransientBottomBar$SnackbarBaseLayout;->setOnLayoutChangeListener(Lcom/google/android/material/snackbar/BaseTransientBottomBar$OnLayoutChangeListener;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 |