390 lines
		
	
	
		
			8.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			390 lines
		
	
	
		
			8.7 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Landroidx/appcompat/widget/g0;
 | |
| .super Landroid/content/ContextWrapper;
 | |
| .source "TintContextWrapper.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation build Landroidx/annotation/RestrictTo;
 | |
|     value = {
 | |
|         .enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
 | |
|     }
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # static fields
 | |
| .field public static final c:Ljava/lang/Object;
 | |
| 
 | |
| .field public static d:Ljava/util/ArrayList;
 | |
|     .annotation system Ldalvik/annotation/Signature;
 | |
|         value = {
 | |
|             "Ljava/util/ArrayList<",
 | |
|             "Ljava/lang/ref/WeakReference<",
 | |
|             "Landroidx/appcompat/widget/g0;",
 | |
|             ">;>;"
 | |
|         }
 | |
|     .end annotation
 | |
| .end field
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public final a:Landroid/content/res/Resources;
 | |
| 
 | |
| .field public final b:Landroid/content/res/Resources$Theme;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public static constructor <clinit>()V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     new-instance v0, Ljava/lang/Object;
 | |
| 
 | |
|     invoke-direct {v0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     sput-object v0, Landroidx/appcompat/widget/g0;->c:Ljava/lang/Object;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 2
 | |
|     .param p1    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0, p1}, Landroid/content/ContextWrapper;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 2
 | |
