From dc91f59048c0d70861c42933bdcf6bc7c42d3ddd Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Thu, 2 Mar 2023 15:56:47 +0300 Subject: [PATCH] added dev verifs test test --- .../com/vk/core/utils/VerifyInfoHelper.java | 272 +++++ .../VerifyInfoHelper$colorAccentBlue$2.smali | 81 -- .../VerifyInfoHelper$colorBlue200$2.smali | 82 -- .../VerifyInfoHelper$colorFireOrange$2.smali | 86 -- .../VerifyInfoHelper$colorLightBlue$2.smali | 86 -- .../VerifyInfoHelper$colorProfile$2.smali | 86 -- .../utils/VerifyInfoHelper$colorWhite$2.smali | 86 -- .../com/vk/core/utils/VerifyInfoHelper.smali | 1088 ----------------- .../com/vk/discover/holders/PostHolder.smali | 6 +- .../lite/ui/holder/FriendRequestHolder.smali | 2 +- 10 files changed, 278 insertions(+), 1597 deletions(-) create mode 100644 app/src/main/java/com/vk/core/utils/VerifyInfoHelper.java delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorBlue200$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorFireOrange$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorLightBlue$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorProfile$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorWhite$2.smali delete mode 100644 smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper.smali diff --git a/app/src/main/java/com/vk/core/utils/VerifyInfoHelper.java b/app/src/main/java/com/vk/core/utils/VerifyInfoHelper.java new file mode 100644 index 000000000..717bb9ecd --- /dev/null +++ b/app/src/main/java/com/vk/core/utils/VerifyInfoHelper.java @@ -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 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); + } +} \ No newline at end of file diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2.smali deleted file mode 100644 index a4db283c6..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorBlue200$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorBlue200$2.smali deleted file mode 100644 index 841bdf68c..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorBlue200$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorFireOrange$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorFireOrange$2.smali deleted file mode 100644 index 4902e89a2..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorFireOrange$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorLightBlue$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorLightBlue$2.smali deleted file mode 100644 index 190539f14..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorLightBlue$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorProfile$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorProfile$2.smali deleted file mode 100644 index 99c33440c..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorProfile$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorWhite$2.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorWhite$2.smali deleted file mode 100644 index 40300615a..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper$colorWhite$2.smali +++ /dev/null @@ -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 ()V - .locals 1 - - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;->()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 ()V - .locals 1 - - const/4 v0, 0x0 - - invoke-direct {p0, v0}, Lkotlin/jvm/internal/Lambda;->(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 diff --git a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper.smali b/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper.smali deleted file mode 100644 index 82c440a00..000000000 --- a/smali/smali_classes2/com/vk/core/utils/VerifyInfoHelper.smali +++ /dev/null @@ -1,1088 +0,0 @@ -.class public final Lcom/vk/core/utils/VerifyInfoHelper; -.super Ljava/lang/Object; -.source "VerifyInfoHelper.kt" - - -# annotations -.annotation system Ldalvik/annotation/MemberClasses; - value = { - Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - } -.end annotation - - -# static fields -.field static final synthetic a:[Lkotlin/u/KProperty5; - -.field private static final b:Lkotlin/Lazy2; - -.field private static final c:Lkotlin/Lazy2; - -.field private static final d:Lkotlin/Lazy2; - -.field private static final e:Lkotlin/Lazy2; - -.field private static final f:Lkotlin/Lazy2; - -.field private static final g:Lkotlin/Lazy2; - -.field public static final h:Lcom/vk/core/utils/VerifyInfoHelper; - - -# direct methods -.method static constructor ()V - .locals 6 - - const-class v0, Lcom/vk/core/utils/VerifyInfoHelper; - - const/4 v1, 0x6 - - new-array v1, v1, [Lkotlin/u/KProperty5; - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v3 - - const-string v4, "colorLightBlue" - - const-string v5, "getColorLightBlue()I" - - invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v3, 0x0 - - aput-object v2, v1, v3 - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v3 - - const-string v4, "colorAccentBlue" - - const-string v5, "getColorAccentBlue()I" - - invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v3, 0x1 - - aput-object v2, v1, v3 - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v3 - - const-string v4, "colorBlue200" - - const-string v5, "getColorBlue200()I" - - invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v3, 0x2 - - aput-object v2, v1, v3 - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v3 - - const-string v4, "colorFireOrange" - - const-string v5, "getColorFireOrange()I" - - invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v3, 0x3 - - aput-object v2, v1, v3 - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v3 - - const-string v4, "colorWhite" - - const-string v5, "getColorWhite()I" - - invoke-direct {v2, v3, v4, v5}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v3, 0x4 - - aput-object v2, v1, v3 - - new-instance v2, Lkotlin/jvm/internal/PropertyReference1Impl; - - invoke-static {v0}, Lkotlin/jvm/internal/Reflection;->a(Ljava/lang/Class;)Lkotlin/u/KClass; - - move-result-object v0 - - const-string v3, "colorProfile" - - const-string v4, "getColorProfile()I" - - invoke-direct {v2, v0, v3, v4}, Lkotlin/jvm/internal/PropertyReference1Impl;->(Lkotlin/u/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V - - invoke-static {v2}, Lkotlin/jvm/internal/Reflection;->a(Lkotlin/jvm/internal/PropertyReference1;)Lkotlin/u/KProperty2; - - const/4 v0, 0x5 - - aput-object v2, v1, v0 - - sput-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - .line 1 - new-instance v0, Lcom/vk/core/utils/VerifyInfoHelper; - - invoke-direct {v0}, Lcom/vk/core/utils/VerifyInfoHelper;->()V - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->h:Lcom/vk/core/utils/VerifyInfoHelper; - - .line 2 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorLightBlue$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->b:Lkotlin/Lazy2; - - .line 3 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorAccentBlue$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->c:Lkotlin/Lazy2; - - .line 4 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorBlue200$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->d:Lkotlin/Lazy2; - - .line 5 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorFireOrange$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->e:Lkotlin/Lazy2; - - .line 6 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorWhite$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->f:Lkotlin/Lazy2; - - .line 7 - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2;->a:Lcom/vk/core/utils/VerifyInfoHelper$colorProfile$2; - - invoke-static {v0}, Lkotlin/g;->a(Lkotlin/jvm/b/Functions;)Lkotlin/Lazy2; - - move-result-object v0 - - sput-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->g:Lkotlin/Lazy2; - - return-void -.end method - -.method private constructor ()V - .locals 0 - - .line 1 - invoke-direct {p0}, Ljava/lang/Object;->()V - - return-void -.end method - -.method private final a()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->c:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x1 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - -.method public static synthetic a(Lcom/vk/core/utils/VerifyInfoHelper;Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)Landroid/graphics/drawable/Drawable; - .locals 0 - - and-int/lit8 p4, p4, 0x4 - - if-eqz p4, :cond_0 - - .line 10 - sget-object p3, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->normal:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - - :cond_0 - invoke-virtual {p0, p1, p2, p3}, 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 p0 - - return-object p0 -.end method - -.method public static synthetic a(Lcom/vk/core/utils/VerifyInfoHelper;ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)Landroid/graphics/drawable/Drawable; - .locals 0 - - and-int/lit8 p5, p5, 0x8 - - if-eqz p5, :cond_0 - - .line 12 - sget-object p4, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->normal:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - - :cond_0 - invoke-virtual {p0, p1, p2, p3, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - - move-result-object p0 - - return-object p0 -.end method - -.method public static synthetic a(Lcom/vk/core/utils/VerifyInfoHelper;Landroid/widget/TextView;Lcom/vk/dto/common/VerifyInfo;ZLcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)V - .locals 0 - - and-int/lit8 p6, p5, 0x4 - - if-eqz p6, :cond_0 - - const/4 p3, 0x0 - - :cond_0 - and-int/lit8 p5, p5, 0x8 - - if-eqz p5, :cond_1 - - .line 21 - sget-object p4, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->normal:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - - :cond_1 - invoke-virtual {p0, p1, p2, p3, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Landroid/widget/TextView;Lcom/vk/dto/common/VerifyInfo;ZLcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)V - - return-void -.end method - -.method private final b()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->d:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x2 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - -.method public static synthetic b(Lcom/vk/core/utils/VerifyInfoHelper;ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)Landroid/graphics/drawable/Drawable; - .locals 0 - - and-int/lit8 p5, p5, 0x8 - - if-eqz p5, :cond_0 - - .line 6 - sget-object p4, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->normal:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - - :cond_0 - invoke-virtual {p0, p1, p2, p3, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->b(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - - move-result-object p0 - - return-object p0 -.end method - -.method private final c()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->e:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x3 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - -.method private final d()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->b:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x0 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - -.method private final e()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->g:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x5 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - -.method private final f()I - .locals 3 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper;->f:Lkotlin/Lazy2; - - sget-object v1, Lcom/vk/core/utils/VerifyInfoHelper;->a:[Lkotlin/u/KProperty5; - - const/4 v2, 0x4 - - aget-object v1, v1, v2 - - invoke-interface {v0}, Lkotlin/Lazy2;->getValue()Ljava/lang/Object; - - move-result-object v0 - - check-cast v0, Ljava/lang/Number; - - invoke-virtual {v0}, Ljava/lang/Number;->intValue()I - - move-result v0 - - return v0 -.end method - - -# virtual methods -.method public final a(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - .locals 1 - - .line 1 - sget-object v0, Lcom/vk/core/utils/h;->$EnumSwitchMapping$1:[I - - invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I - - move-result p1 - - aget p1, v0, p1 - - const/4 v0, 0x1 - - if-eq p1, v0, :cond_3 - - const/4 v0, 0x2 - - if-eq p1, v0, :cond_2 - - const/4 v0, 0x3 - - if-eq p1, v0, :cond_1 - - const/4 v0, 0x4 - - if-ne p1, v0, :cond_0 - - .line 2 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->f()I - - move-result p1 - - goto :goto_0 - - :cond_0 - new-instance p1, Lkotlin/NoWhenBranchMatchedException; - - invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;->()V - - throw p1 - - .line 3 - :cond_1 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->e()I - - move-result p1 - - goto :goto_0 - - .line 4 - :cond_2 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->c()I - - move-result p1 - - goto :goto_0 - - .line 5 - :cond_3 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->c()I - - move-result p1 - - :goto_0 - return p1 -.end method - -.method public final a(Landroid/content/Context;Lcom/vk/dto/common/VerifyInfo;)Landroid/graphics/drawable/Drawable; - .locals 1 - - .line 6 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result v0 - - if-eqz v0, :cond_0 - - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result v0 - - if-eqz v0, :cond_0 - - sget p2, Lb/h/z/e;->ic_fire_verified_border_composite_20_xml:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - .line 7 - :cond_0 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result v0 - - if-eqz v0, :cond_1 - - sget p2, Lb/h/z/e;->ic_fire_border_composite_20_xml:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - .line 8 - :cond_1 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result v0 - - if-eqz v0, :cond_2 - - invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->s()Z - - move-result v0 - - if-eqz v0, :cond_2 - - sget p2, Lb/h/z/e;->verified_badge_light_24:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - .line 9 - :cond_2 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result p2 - - if-eqz p2, :cond_3 - - invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->r()Z - - move-result p2 - - if-eqz p2, :cond_3 - - sget p2, Lb/h/z/e;->verified_badge_dark_24:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - :cond_3 - const/4 p1, 0x0 - - :goto_0 - return-object p1 -.end method - -.method public final a(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;)Landroid/graphics/drawable/Drawable; - .locals 6 - - const/4 v3, 0x0 - - const/4 v4, 0x4 - - const/4 v5, 0x0 - - move-object v0, p0 - - move-object v1, p1 - - move-object v2, p2 - - invoke-static/range {v0 .. v5}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/core/utils/VerifyInfoHelper;Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - return-object p1 -.end method - -.method public final a(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - .locals 1 - - .line 11 - invoke-virtual {p1}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result v0 - - invoke-virtual {p1}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result p1 - - invoke-virtual {p0, v0, p1, p2, p3}, Lcom/vk/core/utils/VerifyInfoHelper;->a(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - return-object p1 -.end method - -.method public final a(ZZLandroid/content/Context;)Landroid/graphics/drawable/Drawable; - .locals 7 - - const/4 v4, 0x0 - - const/16 v5, 0x8 - - const/4 v6, 0x0 - - move-object v0, p0 - - move v1, p1 - - move v2, p2 - - move-object v3, p3 - - invoke-static/range {v0 .. v6}, Lcom/vk/core/utils/VerifyInfoHelper;->b(Lcom/vk/core/utils/VerifyInfoHelper;ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;ILjava/lang/Object;)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - return-object p1 -.end method - -.method public final a(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - .locals 0 - - if-eqz p2, :cond_0 - - if-eqz p1, :cond_0 - - .line 13 - sget p1, Lb/h/z/e;->ic_fire_verified_12:I - - .line 14 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->b(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - goto :goto_0 - - :cond_0 - if-eqz p2, :cond_1 - - .line 15 - sget p1, Lb/h/z/e;->ic_fire_12:I - - .line 16 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - goto :goto_0 - - :cond_1 - if-eqz p1, :cond_2 - - .line 17 - sget p1, Lb/h/z/e;->verified_12:I - - .line 18 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->c(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - .line 19 - :goto_0 - new-instance p4, Lcom/vk/core/drawable/RecoloredDrawable; - - invoke-static {p3, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - invoke-direct {p4, p1, p2}, Lcom/vk/core/drawable/RecoloredDrawable;->(Landroid/graphics/drawable/Drawable;I)V - - return-object p4 - - .line 20 - :cond_2 - new-instance p1, Ljava/lang/RuntimeException; - - const-string p2, "Use VerifyInfo.has()" - - invoke-direct {p1, p2}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V - - throw p1 -.end method - -.method public final a(Landroid/widget/ImageView;ZLcom/vk/dto/common/VerifyInfo;)V - .locals 2 - - if-eqz p3, :cond_1 - - .line 26 - invoke-virtual {p3}, Lcom/vk/dto/common/VerifyInfo;->v1()Z - - move-result v0 - - const/4 v1, 0x1 - - if-ne v0, v1, :cond_1 - - const-string v0, "view.context" - - if-eqz p2, :cond_0 - - .line 27 - invoke-virtual {p1}, Landroid/widget/ImageView;->getContext()Landroid/content/Context; - - move-result-object p2 - - invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V - - invoke-virtual {p0, p2, p3}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Landroid/content/Context;Lcom/vk/dto/common/VerifyInfo;)Landroid/graphics/drawable/Drawable; - - move-result-object p2 - - goto :goto_0 - - :cond_0 - invoke-virtual {p1}, Landroid/widget/ImageView;->getContext()Landroid/content/Context; - - move-result-object p2 - - invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->a(Ljava/lang/Object;Ljava/lang/String;)V - - invoke-virtual {p0, p2, p3}, Lcom/vk/core/utils/VerifyInfoHelper;->b(Landroid/content/Context;Lcom/vk/dto/common/VerifyInfo;)Landroid/graphics/drawable/Drawable; - - move-result-object p2 - - :goto_0 - invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V - - .line 28 - invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->r(Landroid/view/View;)V - - goto :goto_1 - - .line 29 - :cond_1 - invoke-static {p1}, Lcom/vk/extensions/ViewExtKt;->p(Landroid/view/View;)V - - :goto_1 - return-void -.end method - -.method public final a(Landroid/widget/TextView;Lcom/vk/dto/common/VerifyInfo;ZLcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)V - .locals 2 - - .line 22 - invoke-virtual {p1}, Landroid/widget/TextView;->getContext()Landroid/content/Context; - - move-result-object v0 - - if-eqz p2, :cond_1 - - .line 23 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->v1()Z - - move-result v1 - - if-eqz v1, :cond_1 - - if-eqz v0, :cond_1 - - if-eqz p3, :cond_0 - - .line 24 - invoke-virtual {p0, p2, v0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - - move-result-object p2 - - goto :goto_0 - - :cond_0 - invoke-virtual {p0, p2, v0, p4}, 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 p2 - - goto :goto_0 - - :cond_1 - const/4 p2, 0x0 - - .line 25 - :goto_0 - invoke-static {p1, p2}, Lcom/vk/core/extensions/TextViewExt;->a(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;)V - - return-void -.end method - -.method public final b(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - .locals 0 - - .line 1 - invoke-virtual {p0, p1}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p1 - - return p1 -.end method - -.method public final b(Landroid/content/Context;Lcom/vk/dto/common/VerifyInfo;)Landroid/graphics/drawable/Drawable; - .locals 1 - - .line 2 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result v0 - - if-eqz v0, :cond_0 - - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result v0 - - if-eqz v0, :cond_0 - - sget p2, Lb/h/z/e;->ic_fire_verified_border_composite_20_xml:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - .line 3 - :cond_0 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result v0 - - if-eqz v0, :cond_1 - - sget p2, Lb/h/z/e;->ic_fire_border_composite_20_xml:I - - invoke-static {p1, p2}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - goto :goto_0 - - .line 4 - :cond_1 - invoke-virtual {p2}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result p2 - - if-eqz p2, :cond_2 - - new-instance p2, Lcom/vk/core/drawable/RecoloredDrawable; - - sget v0, Lb/h/z/e;->verified_16:I - - invoke-static {p1, v0}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - sget-object v0, Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;->normal:Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme; - - invoke-virtual {p0, v0}, Lcom/vk/core/utils/VerifyInfoHelper;->c(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result v0 - - invoke-direct {p2, p1, v0}, Lcom/vk/core/drawable/RecoloredDrawable;->(Landroid/graphics/drawable/Drawable;I)V - - move-object p1, p2 - - goto :goto_0 - - :cond_2 - const/4 p1, 0x0 - - :goto_0 - return-object p1 -.end method - -.method public final b(Lcom/vk/dto/common/VerifyInfo;Landroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - .locals 1 - - .line 5 - invoke-virtual {p1}, Lcom/vk/dto/common/VerifyInfo;->u1()Z - - move-result v0 - - invoke-virtual {p1}, Lcom/vk/dto/common/VerifyInfo;->t1()Z - - move-result p1 - - invoke-virtual {p0, v0, p1, p2, p3}, Lcom/vk/core/utils/VerifyInfoHelper;->b(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - return-object p1 -.end method - -.method public final b(ZZLandroid/content/Context;Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)Landroid/graphics/drawable/Drawable; - .locals 0 - - if-eqz p2, :cond_0 - - if-eqz p1, :cond_0 - - .line 7 - sget p1, Lb/h/z/e;->ic_fire_verified_16:I - - .line 8 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->b(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - goto :goto_0 - - :cond_0 - if-eqz p2, :cond_1 - - .line 9 - sget p1, Lb/h/z/e;->ic_fire_16:I - - .line 10 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->a(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - goto :goto_0 - - :cond_1 - if-eqz p1, :cond_2 - - .line 11 - sget p1, Lb/h/z/e;->verified_16:I - - .line 12 - invoke-virtual {p0, p4}, Lcom/vk/core/utils/VerifyInfoHelper;->c(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - - move-result p2 - - .line 13 - :goto_0 - new-instance p4, Lcom/vk/core/drawable/RecoloredDrawable; - - invoke-static {p3, p1}, Landroidx/core/content/ContextCompat;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; - - move-result-object p1 - - invoke-direct {p4, p1, p2}, Lcom/vk/core/drawable/RecoloredDrawable;->(Landroid/graphics/drawable/Drawable;I)V - - return-object p4 - - .line 14 - :cond_2 - new-instance p1, Ljava/lang/RuntimeException; - - const-string p2, "Use VerifyInfo.has()" - - invoke-direct {p1, p2}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V - - throw p1 -.end method - -.method public final c(Lcom/vk/core/utils/VerifyInfoHelper$ColorTheme;)I - .locals 1 - - .line 1 - sget-object v0, Lcom/vk/core/utils/h;->$EnumSwitchMapping$0:[I - - invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I - - move-result p1 - - aget p1, v0, p1 - - const/4 v0, 0x1 - - if-eq p1, v0, :cond_3 - - const/4 v0, 0x2 - - if-eq p1, v0, :cond_2 - - const/4 v0, 0x3 - - if-eq p1, v0, :cond_1 - - const/4 v0, 0x4 - - if-ne p1, v0, :cond_0 - - .line 2 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->f()I - - move-result p1 - - goto :goto_0 - - :cond_0 - new-instance p1, Lkotlin/NoWhenBranchMatchedException; - - invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;->()V - - throw p1 - - .line 3 - :cond_1 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->e()I - - move-result p1 - - goto :goto_0 - - .line 4 - :cond_2 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->d()I - - move-result p1 - - goto :goto_0 - - .line 5 - :cond_3 - invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z - - move-result p1 - - if-eqz p1, :cond_4 - - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->b()I - - move-result p1 - - goto :goto_0 - - .line 6 - :cond_4 - invoke-direct {p0}, Lcom/vk/core/utils/VerifyInfoHelper;->a()I - - move-result p1 - - :goto_0 - return p1 -.end method diff --git a/smali/smali_classes2/com/vk/discover/holders/PostHolder.smali b/smali/smali_classes2/com/vk/discover/holders/PostHolder.smali index 0f358861e..295ac58e7 100644 --- a/smali/smali_classes2/com/vk/discover/holders/PostHolder.smali +++ b/smali/smali_classes2/com/vk/discover/holders/PostHolder.smali @@ -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 diff --git a/smali/smali_classes5/com/vtosters/lite/ui/holder/FriendRequestHolder.smali b/smali/smali_classes5/com/vtosters/lite/ui/holder/FriendRequestHolder.smali index 63e0ff8be..6f65dff93 100644 --- a/smali/smali_classes5/com/vtosters/lite/ui/holder/FriendRequestHolder.smali +++ b/smali/smali_classes5/com/vtosters/lite/ui/holder/FriendRequestHolder.smali @@ -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