added dev verifs
test test
This commit is contained in:
@@ -0,0 +1,272 @@
|
||||
package com.vk.core.utils;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.Log;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.core.content.ContextCompat;
|
||||
import b.h.z.e;
|
||||
import com.vk.core.drawable.RecoloredDrawable;
|
||||
import com.vk.core.extensions.TextViewExt;
|
||||
import com.vk.core.ui.themes.MilkshakeHelper;
|
||||
import com.vk.core.ui.themes.VKThemeHelper;
|
||||
import com.vk.dto.common.VerifyInfo;
|
||||
import com.vk.extensions.ViewExtKt;
|
||||
import ru.vtosters.lite.utils.ThemesUtils;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public final class VerifyInfoHelper {
|
||||
public static final VerifyInfoHelper h;
|
||||
|
||||
public static Integer enumSwitchMapping(VerifyInfoHelper.ColorTheme color) {
|
||||
Map<VerifyInfoHelper.ColorTheme, Integer> enumSwitchMapping = new HashMap<>();
|
||||
enumSwitchMapping.put(VerifyInfoHelper.ColorTheme.normal, 1);
|
||||
enumSwitchMapping.put(VerifyInfoHelper.ColorTheme.light, 2);
|
||||
enumSwitchMapping.put(VerifyInfoHelper.ColorTheme.ultraLight, 3);
|
||||
enumSwitchMapping.put(VerifyInfoHelper.ColorTheme.white, 4);
|
||||
|
||||
return enumSwitchMapping.get(color);
|
||||
}
|
||||
|
||||
public enum ColorTheme {
|
||||
white,
|
||||
normal,
|
||||
light,
|
||||
ultraLight
|
||||
}
|
||||
|
||||
static {
|
||||
h = new VerifyInfoHelper();
|
||||
}
|
||||
|
||||
private VerifyInfoHelper() {
|
||||
}
|
||||
|
||||
private int a() {
|
||||
return ThemesUtils.getAccentColor();
|
||||
}
|
||||
|
||||
private int b() {
|
||||
return ThemesUtils.getAccentColor();
|
||||
}
|
||||
|
||||
private int c() {
|
||||
return ThemesUtils.getColor(com.vtosters.lite.R.color.fire_orange);
|
||||
}
|
||||
|
||||
private int d() {
|
||||
return ThemesUtils.getColor(com.vtosters.lite.R.color.light_blue);
|
||||
}
|
||||
|
||||
private int e() {
|
||||
return ThemesUtils.getColor(com.vtosters.lite.R.color.white_alpha60);
|
||||
}
|
||||
|
||||
private int f() {
|
||||
return ThemesUtils.getColor(com.vtosters.lite.R.color.white);
|
||||
}
|
||||
|
||||
public int a(ColorTheme colorTheme) {
|
||||
return switch (enumSwitchMapping(colorTheme)) {
|
||||
case 1, 2 -> c();
|
||||
case 3 -> e();
|
||||
case 4 -> d();
|
||||
default -> 0;
|
||||
};
|
||||
}
|
||||
|
||||
public Drawable a(VerifyInfo verifyInfo, Context context) {
|
||||
return a(this, verifyInfo, context, null, 4, null);
|
||||
}
|
||||
|
||||
public Drawable a(boolean z, boolean z2, boolean dev, Context context) {
|
||||
return b(this, z, z2, dev, context, null, 8, null);
|
||||
}
|
||||
|
||||
public Drawable a(boolean z, boolean z2, Context context) {
|
||||
return b(this, z, z2, false, context, null, 8, null);
|
||||
}
|
||||
|
||||
|
||||
public int b(ColorTheme colorTheme) {
|
||||
return a(colorTheme);
|
||||
}
|
||||
|
||||
public int c(ColorTheme colorTheme) {
|
||||
return switch (enumSwitchMapping(colorTheme)) {
|
||||
case 1 -> MilkshakeHelper.e() ? b() : a();
|
||||
case 2 -> d();
|
||||
case 3 -> e();
|
||||
case 4 -> f();
|
||||
default -> 0;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
public Drawable b(Context context, VerifyInfo verifyInfo) {
|
||||
if (verifyInfo.dev()) {
|
||||
return new RecoloredDrawable(ContextCompat.getDrawable(context, e.ic_bug_24), c(ColorTheme.normal));
|
||||
} else if (verifyInfo.t1() && verifyInfo.u1()) {
|
||||
return ContextCompat.getDrawable(context, e.ic_fire_verified_border_composite_20_xml);
|
||||
} else if (verifyInfo.t1()) {
|
||||
return ContextCompat.getDrawable(context, e.ic_fire_border_composite_20_xml);
|
||||
} else if (verifyInfo.u1()) {
|
||||
return new RecoloredDrawable(ContextCompat.getDrawable(context, e.verified_16), c(ColorTheme.normal));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Drawable b(VerifyInfo verifyInfo, Context context, ColorTheme colorTheme) {
|
||||
return b(verifyInfo.u1(), verifyInfo.t1(), verifyInfo.dev(), context, colorTheme);
|
||||
}
|
||||
|
||||
public static Drawable b(VerifyInfoHelper verifyInfoHelper, boolean z, boolean z2, boolean dev, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
if ((i & 8) != 0) {
|
||||
colorTheme = ColorTheme.normal;
|
||||
}
|
||||
return verifyInfoHelper.b(z, z2, dev, context, colorTheme);
|
||||
}
|
||||
|
||||
public static Drawable b(VerifyInfoHelper verifyInfoHelper, VerifyInfo verifyInfo, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
return b(verifyInfoHelper, verifyInfo.u1(), verifyInfo.t1(), verifyInfo.dev(), context, colorTheme, i, obj);
|
||||
}
|
||||
|
||||
public static Drawable b(VerifyInfoHelper verifyInfoHelper, boolean z, boolean z2, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
return b(verifyInfoHelper, z, z2, false, context, colorTheme, i, obj);
|
||||
}
|
||||
|
||||
public Drawable a(Context context, VerifyInfo verifyInfo) {
|
||||
if (verifyInfo.dev()) {
|
||||
return new RecoloredDrawable(ContextCompat.getDrawable(context, e.ic_bug_24), c(ColorTheme.normal));
|
||||
} else if (verifyInfo.t1() && verifyInfo.u1()) {
|
||||
return ContextCompat.getDrawable(context, e.ic_fire_verified_border_composite_20_xml);
|
||||
} else if (verifyInfo.t1()) {
|
||||
return ContextCompat.getDrawable(context, e.ic_fire_border_composite_20_xml);
|
||||
} else if (verifyInfo.u1() && VKThemeHelper.s()) {
|
||||
return ContextCompat.getDrawable(context, e.verified_badge_light_24);
|
||||
} else if (verifyInfo.u1() && VKThemeHelper.r()) {
|
||||
return ContextCompat.getDrawable(context, e.verified_badge_dark_24);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public Drawable b(boolean z, boolean z2, Context context, ColorTheme colorTheme) {
|
||||
return b(z, z2, false, context, colorTheme);
|
||||
}
|
||||
|
||||
public Drawable b(boolean z, boolean z2, boolean dev, Context context, ColorTheme colorTheme) {
|
||||
int i = 0;
|
||||
int c2 = 0;
|
||||
|
||||
if (dev) {
|
||||
i = e.ic_bug_24;
|
||||
c2 = c(colorTheme);
|
||||
} else if (z2 && z) {
|
||||
i = e.ic_fire_verified_16;
|
||||
c2 = b(colorTheme);
|
||||
} else if (z2) {
|
||||
i = e.ic_fire_16;
|
||||
c2 = a(colorTheme);
|
||||
} else if (z) {
|
||||
i = e.verified_16;
|
||||
c2 = c(colorTheme);
|
||||
} else {
|
||||
Log.d("VerifyInfoHelper", "Use VerifyInfo.has()");
|
||||
}
|
||||
|
||||
return new RecoloredDrawable(ContextCompat.getDrawable(context, i), c2);
|
||||
}
|
||||
|
||||
public static Drawable a(VerifyInfoHelper verifyInfoHelper, VerifyInfo verifyInfo, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
if ((i & 4) != 0) {
|
||||
colorTheme = ColorTheme.normal;
|
||||
}
|
||||
return verifyInfoHelper.b(verifyInfo, context, colorTheme);
|
||||
}
|
||||
|
||||
public Drawable a(VerifyInfo verifyInfo, Context context, ColorTheme colorTheme) {
|
||||
return a(verifyInfo.u1(), verifyInfo.t1(), verifyInfo.dev(), context, colorTheme);
|
||||
}
|
||||
|
||||
public static Drawable a(VerifyInfoHelper verifyInfoHelper, boolean z, boolean z2, boolean dev, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
if ((i & 8) != 0) {
|
||||
colorTheme = ColorTheme.normal;
|
||||
}
|
||||
return verifyInfoHelper.a(z, z2, dev, context, colorTheme);
|
||||
}
|
||||
|
||||
public static Drawable a(VerifyInfoHelper verifyInfoHelper, boolean z, boolean z2, Context context, ColorTheme colorTheme, int i, Object obj) {
|
||||
return a(verifyInfoHelper, z, z2, false, context, colorTheme, i, obj);
|
||||
}
|
||||
|
||||
public Drawable a(boolean z, boolean z2, Context context, ColorTheme colorTheme) {
|
||||
return a(z, z2, false, context, colorTheme);
|
||||
}
|
||||
|
||||
public Drawable a(boolean z, boolean z2, boolean dev, Context context, ColorTheme colorTheme) {
|
||||
int i = 0;
|
||||
int c2 = 0;
|
||||
|
||||
if (dev) {
|
||||
i = e.ic_bug_24;
|
||||
c2 = c(colorTheme);
|
||||
} else if (z2 && z) {
|
||||
i = e.ic_fire_verified_12;
|
||||
c2 = b(colorTheme);
|
||||
} else if (z2) {
|
||||
i = e.ic_fire_12;
|
||||
c2 = a(colorTheme);
|
||||
} else if (z) {
|
||||
i = e.verified_12;
|
||||
c2 = c(colorTheme);
|
||||
} else {
|
||||
Log.d("VerifyInfoHelper", "Use VerifyInfo.has()");
|
||||
}
|
||||
|
||||
return new RecoloredDrawable(ContextCompat.getDrawable(context, i), c2);
|
||||
}
|
||||
|
||||
public static void a(VerifyInfoHelper verifyInfoHelper, TextView textView, VerifyInfo verifyInfo, boolean z, ColorTheme colorTheme, int i, Object obj) {
|
||||
if ((i & 4) != 0) {
|
||||
z = false;
|
||||
}
|
||||
if ((i & 8) != 0) {
|
||||
colorTheme = ColorTheme.normal;
|
||||
}
|
||||
verifyInfoHelper.a(textView, verifyInfo, z, colorTheme);
|
||||
}
|
||||
|
||||
public void a(TextView textView, VerifyInfo verifyInfo, boolean z, ColorTheme colorTheme) {
|
||||
Drawable drawable;
|
||||
Context context = textView.getContext();
|
||||
if (verifyInfo == null || !verifyInfo.v1() || context == null) {
|
||||
drawable = null;
|
||||
} else {
|
||||
drawable = z ? a(verifyInfo, context, colorTheme) : b(verifyInfo, context, colorTheme);
|
||||
}
|
||||
TextViewExt.a(textView, drawable);
|
||||
}
|
||||
|
||||
public void a(ImageView imageView, boolean z, VerifyInfo verifyInfo) {
|
||||
Drawable b2;
|
||||
if (verifyInfo != null && verifyInfo.v1()) {
|
||||
if (z) {
|
||||
Context context = imageView.getContext();
|
||||
b2 = a(context, verifyInfo);
|
||||
} else {
|
||||
Context context2 = imageView.getContext();
|
||||
b2 = b(context2, verifyInfo);
|
||||
}
|
||||
imageView.setImageDrawable(b2);
|
||||
ViewExtKt.r(imageView);
|
||||
return;
|
||||
}
|
||||
ViewExtKt.p(imageView);
|
||||
}
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
invoke-static {}, Lru/vtosters/lite/utils/ThemesUtils;->getAccentColor()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -1,82 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
.line 2
|
||||
invoke-static {}, Lru/vtosters/lite/utils/ThemesUtils;->getAccentColor()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -1,86 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
.line 2
|
||||
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
||||
|
||||
sget v1, Lb/h/z/c;->fire_orange:I
|
||||
|
||||
invoke-static {v0, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -1,86 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
.line 2
|
||||
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
||||
|
||||
sget v1, Lb/h/z/c;->light_blue:I
|
||||
|
||||
invoke-static {v1}, Lru/vtosters/lite/utils/ThemesUtils;->getColor(I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -1,86 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
.line 2
|
||||
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
||||
|
||||
sget v1, Lb/h/z/c;->white_alpha60:I
|
||||
|
||||
invoke-static {v0, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
@@ -1,86 +0,0 @@
|
||||
.class final Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;
|
||||
.super Lkotlin/jvm/internal/Lambda;
|
||||
.source "VerifyInfoHelper.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Lkotlin/jvm/b/Functions;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lcom/vk/core/utils/VerifyInfoHelper;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x18
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Lkotlin/jvm/internal/Lambda;",
|
||||
"Lkotlin/jvm/b/Functions<",
|
||||
"Ljava/lang/Integer;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;
|
||||
|
||||
invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;-><init>()V
|
||||
|
||||
sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;-><init>(I)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final invoke()I
|
||||
.locals 2
|
||||
|
||||
.line 2
|
||||
sget-object v0, Lcom/vk/core/util/AppContextHolder;->a:Landroid/content/Context;
|
||||
|
||||
sget v1, Lb/h/z/c;->white:I
|
||||
|
||||
invoke-static {v0, v1}, Landroidx/core/content/ContextCompat;->getColor(Landroid/content/Context;I)I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public bridge synthetic invoke()Ljava/lang/Object;
|
||||
.locals 1
|
||||
|
||||
.line 1
|
||||
invoke-virtual {p0}, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;->invoke()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
File diff suppressed because it is too large
Load Diff
@@ -872,7 +872,11 @@
|
||||
|
||||
sget-object v10, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->light:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;
|
||||
|
||||
invoke-virtual {v9, v6, v1, v7, v10}, Lcom/vk/core/utils/VerifyInfoHelper;->b(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable;
|
||||
invoke-virtual/range {p1 .. p1}, Lcom/vk/dto/discover/DiscoverItem;->N1()Lcom/vk/dto/common/VerifyInfo;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
invoke-virtual {v9, v11, v7, v10}, Lcom/vk/core/utils/VerifyInfoHelper;->b(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
|
||||
@@ -368,7 +368,7 @@
|
||||
|
||||
move-result-object v4
|
||||
|
||||
invoke-virtual {v3, v2, v0, v4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(ZZLandroid/content/Context;)Landroid/graphics/drawable/Drawable;
|
||||
invoke-virtual {v3, p1, v4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;)Landroid/graphics/drawable/Drawable;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user