57 lines
1.4 KiB
Smali
57 lines
1.4 KiB
Smali
|
.class public Landroidx/core/graphics/BlendModeColorFilterCompat;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "BlendModeColorFilterCompat.java"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static createBlendModeColorFilterCompat(ILandroidx/core/graphics/BlendModeCompat;)Landroid/graphics/ColorFilter;
|
||
|
.locals 3
|
||
|
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
const/16 v2, 0x1d
|
||
|
|
||
|
if-lt v0, v2, :cond_1
|
||
|
|
||
|
invoke-static {p1}, Landroidx/core/graphics/BlendModeUtils;->obtainBlendModeFromCompat(Landroidx/core/graphics/BlendModeCompat;)Landroid/graphics/BlendMode;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
new-instance v0, Landroid/graphics/BlendModeColorFilter;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroid/graphics/BlendModeColorFilter;-><init>(ILandroid/graphics/BlendMode;)V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
return-object v1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-static {p1}, Landroidx/core/graphics/BlendModeUtils;->obtainPorterDuffFromCompat(Landroidx/core/graphics/BlendModeCompat;)Landroid/graphics/PorterDuff$Mode;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_2
|
||
|
|
||
|
new-instance v0, Landroid/graphics/PorterDuffColorFilter;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_2
|
||
|
return-object v1
|
||
|
.end method
|