|     invoke-static {}, Landroidx/appcompat/widget/o0;->c()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     new-instance v0, Landroidx/appcompat/widget/o0;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-direct {v0, p0, v1}, Landroidx/appcompat/widget/o0;-><init>(Landroid/content/Context;Landroid/content/res/Resources;)V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/appcompat/widget/g0;->a:Landroid/content/res/Resources;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {v0}, Landroid/content/res/Resources;->newTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/appcompat/widget/g0;->b:Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Landroid/content/res/Resources$Theme;->setTo(Landroid/content/res/Resources$Theme;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 6
 | |
|     :cond_0
 | |
|     new-instance v0, Landroidx/appcompat/widget/i0;
 | |
| 
 | |
|     invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-direct {v0, p0, p1}, Landroidx/appcompat/widget/i0;-><init>(Landroid/content/Context;Landroid/content/res/Resources;)V
 | |
| 
 | |
|     iput-object v0, p0, Landroidx/appcompat/widget/g0;->a:Landroid/content/res/Resources;
 | |
| 
 | |
|     const/4 p1, 0x0
 | |
| 
 | |
|     .line 7
 | |
|     iput-object p1, p0, Landroidx/appcompat/widget/g0;->b:Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public static a(Landroid/content/Context;)Z
 | |
|     .locals 2
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     instance-of v0, p0, Landroidx/appcompat/widget/g0;
 | |
| 
 | |
|     const/4 v1, 0x0
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     instance-of v0, v0, Landroidx/appcompat/widget/i0;
 | |
| 
 | |
|     if-nez v0, :cond_1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
 | |
| 
 | |
|     move-result-object p0
 | |
| 
 | |
|     instance-of p0, p0, Landroidx/appcompat/widget/o0;
 | |
| 
 | |
|     if-eqz p0, :cond_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-static {}, Landroidx/appcompat/widget/o0;->c()Z
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     if-eqz p0, :cond_1
 | |
| 
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     :cond_1
 | |
|     :goto_0
 | |
|     return v1
 | |
| .end method
 | |
| 
 | |
| .method public static b(Landroid/content/Context;)Landroid/content/Context;
 | |
|     .locals 4
 | |
|     .param p0    # Landroid/content/Context;
 | |
|         .annotation build Landroidx/annotation/NonNull;
 | |
|         .end annotation
 | |
|     .end param
 | |
| 
 | |
|     .line 1
 | |
|     invoke-static {p0}, Landroidx/appcompat/widget/g0;->a(Landroid/content/Context;)Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_7
 | |
| 
 | |
|     .line 2
 | |
|     sget-object v0, Landroidx/appcompat/widget/g0;->c:Ljava/lang/Object;
 | |
| 
 | |
|     monitor-enter v0
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_0
 | |
|     sget-object v1, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     if-nez v1, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     new-instance v1, Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
 | |
| 
 | |
|     sput-object v1, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-int/lit8 v1, v1, -0x1
 | |
| 
 | |
|     :goto_0
 | |
|     if-ltz v1, :cond_3
 | |
| 
 | |
|     .line 6
 | |
|     sget-object v2, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     if-eqz v2, :cond_1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     if-nez v2, :cond_2
 | |
| 
 | |
|     .line 8
 | |
|     :cond_1
 | |
|     sget-object v2, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
 | |
| 
 | |
|     :cond_2
 | |
|     add-int/lit8 v1, v1, -0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 9
 | |
|     :cond_3
 | |
|     sget-object v1, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     add-int/lit8 v1, v1, -0x1
 | |
| 
 | |
|     :goto_1
 | |
|     if-ltz v1, :cond_6
 | |
| 
 | |
|     .line 10
 | |
|     sget-object v2, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     if-eqz v2, :cond_4
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {v2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
 | |
| 
 | |
|     move-result-object v2
 | |
| 
 | |
|     check-cast v2, Landroidx/appcompat/widget/g0;
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_4
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     :goto_2
 | |
|     if-eqz v2, :cond_5
 | |
| 
 | |
|     .line 12
 | |
|     invoke-virtual {v2}, Landroid/content/ContextWrapper;->getBaseContext()Landroid/content/Context;
 | |
| 
 | |
|     move-result-object v3
 | |
| 
 | |
|     if-ne v3, p0, :cond_5
 | |
| 
 | |
|     .line 13
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object v2
 | |
| 
 | |
|     :cond_5
 | |
|     add-int/lit8 v1, v1, -0x1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     .line 14
 | |
|     :cond_6
 | |
|     :goto_3
 | |
|     new-instance v1, Landroidx/appcompat/widget/g0;
 | |
| 
 | |
|     invoke-direct {v1, p0}, Landroidx/appcompat/widget/g0;-><init>(Landroid/content/Context;)V
 | |
| 
 | |
|     .line 15
 | |
|     sget-object p0, Landroidx/appcompat/widget/g0;->d:Ljava/util/ArrayList;
 | |
| 
 | |
|     new-instance v2, Ljava/lang/ref/WeakReference;
 | |
| 
 | |
|     invoke-direct {v2, v1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
 | |
| 
 | |
|     invoke-virtual {p0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
 | |
| 
 | |
|     .line 16
 | |
|     monitor-exit v0
 | |
| 
 | |
|     return-object v1
 | |
| 
 | |
|     :catchall_0
 | |
|     move-exception p0
 | |
| 
 | |
|     .line 17
 | |
|     monitor-exit v0
 | |
|     :try_end_0
 | |
|     .catchall {:try_start_0 .. :try_end_0} :catchall_0
 | |
| 
 | |
|     throw p0
 | |
| 
 | |
|     :cond_7
 | |
|     return-object p0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public getAssets()Landroid/content/res/AssetManager;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/g0;->a:Landroid/content/res/Resources;
 | |
| 
 | |
|     invoke-virtual {v0}, Landroid/content/res/Resources;->getAssets()Landroid/content/res/AssetManager;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getResources()Landroid/content/res/Resources;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/g0;->a:Landroid/content/res/Resources;
 | |
| 
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public getTheme()Landroid/content/res/Resources$Theme;
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/g0;->b:Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     invoke-super {p0}, Landroid/content/ContextWrapper;->getTheme()Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     :cond_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| .method public setTheme(I)V
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Landroidx/appcompat/widget/g0;->b:Landroid/content/res/Resources$Theme;
 | |
| 
 | |
|     if-nez v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-super {p0, p1}, Landroid/content/ContextWrapper;->setTheme(I)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     const/4 v1, 0x1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {v0, p1, v1}, Landroid/content/res/Resources$Theme;->applyStyle(IZ)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 |