Remove dead VK code

This commit is contained in:
iNotFlying
2022-07-31 22:44:07 +04:00
parent c7621c44d5
commit 1e5fdde641
22 changed files with 15 additions and 2706 deletions
@@ -5,7 +5,6 @@ import static ru.vtosters.lite.utils.AndroidUtils.getPrefsValue;
import static ru.vtosters.lite.utils.Preferences.getBoolValue;
import static ru.vtosters.lite.utils.Preferences.milkshake;
import static ru.vtosters.lite.utils.Preferences.superapp;
import static ru.vtosters.lite.utils.Preferences.useNewSettings;
import static ru.vtosters.lite.utils.Preferences.videonewcatalog;
import static ru.vtosters.lite.utils.Preferences.vkme;
@@ -34,6 +33,8 @@ import com.vtosters.lite.fragments.y2.VideosFragment;
import com.vtosters.lite.general.fragments.GamesFragment;
import com.vtosters.lite.general.fragments.PhotosFragment;
import ru.vtosters.lite.ui.fragments.VTSettings;
public class StartFragmentHook {
public static Class getStartFragment() {
if (vkme()) {
@@ -55,7 +56,7 @@ public class StartFragmentHook {
case "videos":
return videonewcatalog() ? VideoCatalogFragment.class : VideosFragment.class;
case "settings":
return useNewSettings();
return VTSettings.class;
case "apps":
return AppsFragment.class;
case "discover":
@@ -5,7 +5,6 @@ import static ru.vtosters.lite.utils.AndroidUtils.getPreferences;
import static ru.vtosters.lite.utils.Preferences.getBoolValue;
import static ru.vtosters.lite.utils.Preferences.milkshake;
import static ru.vtosters.lite.utils.Preferences.superapp;
import static ru.vtosters.lite.utils.Preferences.useNewSettings;
import static ru.vtosters.lite.utils.Preferences.videonewcatalog;
import static ru.vtosters.lite.utils.Preferences.vkme;
import static ru.vtosters.lite.utils.Preferences.vkme_notifs;
@@ -43,6 +42,7 @@ import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import ru.vtosters.lite.ui.fragments.VTSettings;
import ru.vtosters.lite.ui.items.DockBarTab;
import ru.vtosters.lite.utils.AndroidUtils;
@@ -261,7 +261,7 @@ public class DockBarEditorManager {
R.drawable.ic_settings_outline_28,
R.string.menu_settings,
R.id.menu_settings,
useNewSettings());
VTSettings.class);
}
}
}
@@ -20,12 +20,9 @@ import android.content.pm.PackageManager;
import android.preference.PreferenceManager;
import com.vtosters.lite.data.Users;
import com.vtosters.lite.fragments.SettingsListFragment;
import java.security.NoSuchAlgorithmException;
import ru.vtosters.lite.ui.fragments.VTSettings;
public class Preferences {
public static SharedPreferences preferences = getGlobalContext().getSharedPreferences("com.vtosters.lite_preferences", Context.MODE_PRIVATE);
public static String VERSIONNAME = "Beta";
@@ -136,11 +133,6 @@ public class Preferences {
return getBoolValue("foaf", false);
}
public static Class useNewSettings() {
boolean bool = getBoolValue("useNewSettings", true);
return bool ? VTSettings.class : SettingsListFragment.class;
}
public static boolean VKUI_INJ() {
return getBoolValue("VKUI_INJ", true);
}
-4
View File
@@ -45,10 +45,6 @@
android:entryValues="@array/lang_value"
android:key="lang_value"
android:title="@string/debug_experimental_language" />
<com.vtosters.lite.ui.MaterialSwitchPreference
android:defaultValue="true"
android:key="useNewSettings"
android:title="Use New Settings" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/vk_fix_music_other">
<com.vtosters.lite.ui.MaterialSwitchPreference
@@ -1187,7 +1187,7 @@
move-result-object v0
invoke-static {p0, v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->a(Landroid/content/Context;Ljava/lang/String;)V
invoke-static {p0, v0}, Lru/vtosters/lite/ui/fragments/VTSettings;->a(Landroid/content/Context;Ljava/lang/String;)V
:cond_16
:goto_8
@@ -2706,9 +2706,7 @@
:cond_21
new-instance v0, Lcom/vk/navigation/Navigator;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v1
const-class v1, Lru/vtosters/lite/ui/fragments/VTSettings;
invoke-direct {v0, v1, v8}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;Landroid/os/Bundle;)V
@@ -2801,9 +2799,7 @@
:goto_9
new-instance v0, Lcom/vk/navigation/Navigator;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v1
const-class v1, Lru/vtosters/lite/ui/fragments/VTSettings;
invoke-direct {v0, v1, v8}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;Landroid/os/Bundle;)V
@@ -10946,4 +10942,4 @@
:cond_1
:goto_0
return v2
.end method
.end method
@@ -1019,11 +1019,7 @@
:pswitch_a
sget-object p2, Lcom/vk/menu/MenuUtils;->c:Lcom/vk/menu/MenuUtils;
const-class v5, Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {}, Lru/vtosters/lite/utils/Preferences;->useNewSettings()Ljava/lang/Class;
move-result-object v5
const-class v5, Lru/vtosters/lite/ui/fragments/VTSettings;
const-string v1, "settings"
@@ -2947,4 +2943,4 @@
:cond_0
return-void
.end method
.end method
@@ -1127,7 +1127,7 @@
invoke-virtual {p0, v0, v1, v2}, Lcom/vk/core/ui/v/UiTrackingScreenHolder;->c(Ljava/util/HashMap;Ljava/lang/Class;Lcom/vk/stat/scheme/SchemeStat$EventScreen;)V
.line 158
const-class v1, Lcom/vtosters/lite/fragments/SettingsListFragment;
const-class v1, Lru/vtosters/lite/ui/fragments/VTSettings;
sget-object v2, Lcom/vk/stat/scheme/SchemeStat$EventScreen;->SETTINGS:Lcom/vk/stat/scheme/SchemeStat$EventScreen;
@@ -1792,4 +1792,4 @@
:cond_0
return-void
.end method
.end method
@@ -1,47 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$JobException;
.super Ljava/io/IOException;
.source "SettingsListFragment.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "JobException"
.end annotation
# direct methods
.method constructor <init>()V
.locals 2
.line 1
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Hire me! id="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {}, Lcom/vtosters/lite/auth/VKAccountManager;->d()Lcom/vk/auth/api/VKAccount;
move-result-object v1
invoke-virtual {v1}, Lcom/vk/auth/api/VKAccount;->D0()I
move-result v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
return-void
.end method
@@ -1,121 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$a;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;->e5()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Landroid/app/Activity;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment;Landroid/app/Activity;)V
.locals 0
.line 1
iput-object p2, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$a;->a:Landroid/app/Activity;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
.locals 2
.line 1
new-instance p1, Lb/h/g/k/VKProgressDialog;
iget-object p2, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$a;->a:Landroid/app/Activity;
invoke-direct {p1, p2}, Lb/h/g/k/VKProgressDialog;-><init>(Landroid/content/Context;)V
.line 2
iget-object p2, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$a;->a:Landroid/app/Activity;
invoke-virtual {p2}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;
move-result-object p2
const v0, 0x7f1206b4
invoke-virtual {p2, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Landroid/app/AlertDialog;->setMessage(Ljava/lang/CharSequence;)V
const/4 p2, 0x0
.line 3
invoke-virtual {p1, p2}, Landroid/app/AlertDialog;->setCancelable(Z)V
.line 4
invoke-virtual {p1}, Landroid/app/AlertDialog;->show()V
.line 5
new-instance p2, Lcom/vtosters/lite/fragments/SettingsListFragment$d;
const/4 v0, 0x0
invoke-direct {p2, v0}, Lcom/vtosters/lite/fragments/SettingsListFragment$d;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$a;)V
invoke-static {p2}, Lio/reactivex/Observable;->c(Ljava/util/concurrent/Callable;)Lio/reactivex/Observable;
move-result-object p2
.line 6
invoke-static {}, Lio/reactivex/schedulers/Schedulers;->c()Lio/reactivex/Scheduler;
move-result-object v0
invoke-virtual {p2, v0}, Lio/reactivex/Observable;->b(Lio/reactivex/Scheduler;)Lio/reactivex/Observable;
move-result-object p2
.line 7
invoke-static {}, Lio/reactivex/schedulers/AndroidSchedulers;->a()Lio/reactivex/Scheduler;
move-result-object v0
invoke-virtual {p2, v0}, Lio/reactivex/Observable;->a(Lio/reactivex/Scheduler;)Lio/reactivex/Observable;
move-result-object p2
new-instance v0, Lcom/vtosters/lite/fragments/SettingsListFragment$e;
iget-object v1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$a;->a:Landroid/app/Activity;
invoke-direct {v0, v1, p1}, Lcom/vtosters/lite/fragments/SettingsListFragment$e;-><init>(Landroid/app/Activity;Landroid/app/Dialog;)V
.line 8
invoke-static {}, Lcom/vk/core/util/RxUtil;->c()Lio/reactivex/functions/Consumer;
move-result-object p1
invoke-virtual {p2, v0, p1}, Lio/reactivex/Observable;->a(Lio/reactivex/functions/Consumer;Lio/reactivex/functions/Consumer;)Lio/reactivex/disposables/Disposable;
move-result-object p1
.line 9
iget-object p2, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$a;->a:Landroid/app/Activity;
invoke-static {p1, p2}, Lcom/vk/core/extensions/RxExtKt;->a(Lio/reactivex/disposables/Disposable;Landroid/app/Activity;)Lio/reactivex/disposables/Disposable;
return-void
.end method
@@ -1,73 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$b;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/vtosters/lite/fragments/SettingsListFragment;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->a(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.line 2
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
iget-object v1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v1}, Lcom/vtosters/lite/fragments/SettingsListFragment;->b(Lcom/vtosters/lite/fragments/SettingsListFragment;)[F
move-result-object v1
invoke-static {v0, v1}, Lcom/vk/core/ui/themes/VKThemeHelper;->b(Landroid/app/Activity;[F)V
.line 3
invoke-static {}, Lcom/vtosters/lite/data/ThemeTracker;->a()V
.line 4
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->c(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.line 5
invoke-static {}, Lcom/vk/articles/preload/WebCachePreloader;->e()V
return-void
.end method
@@ -1,103 +0,0 @@
.class public Lcom/vtosters/lite/fragments/SettingsListFragment$c;
.super Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder$a;
.source "SettingsListFragment.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "c"
.end annotation
# instance fields
.field public d:Ljava/lang/Class;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"+",
"Lcom/vk/core/fragments/FragmentImpl;",
">;"
}
.end annotation
.end field
.field public e:Lcom/vk/navigation/Navigator;
.field public f:Ljava/lang/Runnable;
# direct methods
.method public constructor <init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/AttrRes;
.end annotation
.end param
.line 3
invoke-direct {p0, p1, p2, p3}, Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder$a;-><init>(IILjava/lang/Object;)V
.line 4
iput-object p4, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->e:Lcom/vk/navigation/Navigator;
return-void
.end method
.method public constructor <init>(IILjava/lang/Object;Ljava/lang/Class;)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/AttrRes;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(II",
"Ljava/lang/Object;",
"Ljava/lang/Class<",
"+",
"Lcom/vk/core/fragments/FragmentImpl;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2, p3}, Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder$a;-><init>(IILjava/lang/Object;)V
.line 2
iput-object p4, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->d:Ljava/lang/Class;
return-void
.end method
.method public constructor <init>(IILjava/lang/Object;Ljava/lang/Runnable;)V
.locals 0
.param p1 # I
.annotation build Landroidx/annotation/DrawableRes;
.end annotation
.end param
.param p2 # I
.annotation build Landroidx/annotation/AttrRes;
.end annotation
.end param
.line 5
invoke-direct {p0, p1, p2, p3}, Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder$a;-><init>(IILjava/lang/Object;)V
.line 6
iput-object p4, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->f:Ljava/lang/Runnable;
return-void
.end method
@@ -1,82 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$d;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Ljava/util/concurrent/Callable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "d"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/concurrent/Callable<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method synthetic constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$a;)V
.locals 0
.line 2
invoke-direct {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$d;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic call()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$d;->call()Lkotlin/Unit;
move-result-object v0
return-object v0
.end method
.method public call()Lkotlin/Unit;
.locals 3
.line 2
sget-object v0, Lcom/vk/bridges/AuthBridge;->a:Lcom/vk/bridges/AuthBridge3;
const-string v1, "user"
const/4 v2, 0x1
invoke-interface {v0, v1, v2}, Lcom/vk/bridges/AuthBridge3;->a(Ljava/lang/String;Z)V
.line 3
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
.end method
@@ -1,140 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$e;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Lio/reactivex/functions/Consumer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0xa
name = "e"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lio/reactivex/functions/Consumer<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field private final a:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Landroid/app/Activity;",
">;"
}
.end annotation
.end field
.field private final b:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Landroid/app/Dialog;",
">;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Landroid/app/Activity;Landroid/app/Dialog;)V
.locals 1
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$e;->a:Ljava/lang/ref/WeakReference;
.line 3
new-instance p1, Ljava/lang/ref/WeakReference;
invoke-direct {p1, p2}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$e;->b:Ljava/lang/ref/WeakReference;
return-void
.end method
# virtual methods
.method public a(Lkotlin/Unit;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
iget-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$e;->b:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/app/Dialog;
.line 2
invoke-static {p1}, Lcom/vtosters/lite/ViewUtils;->a(Landroid/app/Dialog;)V
.line 3
iget-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$e;->a:Ljava/lang/ref/WeakReference;
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/app/Activity;
.line 4
instance-of v0, p1, Lcom/vk/navigation/NavigationDelegateProvider;
if-eqz v0, :cond_0
.line 5
check-cast p1, Lcom/vk/navigation/NavigationDelegateProvider;
invoke-interface {p1}, Lcom/vk/navigation/NavigationDelegateProvider;->E0()Lcom/vk/navigation/NavigationDelegate;
move-result-object p1
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lcom/vk/navigation/NavigationDelegate;->b(Landroid/os/Bundle;)V
:cond_0
return-void
.end method
.method public bridge synthetic accept(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 1
check-cast p1, Lkotlin/Unit;
invoke-virtual {p0, p1}, Lcom/vtosters/lite/fragments/SettingsListFragment$e;->a(Lkotlin/Unit;)V
return-void
.end method
@@ -1,74 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f;->k()Ljava/util/ArrayList;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
iget-object v0, v0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
iget-object v1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
iget-object v1, v1, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v1}, Lcom/vtosters/lite/fragments/SettingsListFragment;->b(Lcom/vtosters/lite/fragments/SettingsListFragment;)[F
move-result-object v1
invoke-static {v0, v1}, Lcom/vk/core/ui/themes/VKThemeHelper;->b(Landroid/app/Activity;[F)V
.line 2
invoke-static {}, Lcom/vtosters/lite/data/ThemeTracker;->a()V
.line 3
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
iget-object v0, v0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->e(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.line 4
invoke-static {}, Lcom/vk/articles/preload/WebCachePreloader;->e()V
return-void
.end method
@@ -1,64 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$b;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f;->k()Ljava/util/ArrayList;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 2
.line 1
sget-object v0, Lcom/vk/metrics/eventtracking/VkTracker;->k:Lcom/vk/metrics/eventtracking/VkTracker;
new-instance v1, Lcom/vtosters/lite/fragments/SettingsListFragment$JobException;
invoke-direct {v1}, Lcom/vtosters/lite/fragments/SettingsListFragment$JobException;-><init>()V
invoke-virtual {v0, v1}, Lcom/vk/metrics/eventtracking/VkTracker;->a(Ljava/lang/Throwable;)V
.line 2
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$b;->a:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
iget-object v0, v0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-virtual {v0}, Lme/grishka/appkit/fragments/AppKitFragment;->getContext()Landroid/content/Context;
move-result-object v0
const-string v1, "https://vk.com/jobs?w=job38"
invoke-static {v0, v1}, Lcom/vk/common/links/LinkProcessor;->a(Landroid/content/Context;Ljava/lang/String;)V
return-void
.end method
@@ -1,39 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$c$a;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;->invoke()Lkotlin/Unit;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 0
.line 1
invoke-static {}, Lcom/vk/log/L;->b()V
return-void
.end method
@@ -1,103 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Lkotlin/jvm/b/Functions;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f;->k()Ljava/util/ArrayList;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lkotlin/jvm/b/Functions<",
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field final synthetic a:Ljava/util/ArrayList;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;Ljava/util/ArrayList;)V
.locals 0
.line 1
iput-object p2, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;->a:Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
.line 1
invoke-virtual {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;->invoke()Lkotlin/Unit;
move-result-object v0
return-object v0
.end method
.method public invoke()Lkotlin/Unit;
.locals 7
.line 2
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v0
if-eqz v0, :cond_0
const v0, 0x7f08038f
goto :goto_0
:cond_0
const v0, 0x7f08038e
.line 3
:goto_0
iget-object v1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;->a:Ljava/util/ArrayList;
const/4 v2, 0x1
new-instance v3, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
const v4, 0x7f040193
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c$a;
invoke-direct {v5, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c$a;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;)V
const-string v6, "\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0434\u0435\u0431\u0430\u0433 \u043b\u043e\u0433\u0438"
invoke-direct {v3, v0, v4, v6, v5}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Runnable;)V
invoke-static {v2, v3}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 4
sget-object v0, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object v0
.end method
@@ -1,73 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$d;
.super Ljava/lang/Object;
.source "SettingsListFragment.java"
# interfaces
.implements Lkotlin/jvm/b/Functions2;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f;->k()Ljava/util/ArrayList;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lkotlin/jvm/b/Functions2<",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a(Ljava/util/List;)Lkotlin/Unit;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Lkotlin/Unit;"
}
.end annotation
.line 1
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
.line 1
check-cast p1, Ljava/util/List;
invoke-virtual {p0, p1}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$d;->a(Ljava/util/List;)Lkotlin/Unit;
move-result-object p1
return-object p1
.end method
@@ -1,46 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f$e;
.super Lcom/vtosters/lite/ui/b0/n/MaterialListButtonRedHolder;
.source "SettingsListFragment.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/vtosters/lite/fragments/SettingsListFragment$f;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/vtosters/lite/ui/holder/RecyclerHolder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic d:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;Landroid/view/ViewGroup;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$e;->d:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
invoke-direct {p0, p2}, Lcom/vtosters/lite/ui/b0/n/MaterialListButtonRedHolder;-><init>(Landroid/view/ViewGroup;)V
return-void
.end method
# virtual methods
.method public b()V
.locals 1
.line 1
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f$e;->d:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
iget-object v0, v0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->f(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
return-void
.end method
@@ -1,985 +0,0 @@
.class Lcom/vtosters/lite/fragments/SettingsListFragment$f;
.super Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter;
.source "SettingsListFragment.java"
# interfaces
.implements Lcom/vk/core/ui/MilkshakeProvider;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/vtosters/lite/fragments/SettingsListFragment;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x2
name = "f"
.end annotation
# instance fields
.field final synthetic c:Lcom/vtosters/lite/fragments/SettingsListFragment;
# direct methods
.method constructor <init>(Lcom/vtosters/lite/fragments/SettingsListFragment;Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$b;)V
.locals 0
.line 1
iput-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
.line 2
invoke-direct {p0, p2}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter;-><init>(Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$b;)V
return-void
.end method
# virtual methods
.method public c(I)I
.locals 2
.line 1
invoke-virtual {p0}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter;->getItemCount()I
move-result v0
const/4 v1, 0x0
if-ge p1, v0, :cond_1
if-gtz p1, :cond_0
goto :goto_0
.line 2
:cond_0
invoke-virtual {p0}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter;->j()Ljava/util/List;
move-result-object v0
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
iget p1, p1, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->c:I
and-int/lit8 p1, p1, 0x2
if-eqz p1, :cond_1
const/4 p1, 0x1
return p1
:cond_1
:goto_0
return v1
.end method
.method public d(I)I
.locals 0
const/4 p1, 0x4
.line 1
invoke-static {p1}, Lcom/vk/core/util/Screen;->a(I)I
move-result p1
return p1
.end method
.method k()Ljava/util/ArrayList;
.locals 12
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/ArrayList<",
"Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;",
">;"
}
.end annotation
.line 1
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
const v1, 0x7f08008a
.line 2
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x2
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 3
invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->t()Z
move-result v3
if-eqz v3, :cond_2
.line 4
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v3
if-eqz v3, :cond_0
const v3, 0x7f08069b
const v5, 0x7f08069b
goto :goto_0
:cond_0
const v3, 0x7f080699
const v5, 0x7f080699
:goto_0
const/4 v3, 0x4
.line 5
new-instance v10, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder$a;
iget-object v4, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v4}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v4, 0x7f120d16
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
new-instance v8, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;
invoke-direct {v8, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$a;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
.line 6
invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->r()Z
move-result v4
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v9
move-object v4, v10
invoke-direct/range {v4 .. v9}, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder$a;-><init>(IILjava/lang/Object;Ljava/lang/Runnable;Ljava/lang/Boolean;)V
.line 7
invoke-static {v3, v10}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 8
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v3
if-nez v3, :cond_1
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->a(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 9
:cond_1
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->d(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 10
:cond_2
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v3
if-eqz v3, :cond_3
const v3, 0x7f080679
goto :goto_1
:cond_3
const v3, 0x7f080671
.line 11
:goto_1
new-instance v4, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v5, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v5}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v5
const v6, 0x7f120d3a
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
const-class v7, Lcom/vk/notifications/settings/NotificationsSettingsFragment;
invoke-direct {v4, v3, v5, v6, v7}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
const/4 v3, 0x1
invoke-static {v3, v4}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 12
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_4
const v4, 0x7f08083c
goto :goto_2
:cond_4
const v4, 0x7f080829
.line 13
:goto_2
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f120d02
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const-class v8, Lcom/vtosters/lite/general/fragments/SettingsAccountFragment;
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 14
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_5
const v4, 0x7f08075f
goto :goto_3
:cond_5
const v4, 0x7f08075e
.line 15
:goto_3
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f120d24
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const-class v8, Lcom/vtosters/lite/general/fragments/SettingsGeneralFragment;
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 16
sget-object v4, Lcom/vk/toggle/Features$Type;->FEATURE_SECURITY_SETTINGS:Lcom/vk/toggle/Features$Type;
invoke-static {v4}, Lcom/vk/toggle/FeatureManager;->b(Lcom/vk/toggle/Features$Type;)Z
move-result v4
if-eqz v4, :cond_7
.line 17
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_6
const v4, 0x7f080546
goto :goto_4
:cond_6
const v4, 0x7f080543
.line 18
:goto_4
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f120cd8
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
new-instance v8, Lcom/vk/webapp/fragments/SecurityFragment$a;
invoke-direct {v8}, Lcom/vk/webapp/fragments/SecurityFragment$a;-><init>()V
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 19
:cond_7
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_8
const v4, 0x7f0806f8
goto :goto_5
:cond_8
const v4, 0x7f0806f7
.line 20
:goto_5
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f120b83
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
new-instance v8, Lcom/vk/webapp/fragments/PrivacyFragment$a;
invoke-direct {v8}, Lcom/vk/webapp/fragments/PrivacyFragment$a;-><init>()V
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 21
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_9
const v4, 0x7f080842
goto :goto_6
:cond_9
const v4, 0x7f08083e
.line 22
:goto_6
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f12015c
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const-class v8, Lcom/vtosters/lite/fragments/w2/BlacklistFragment;
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 23
invoke-static {}, Lcom/vtosters/lite/auth/VKAccountManager;->d()Lcom/vk/auth/api/VKAccount;
move-result-object v4
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->N0()Z
move-result v4
if-eqz v4, :cond_b
.line 24
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_a
const v4, 0x7f08075b
goto :goto_7
:cond_a
const v4, 0x7f080758
.line 25
:goto_7
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f120595
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
new-instance v8, Lcom/vk/identity/fragments/IdentityListFragment$a;
const-string v9, "menu"
invoke-direct {v8, v9}, Lcom/vk/identity/fragments/IdentityListFragment$a;-><init>(Ljava/lang/String;)V
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 26
:cond_b
sget-object v4, Lcom/vk/toggle/Features$Type;->FEATURE_VOTES_BALANCE:Lcom/vk/toggle/Features$Type;
invoke-static {v4}, Lcom/vk/toggle/FeatureManager;->b(Lcom/vk/toggle/Features$Type;)Z
move-result v4
if-eqz v4, :cond_d
.line 27
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_c
const v4, 0x7f0803ef
goto :goto_8
:cond_c
const v4, 0x7f0803ee
.line 28
:goto_8
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f1214c7
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
const-class v8, Lcom/vk/balance/BalanceFragment;
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 29
:cond_d
invoke-static {}, Lcom/vtosters/lite/auth/VKAccountManager;->d()Lcom/vk/auth/api/VKAccount;
move-result-object v4
.line 30
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->Y()Z
move-result v5
if-eqz v5, :cond_f
.line 31
new-instance v5, Lcom/vtosters/lite/fragments/money/music/control/subscription/MusicSubscriptionControlFragment$a;
invoke-direct {v5, v3}, Lcom/vtosters/lite/fragments/money/music/control/subscription/MusicSubscriptionControlFragment$a;-><init>(I)V
.line 32
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v6
if-eqz v6, :cond_e
const v6, 0x7f0805f5
goto :goto_9
:cond_e
const v6, 0x7f0805ed
.line 33
:goto_9
new-instance v7, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v8, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v8}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v8
const v9, 0x7f120fa2
invoke-static {v9}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v9
invoke-direct {v7, v6, v8, v9, v5}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
invoke-static {v3, v7}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v5
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 34
:cond_f
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->a1()Z
move-result v5
if-nez v5, :cond_10
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->X0()Z
move-result v5
if-nez v5, :cond_10
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->c1()Z
move-result v5
if-nez v5, :cond_10
sget-object v5, Lcom/vk/toggle/Features$Type;->FEATURE_DEBUG_MENU:Lcom/vk/toggle/Features$Type;
invoke-static {v5}, Lcom/vk/toggle/FeatureManager;->b(Lcom/vk/toggle/Features$Type;)Z
move-result v5
if-eqz v5, :cond_12
.line 35
:cond_10
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v5
if-eqz v5, :cond_11
const v5, 0x7f08038f
goto :goto_a
:cond_11
const v5, 0x7f08038e
.line 36
:goto_a
new-instance v6, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v7, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v7}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v7
const v8, 0x7f120d17
invoke-static {v8}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v8
const-class v9, Lcom/vtosters/lite/fragments/n2/SettingsDebugFragment;
invoke-direct {v6, v5, v7, v8, v9}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Class;)V
invoke-static {v3, v6}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v5
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 37
:cond_12
invoke-static {}, Lb/h/g/g/BuildInfo;->l()Z
move-result v5
if-eqz v5, :cond_14
.line 38
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->k0()Ljava/lang/String;
move-result-object v5
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v5
if-nez v5, :cond_13
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->X0()Z
move-result v5
if-eqz v5, :cond_14
:cond_13
sget-object v5, Lcom/vk/core/util/DeviceState;->b:Lcom/vk/core/util/DeviceState;
.line 39
invoke-virtual {v5}, Lcom/vk/core/util/DeviceState;->v()Z
move-result v5
if-eqz v5, :cond_14
sget-object v5, Lcom/vk/core/util/DeviceState;->b:Lcom/vk/core/util/DeviceState;
.line 40
invoke-virtual {v5}, Lcom/vk/core/util/DeviceState;->r()Z
move-result v5
if-eqz v5, :cond_14
.line 41
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
const v6, 0x7f08054d
const v7, 0x7f040022
new-instance v8, Ljava/lang/StringBuilder;
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->C()Ljava/lang/String;
move-result-object v9
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v9, ", x\u043e\u0447\u0435\u0448\u044c \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 VK?"
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
new-instance v9, Lcom/vtosters/lite/fragments/SettingsListFragment$f$b;
invoke-direct {v9, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$b;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
invoke-direct {v5, v6, v7, v8, v9}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Ljava/lang/Runnable;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v5
invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 42
:cond_14
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->a1()Z
move-result v5
if-nez v5, :cond_15
invoke-virtual {v4}, Lcom/vk/auth/api/VKAccount;->c1()Z
move-result v4
if-eqz v4, :cond_16
.line 43
:cond_15
sget-object v5, Lcom/vk/permission/PermissionHelper;->r:Lcom/vk/permission/PermissionHelper;
iget-object v4, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
.line 44
invoke-virtual {v4}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v6
sget-object v4, Lcom/vk/permission/PermissionHelper;->r:Lcom/vk/permission/PermissionHelper;
.line 45
invoke-virtual {v4}, Lcom/vk/permission/PermissionHelper;->m()[Ljava/lang/String;
move-result-object v7
const v8, 0x7f120a22
const v9, 0x7f120a22
new-instance v10, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;
invoke-direct {v10, p0, v0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$c;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;Ljava/util/ArrayList;)V
new-instance v11, Lcom/vtosters/lite/fragments/SettingsListFragment$f$d;
invoke-direct {v11, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$d;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;)V
.line 46
invoke-virtual/range {v5 .. v11}, Lcom/vk/permission/PermissionHelper;->a(Landroid/app/Activity;[Ljava/lang/String;IILkotlin/jvm/b/Functions;Lkotlin/jvm/b/Functions2;)Z
.line 47
:cond_16
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-nez v4, :cond_17
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->a(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 48
:cond_17
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->d(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v4
invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 49
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v4
if-eqz v4, :cond_18
const v4, 0x7f08031d
goto :goto_b
:cond_18
const v4, 0x7f08031c
.line 50
:goto_b
new-instance v5, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
iget-object v6, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-static {v6}, Lcom/vtosters/lite/fragments/SettingsListFragment;->d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
move-result v6
const v7, 0x7f1206f1
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v7
new-instance v8, Lcom/vk/about/AboutAppFragment$b;
invoke-direct {v8}, Lcom/vk/about/AboutAppFragment$b;-><init>()V
invoke-direct {v5, v4, v6, v7, v8}, Lcom/vtosters/lite/fragments/SettingsListFragment$c;-><init>(IILjava/lang/Object;Lcom/vk/navigation/Navigator;)V
invoke-static {v3, v5}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v3
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 51
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v3
if-nez v3, :cond_19
invoke-static {v2, v1}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->a(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_19
const/4 v1, 0x3
const v2, 0x7f1206b9
.line 52
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-static {v1, v2}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->e(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-object v0
.end method
.method public bridge synthetic onCreateViewHolder(Landroid/view/ViewGroup;I)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
.locals 0
.line 1
invoke-virtual {p0, p1, p2}, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/vtosters/lite/ui/holder/RecyclerHolder;
move-result-object p1
return-object p1
.end method
.method public onCreateViewHolder(Landroid/view/ViewGroup;I)Lcom/vtosters/lite/ui/holder/RecyclerHolder;
.locals 1
const/4 v0, 0x2
if-eq p2, v0, :cond_2
const/4 v0, 0x3
if-eq p2, v0, :cond_1
const/4 v0, 0x4
if-eq p2, v0, :cond_0
.line 2
new-instance p2, Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder;
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-direct {p2, p1, v0}, Lcom/vtosters/lite/ui/b0/n/PreferenceIconItemHolder;-><init>(Landroid/view/ViewGroup;Lcom/vk/common/g/VoidF1;)V
return-object p2
.line 3
:cond_0
new-instance p2, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->c:Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-direct {p2, p1, v0}, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;-><init>(Landroid/view/ViewGroup;Lcom/vk/common/g/VoidF1;)V
return-object p2
.line 4
:cond_1
new-instance p2, Lcom/vtosters/lite/fragments/SettingsListFragment$f$e;
invoke-direct {p2, p0, p1}, Lcom/vtosters/lite/fragments/SettingsListFragment$f$e;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment$f;Landroid/view/ViewGroup;)V
return-object p2
.line 5
:cond_2
new-instance p2, Lcom/vtosters/lite/ui/b0/n/BackgroundHolder;
invoke-direct {p2, p1}, Lcom/vtosters/lite/ui/b0/n/BackgroundHolder;-><init>(Landroid/view/ViewGroup;)V
return-object p2
.end method
@@ -1,722 +0,0 @@
.class public Lcom/vtosters/lite/fragments/SettingsListFragment;
.super Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;
.source "SettingsListFragment.java"
# interfaces
.implements Lcom/vk/common/g/VoidF1;
.implements Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$b;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/vtosters/lite/fragments/SettingsListFragment$JobException;,
Lcom/vtosters/lite/fragments/SettingsListFragment$c;,
Lcom/vtosters/lite/fragments/SettingsListFragment$f;,
Lcom/vtosters/lite/fragments/SettingsListFragment$e;,
Lcom/vtosters/lite/fragments/SettingsListFragment$d;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/vtosters/lite/general/fragments/CardRecyclerFragment<",
"Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;",
">;",
"Lcom/vk/common/g/VoidF1<",
"Lcom/vtosters/lite/fragments/SettingsListFragment$c;",
">;",
"Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$b;"
}
.end annotation
# static fields
.field private static v0:Ljava/lang/String; = "extraNewTheme"
# instance fields
.field private final u0:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
# direct methods
.method public constructor <init>()V
.locals 1
const/16 v0, 0xa
.line 1
invoke-direct {p0, v0}, Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;-><init>(I)V
.line 2
new-instance v0, Lcom/vtosters/lite/fragments/SettingsListFragment$f;
invoke-direct {v0, p0, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$f;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment;Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$b;)V
iput-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment;->u0:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
const/4 v0, 0x0
.line 3
invoke-virtual {p0, v0}, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->x0(Z)V
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;)V
.locals 2
.line 3
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
.line 4
sget-object v1, Lcom/vtosters/lite/fragments/SettingsListFragment;->v0:Ljava/lang/String;
invoke-virtual {v0, v1, p1}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 5
new-instance p1, Lcom/vk/navigation/Navigator;
const-class v1, Lcom/vtosters/lite/fragments/SettingsListFragment;
invoke-direct {p1, v1, v0}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;Landroid/os/Bundle;)V
.line 6
invoke-virtual {p1, p0}, Lcom/vk/navigation/Navigator;->a(Landroid/content/Context;)V
return-void
.end method
.method static synthetic a(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->h5()V
return-void
.end method
.method static synthetic b(Lcom/vtosters/lite/fragments/SettingsListFragment;)[F
.locals 0
.line 1
invoke-direct {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->g5()[F
move-result-object p0
return-object p0
.end method
.method static synthetic c(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.locals 0
.line 1
invoke-virtual {p0}, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->C()V
return-void
.end method
.method static synthetic d(Lcom/vtosters/lite/fragments/SettingsListFragment;)I
.locals 0
.line 1
invoke-direct {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->f5()I
move-result p0
return p0
.end method
.method static synthetic e(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.locals 0
.line 1
invoke-virtual {p0}, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->C()V
return-void
.end method
.method private e5()V
.locals 4
.line 1
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
if-nez v0, :cond_0
return-void
.line 2
:cond_0
new-instance v1, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;
invoke-direct {v1, v0}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;-><init>(Landroid/content/Context;)V
const v2, 0x7f1206bb
.line 3
invoke-virtual {v1, v2}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;->setMessage(I)Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;
const v2, 0x7f1206ba
.line 4
invoke-virtual {v1, v2}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;->setTitle(I)Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;
const v2, 0x7f1206b9
new-instance v3, Lcom/vtosters/lite/fragments/SettingsListFragment$a;
invoke-direct {v3, p0, v0}, Lcom/vtosters/lite/fragments/SettingsListFragment$a;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment;Landroid/app/Activity;)V
.line 5
invoke-virtual {v1, v2, v3}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;
const v0, 0x7f12018a
const/4 v2, 0x0
.line 6
invoke-virtual {v1, v0, v2}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;
.line 7
invoke-virtual {v1}, Lcom/vk/core/dialogs/alert/VkAlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;
return-void
.end method
.method static synthetic f(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/vtosters/lite/fragments/SettingsListFragment;->e5()V
return-void
.end method
.method private f5()I
.locals 1
.line 1
invoke-static {}, Lcom/vk/core/ui/themes/MilkshakeHelper;->e()Z
move-result v0
if-eqz v0, :cond_0
const v0, 0x7f040022
goto :goto_0
:cond_0
const v0, 0x7f040254
:goto_0
return v0
.end method
.method private g5()[F
.locals 9
const/4 v0, 0x2
new-array v1, v0, [F
const/16 v2, 0x46
.line 1
invoke-static {v2}, Lcom/vk/core/util/Screen;->a(I)I
move-result v2
int-to-float v2, v2
const/4 v3, 0x0
aput v2, v1, v3
const/16 v2, 0xe6
invoke-static {v2}, Lcom/vk/core/util/Screen;->a(I)I
move-result v2
int-to-float v2, v2
const/4 v4, 0x1
aput v2, v1, v4
.line 2
iget-object v2, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->Z:Lme/grishka/appkit/views/UsableRecyclerView;
invoke-virtual {v2}, Landroid/view/ViewGroup;->getChildCount()I
move-result v2
const/4 v5, 0x0
:goto_0
if-ge v5, v2, :cond_2
.line 3
iget-object v6, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->Z:Lme/grishka/appkit/views/UsableRecyclerView;
invoke-virtual {v6, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v7
invoke-virtual {v6, v7}, Lme/grishka/appkit/views/UsableRecyclerView;->getChildViewHolder(Landroid/view/View;)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
move-result-object v6
.line 4
instance-of v7, v6, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;
if-eqz v7, :cond_1
.line 5
check-cast v6, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;
invoke-virtual {v6}, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;->g0()Landroidx/appcompat/widget/SwitchCompat;
move-result-object v2
new-array v5, v0, [I
.line 6
invoke-virtual {v2, v5}, Landroid/widget/CompoundButton;->getLocationOnScreen([I)V
.line 7
invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->r()Z
move-result v6
xor-int/2addr v6, v4
const/16 v7, 0xa
if-eqz v6, :cond_0
.line 8
invoke-static {v7}, Lcom/vk/core/util/Screen;->a(I)I
move-result v6
goto :goto_1
:cond_0
invoke-static {v7}, Lcom/vk/core/util/Screen;->a(I)I
move-result v6
neg-int v6, v6
:goto_1
int-to-float v6, v6
.line 9
aget v7, v5, v3
int-to-float v7, v7
invoke-virtual {v2}, Landroid/widget/CompoundButton;->getWidth()I
move-result v8
div-int/2addr v8, v0
int-to-float v8, v8
add-float/2addr v7, v8
add-float/2addr v7, v6
aput v7, v1, v3
.line 10
aget v3, v5, v4
int-to-float v3, v3
invoke-virtual {v2}, Landroid/widget/CompoundButton;->getHeight()I
move-result v2
div-int/2addr v2, v0
int-to-float v0, v2
add-float/2addr v3, v0
aput v3, v1, v4
goto :goto_2
:cond_1
add-int/lit8 v5, v5, 0x1
goto :goto_0
:cond_2
:goto_2
return-object v1
.end method
.method private h5()V
.locals 4
.line 1
iget-object v0, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->Z:Lme/grishka/appkit/views/UsableRecyclerView;
invoke-virtual {v0}, Landroid/view/ViewGroup;->getChildCount()I
move-result v0
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
.line 2
iget-object v2, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->Z:Lme/grishka/appkit/views/UsableRecyclerView;
invoke-virtual {v2, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;
move-result-object v3
invoke-virtual {v2, v3}, Lme/grishka/appkit/views/UsableRecyclerView;->getChildViewHolder(Landroid/view/View;)Landroidx/recyclerview/widget/RecyclerView$ViewHolder;
move-result-object v2
.line 3
instance-of v3, v2, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;
if-eqz v3, :cond_0
.line 4
check-cast v2, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;
invoke-virtual {v2}, Lcom/vtosters/lite/ui/b0/n/PreferenceSwitchItemHolder;->g0()Landroidx/appcompat/widget/SwitchCompat;
move-result-object v0
.line 5
invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->r()Z
move-result v1
xor-int/lit8 v1, v1, 0x1
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/SwitchCompat;->setChecked(Z)V
.line 6
invoke-virtual {v0}, Landroidx/appcompat/widget/SwitchCompat;->jumpDrawablesToCurrentState()V
goto :goto_1
:cond_0
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
:goto_1
return-void
.end method
# virtual methods
.method protected Y4()Landroidx/recyclerview/widget/RecyclerView$Adapter;
.locals 1
.line 1
iget-object v0, p0, Lcom/vtosters/lite/fragments/SettingsListFragment;->u0:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
return-object v0
.end method
.method public a(Lcom/vtosters/lite/fragments/SettingsListFragment$c;)V
.locals 1
.line 7
iget-object v0, p1, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->e:Lcom/vk/navigation/Navigator;
if-eqz v0, :cond_0
.line 8
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object p1
invoke-virtual {v0, p1}, Lcom/vk/navigation/Navigator;->a(Landroid/content/Context;)V
goto :goto_0
.line 9
:cond_0
iget-object v0, p1, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->d:Ljava/lang/Class;
if-eqz v0, :cond_1
.line 10
new-instance p1, Lcom/vk/navigation/Navigator;
invoke-direct {p1, v0}, Lcom/vk/navigation/Navigator;-><init>(Ljava/lang/Class;)V
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v0
invoke-virtual {p1, v0}, Lcom/vk/navigation/Navigator;->a(Landroid/content/Context;)V
goto :goto_0
.line 11
:cond_1
iget-object p1, p1, Lcom/vtosters/lite/fragments/SettingsListFragment$c;->f:Ljava/lang/Runnable;
invoke-interface {p1}, Ljava/lang/Runnable;->run()V
:goto_0
return-void
.end method
.method public bridge synthetic a(Ljava/lang/Object;)V
.locals 0
.line 2
check-cast p1, Lcom/vtosters/lite/fragments/SettingsListFragment$c;
invoke-virtual {p0, p1}, Lcom/vtosters/lite/fragments/SettingsListFragment;->a(Lcom/vtosters/lite/fragments/SettingsListFragment$c;)V
return-void
.end method
.method public getData()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->g0:Ljava/util/ArrayList;
return-object v0
.end method
.method protected h(II)V
.locals 0
.line 1
iget-object p1, p0, Lcom/vtosters/lite/fragments/SettingsListFragment;->u0:Lcom/vtosters/lite/fragments/SettingsListFragment$f;
invoke-virtual {p1}, Lcom/vtosters/lite/fragments/SettingsListFragment$f;->k()Ljava/util/ArrayList;
move-result-object p1
const/4 p2, 0x0
invoke-virtual {p0, p1, p2}, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->e(Ljava/util/List;Z)V
return-void
.end method
.method public onAttach(Landroid/content/Context;)V
.locals 1
.line 1
invoke-super {p0, p1}, Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;->onAttach(Landroid/content/Context;)V
const p1, 0x7f1206fa
.line 2
invoke-virtual {p0, p1}, Lme/grishka/appkit/fragments/AppKitFragment;->setTitle(I)V
.line 3
new-instance p1, Landroid/content/IntentFilter;
const-string v0, "com.vkontakte.android.STATE_CHANGED"
invoke-direct {p1, v0}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
const-string v0, "com.vkontakte.android.USER_PHOTO_CHANGED"
.line 4
invoke-virtual {p1, v0}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 5
invoke-virtual {p0}, Lme/grishka/appkit/fragments/LoaderFragment;->W4()V
return-void
.end method
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
.locals 3
.line 1
invoke-super {p0, p1}, Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;->onConfigurationChanged(Landroid/content/res/Configuration;)V
.line 2
iget-object p1, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->g0:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->isEmpty()Z
move-result p1
if-nez p1, :cond_1
iget-object p1, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->g0:Ljava/util/ArrayList;
const/4 v0, 0x0
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
iget p1, p1, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->a:I
const/4 v1, 0x2
if-ne p1, v1, :cond_1
.line 3
iget-boolean p1, p0, Lme/grishka/appkit/fragments/AppKitFragment;->I:Z
const v2, 0x7f080246
if-eqz p1, :cond_0
.line 4
iget-object p1, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->g0:Ljava/util/ArrayList;
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-static {v1, v2}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->d(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v1
invoke-virtual {p1, v0, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
goto :goto_0
.line 5
:cond_0
iget-object p1, p0, Lme/grishka/appkit/fragments/BaseRecyclerFragment;->g0:Ljava/util/ArrayList;
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-static {v1, v2}, Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;->b(ILjava/lang/Object;)Lcom/vtosters/lite/ui/holder/RecyclerSectionAdapter$a;
move-result-object v1
invoke-virtual {p1, v0, v1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
.line 6
:cond_1
:goto_0
invoke-virtual {p0}, Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;->d5()V
return-void
.end method
.method public onPause()V
.locals 2
.line 1
sget-object v0, Lcom/vk/stats/AppUseTime;->f:Lcom/vk/stats/AppUseTime;
sget-object v1, Lcom/vk/stats/AppUseTime$Section;->settings:Lcom/vk/stats/AppUseTime$Section;
invoke-virtual {v0, v1, p0}, Lcom/vk/stats/AppUseTime;->a(Lcom/vk/stats/AppUseTime$Section;Lcom/vk/core/fragments/FragmentImpl;)V
.line 2
invoke-super {p0}, Lme/grishka/appkit/fragments/AppKitFragment;->onPause()V
return-void
.end method
.method public onResume()V
.locals 2
.line 1
invoke-super {p0}, Lme/grishka/appkit/fragments/AppKitFragment;->onResume()V
.line 2
sget-object v0, Lcom/vk/stats/AppUseTime;->f:Lcom/vk/stats/AppUseTime;
sget-object v1, Lcom/vk/stats/AppUseTime$Section;->settings:Lcom/vk/stats/AppUseTime$Section;
invoke-virtual {v0, v1, p0}, Lcom/vk/stats/AppUseTime;->b(Lcom/vk/stats/AppUseTime$Section;Lcom/vk/core/fragments/FragmentImpl;)V
return-void
.end method
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.locals 2
.line 1
invoke-super {p0, p1, p2}, Lcom/vtosters/lite/general/fragments/CardRecyclerFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.line 2
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;
move-result-object p1
sget-object p2, Lcom/vtosters/lite/fragments/SettingsListFragment;->v0:Ljava/lang/String;
const/4 v0, 0x0
invoke-virtual {p1, p2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
.line 3
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getArguments()Landroid/os/Bundle;
move-result-object p2
if-eqz p2, :cond_0
if-eqz p1, :cond_0
invoke-static {}, Lcom/vk/core/ui/themes/VKThemeHelper;->l()Lcom/vk/core/ui/themes/VKTheme;
move-result-object p2
invoke-virtual {p2}, Lcom/vk/core/ui/themes/VKTheme;->b()Ljava/lang/String;
move-result-object p2
invoke-virtual {p1, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_0
.line 4
new-instance p1, Lcom/vtosters/lite/fragments/SettingsListFragment$b;
invoke-direct {p1, p0}, Lcom/vtosters/lite/fragments/SettingsListFragment$b;-><init>(Lcom/vtosters/lite/fragments/SettingsListFragment;)V
const-wide/16 v0, 0xfa
invoke-static {p1, v0, v1}, Lcom/vtosters/lite/ViewUtils;->a(Ljava/lang/Runnable;J)V
:cond_0
return-void
.end method
@@ -1933,7 +1933,7 @@
.line 26
:cond_d
instance-of v2, v0, Lcom/vtosters/lite/fragments/SettingsListFragment;
instance-of v2, v0, Lru/vtosters/lite/ui/fragments/VTSettings;
if-eqz v2, :cond_e
@@ -2784,4 +2784,4 @@
invoke-static {v0}, Lcom/vtosters/lite/ViewUtils;->a(Ljava/lang/Runnable;)V
return-void
.end method
.end method