243 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			243 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class Lcom/google/android/material/appbar/ViewUtilsLollipop;
 | |
| .super Ljava/lang/Object;
 | |
| .source "ViewUtilsLollipop.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroidx/annotation/RequiresApi;
 | |
|     value = 0x15
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field private static final STATE_LIST_ANIM_ATTRS:[I
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 3
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     new-array v0, v0, [I
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     const v2, 0x1010448
 | |
| 
 | |
|     aput v2, v0, v1
 | |
| 
 | |
|     .line 1
 | |
|     sput-object v0, Lcom/google/android/material/appbar/ViewUtilsLollipop;->STATE_LIST_ANIM_ATTRS:[I
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static setBoundsViewOutlineProvider(Landroid/view/View;)V
 | |
|     .locals 1
 | |
|     .param p0    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     sget-object v0, Landroid/view/ViewOutlineProvider;->BOUNDS:Landroid/view/ViewOutlineProvider;
 | |
| 
 | |
|     invoke-virtual {p0, v0}, Landroid/view/View;->setOutlineProvider(Landroid/view/ViewOutlineProvider;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static setDefaultAppBarLayoutStateListAnimator(Landroid/view/View;F)V
 | |
|     .locals 11
 | |
|     .param p0    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     sget v1, Lcom/google/android/material/R$integer;->app_bar_elevation_anim_duration:I
 | |
| 
 | |
|     invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getInteger(I)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     new-instance v1, Landroid/animation/StateListAnimator;
 | |
| 
 | |
|     invoke-direct {v1}, Landroid/animation/StateListAnimator;-><init>()V
 | |
| 
 | |
|     const/4 v2, 0x3
 | |
| 
 | |
|     new-array v2, v2, [I
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     const v4, 0x101000e
 | |
| 
 | |
|     aput v4, v2, v3
 | |
| 
 | |
|     .line 3
 | |
|     sget v5, Lcom/google/android/material/R$attr;->state_liftable:I
 | |
| 
 | |
|     const/4 v6, 0x1
 | |
| 
 | |
|     aput v5, v2, v6
 | |
| 
 | |
|     sget v5, Lcom/google/android/material/R$attr;->state_lifted:I
 | |
| 
 | |
|     neg-int v5, v5
 | |
| 
 | |
|     const/4 v7, 0x2
 | |
| 
 | |
|     aput v5, v2, v7
 | |
| 
 | |
|     new-array v5, v6, [F
 | |
| 
 | |
|     const/4 v7, 0x0
 | |
| 
 | |
|     aput v7, v5, v3
 | |
| 
 | |
|     const-string v8, "elevation"
 | |
| 
 | |
|     .line 4
 | |
|     invoke-static {p0, v8, v5}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object v5
 | |
| 
 | |
|     int-to-long v9, v0
 | |
| 
 | |
|     invoke-virtual {v5, v9, v10}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {v1, v2, v0}, Landroid/animation/StateListAnimator;->addState([ILandroid/animation/Animator;)V
 | |
| 
 | |
|     new-array v0, v6, [I
 | |
| 
 | |
|     aput v4, v0, v3
 | |
| 
 | |
|     new-array v2, v6, [F
 | |
| 
 | |
|     aput p1, v2, v3
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {p0, v8, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {p1, v9, v10}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v1, v0, p1}, Landroid/animation/StateListAnimator;->addState([ILandroid/animation/Animator;)V
 | |
| 
 | |
|     new-array p1, v3, [I
 | |
| 
 | |
|     new-array v0, v6, [F
 | |
| 
 | |
|     aput v7, v0, v3
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {p0, v8, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     const-wide/16 v2, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v2, v3}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-virtual {v1, p1, v0}, Landroid/animation/StateListAnimator;->addState([ILandroid/animation/Animator;)V
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0, v1}, Landroid/view/View;->setStateListAnimator(Landroid/animation/StateListAnimator;)V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static setStateListAnimatorFromAttrs(Landroid/view/View;Landroid/util/AttributeSet;II)V
 | |
|     .locals 8
 | |
|     .param p0    # Landroid/view/View;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v6
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v2, Lcom/google/android/material/appbar/ViewUtilsLollipop;->STATE_LIST_ANIM_ATTRS:[I
 | |
| 
 | |
|     const/4 v7, 0x0
 | |
| 
 | |
|     new-array v5, v7, [I
 | |
| 
 | |
|     move-object v0, v6
 | |
| 
 | |
|     move-object v1, p1
 | |
| 
 | |
|     move v3, p2
 | |
| 
 | |
|     move v4, p3
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static/range {v0 .. v5}, Lcom/google/android/material/internal/ThemeEnforcement;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     .line 4
 | |
|     :try_start_0
 | |
|     invoke-virtual {p1, v7}, Landroid/content/res/TypedArray;->hasValue(I)Z
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     if-eqz p2, :cond_0
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1, v7, v7}, Landroid/content/res/TypedArray;->getResourceId(II)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     invoke-static {v6, p2}, Landroid/animation/AnimatorInflater;->loadStateListAnimator(Landroid/content/Context;I)Landroid/animation/StateListAnimator;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p2}, Landroid/view/View;->setStateListAnimator(Landroid/animation/StateListAnimator;)V
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_0
 | |
|     invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/content/res/TypedArray;->recycle()V
 | |
| 
 | |
|     .line 8
 | |
|     throw p0
 | |
| .end method
 |