apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatDrawableManager.smali

364 lines
11 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Landroidx/appcompat/widget/AppCompatDrawableManager;
.super Ljava/lang/Object;
.source "AppCompatDrawableManager.java"
2019-12-06 03:29:40 +00:00
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
2019-11-15 02:21:15 +00:00
# static fields
2019-12-06 03:29:40 +00:00
.field public static final DEBUG:Z = false
2019-10-11 21:55:41 +00:00
2019-12-06 03:29:40 +00:00
.field public static final DEFAULT_MODE:Landroid/graphics/PorterDuff$Mode;
2019-11-14 21:08:15 +00:00
2019-12-06 03:29:40 +00:00
.field public static INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager; = null
2019-11-14 21:08:15 +00:00
2019-12-06 03:29:40 +00:00
.field public static final TAG:Ljava/lang/String; = "AppCompatDrawableManag"
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-11-15 02:21:15 +00:00
.locals 1
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
sget-object v0, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
sput-object v0, Landroidx/appcompat/widget/AppCompatDrawableManager;->DEFAULT_MODE:Landroid/graphics/PorterDuff$Mode;
2019-11-14 21:08:15 +00:00
return-void
2019-11-15 02:21:15 +00:00
.end method
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
.method public constructor <init>()V
.locals 0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-11-14 21:08:15 +00:00
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static synthetic access$000()Landroid/graphics/PorterDuff$Mode;
2019-11-15 02:21:15 +00:00
.locals 1
2019-07-24 11:27:29 +00:00
sget-object v0, Landroidx/appcompat/widget/AppCompatDrawableManager;->DEFAULT_MODE:Landroid/graphics/PorterDuff$Mode;
2019-11-15 02:21:15 +00:00
return-object v0
.end method
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
.method public static declared-synchronized get()Landroidx/appcompat/widget/AppCompatDrawableManager;
.locals 2
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
const-class v0, Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
monitor-enter v0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
:try_start_0
sget-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
if-nez v1, :cond_0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {}, Landroidx/appcompat/widget/AppCompatDrawableManager;->preload()V
2019-07-24 11:27:29 +00:00
:cond_0
2019-11-15 02:21:15 +00:00
sget-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-exit v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
return-object v1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:catchall_0
move-exception v1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-exit v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
throw v1
.end method
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
.method public static declared-synchronized getPorterDuffColorFilter(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
.locals 1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-class v0, Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-enter v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:try_start_0
invoke-static {p0, p1}, Landroidx/appcompat/widget/ResourceManagerInternal;->getPorterDuffColorFilter(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuffColorFilter;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-exit v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:catchall_0
move-exception p0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-exit v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
throw p0
.end method
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
.method public static declared-synchronized preload()V
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
const-class v0, Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-enter v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:try_start_0
sget-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
if-nez v1, :cond_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-instance v1, Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v1}, Landroidx/appcompat/widget/AppCompatDrawableManager;-><init>()V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sput-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-11-15 02:21:15 +00:00
invoke-static {}, Landroidx/appcompat/widget/ResourceManagerInternal;->get()Landroidx/appcompat/widget/ResourceManagerInternal;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iput-object v2, v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
sget-object v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->INSTANCE:Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
iget-object v1, v1, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
new-instance v2, Landroidx/appcompat/widget/AppCompatDrawableManager$1;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-direct {v2}, Landroidx/appcompat/widget/AppCompatDrawableManager$1;-><init>()V
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v1, v2}, Landroidx/appcompat/widget/ResourceManagerInternal;->setHooks(Landroidx/appcompat/widget/ResourceManagerInternal$ResourceManagerHooks;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:cond_0
monitor-exit v0
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
return-void
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
:catchall_0
move-exception v1
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
monitor-exit v0
2019-10-11 21:55:41 +00:00
2019-11-15 02:21:15 +00:00
throw v1
.end method
2019-10-11 21:55:41 +00:00
2019-12-06 03:29:40 +00:00
.method public static tintDrawable(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;[I)V
2019-11-15 02:21:15 +00:00
.locals 0
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-static {p0, p1, p2}, Landroidx/appcompat/widget/ResourceManagerInternal;->tintDrawable(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;[I)V
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public declared-synchronized getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
monitor-enter p0
2019-11-14 21:08:15 +00:00
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/ResourceManagerInternal;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public declared-synchronized getDrawable(Landroid/content/Context;IZ)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v0, p1, p2, p3}, Landroidx/appcompat/widget/ResourceManagerInternal;->getDrawable(Landroid/content/Context;IZ)Landroid/graphics/drawable/Drawable;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
2019-11-15 02:21:15 +00:00
return-object p1
2019-07-24 11:27:29 +00:00
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public declared-synchronized getTintList(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/ResourceManagerInternal;->getTintList(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
2019-11-14 21:08:15 +00:00
2019-11-15 02:21:15 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
2019-11-15 02:21:15 +00:00
return-object p1
2019-07-24 11:27:29 +00:00
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public declared-synchronized onConfigurationChanged(Landroid/content/Context;)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/ResourceManagerInternal;->onConfigurationChanged(Landroid/content/Context;)V
2019-07-24 11:27:29 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
2019-12-06 03:29:40 +00:00
.method public declared-synchronized onDrawableLoadedFromResources(Landroid/content/Context;Landroidx/appcompat/widget/VectorEnabledTintResources;I)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Landroidx/appcompat/widget/VectorEnabledTintResources;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
monitor-enter p0
:try_start_0
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
2019-07-24 11:27:29 +00:00
2019-11-15 02:21:15 +00:00
invoke-virtual {v0, p1, p2, p3}, Landroidx/appcompat/widget/ResourceManagerInternal;->onDrawableLoadedFromResources(Landroid/content/Context;Landroidx/appcompat/widget/VectorEnabledTintResources;I)Landroid/graphics/drawable/Drawable;
2019-07-24 11:27:29 +00:00
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-object p1
2019-11-14 21:08:15 +00:00
:catchall_0
move-exception p1
2019-11-10 14:21:47 +00:00
2019-11-14 21:08:15 +00:00
monitor-exit p0
2019-11-10 14:21:47 +00:00
2019-11-14 21:08:15 +00:00
throw p1
2019-11-10 14:21:47 +00:00
.end method
2019-11-15 02:21:15 +00:00
2019-12-06 03:29:40 +00:00
.method public tintDrawableUsingColorFilter(Landroid/content/Context;ILandroid/graphics/drawable/Drawable;)Z
2019-11-15 02:21:15 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
.param p3 # Landroid/graphics/drawable/Drawable;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
2019-11-15 02:21:15 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatDrawableManager;->mResourceManager:Landroidx/appcompat/widget/ResourceManagerInternal;
invoke-virtual {v0, p1, p2, p3}, Landroidx/appcompat/widget/ResourceManagerInternal;->tintDrawableUsingColorFilter(Landroid/content/Context;ILandroid/graphics/drawable/Drawable;)Z
move-result p1
return p1
.end method