Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix: no need to initialize the index as it is already zero
Browse files Browse the repository at this point in the history
  • Loading branch information
johnconner122 committed Sep 22, 2023
1 parent db10cd2 commit faa89cd
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
}
}

0 comments on commit faa89cd

Please sign in to comment.