From faa89cdca019dd2571c8957eb15d25425f903dc8 Mon Sep 17 00:00:00 2001 From: johnconner122 <107796137+johnconner122@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:40:55 +0500 Subject: [PATCH] fix: no need to initialize the index as it is already zero --- .../integrations/utils/NavBarIndexHook.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/utils/NavBarIndexHook.java b/app/src/main/java/app/revanced/integrations/utils/NavBarIndexHook.java index e8949669d4..ff141637d3 100644 --- a/app/src/main/java/app/revanced/integrations/utils/NavBarIndexHook.java +++ b/app/src/main/java/app/revanced/integrations/utils/NavBarIndexHook.java @@ -6,7 +6,6 @@ public class NavBarIndexHook { private static int currentNavBarIndex = 0; private static int lastNavBarIndex = 0; - private static boolean isLaunched = false; /** * Set current NavBar Index to @param @@ -30,16 +29,4 @@ public static void setLastNavBarIndex() { public static boolean isNotLibraryTab() { return currentNavBarIndex != 4; } - - /** - * Initialize NavBar Index - */ - public static void initializeIndex(Context context) { - if (isLaunched) - return; - - LogHelper.printDebug(() -> "Initializing NavBar index"); - isLaunched = true; - setCurrentNavBarIndex(0); - } }