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

Commit

Permalink
refactor: No functional changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Mar 26, 2024
1 parent 015fa02 commit 0a745e7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ public enum NavigationButton {
*/
LIBRARY_OLD_UI("VIDEO_LIBRARY_WHITE"),
/**
* 'You' library tab that is sometimes loaded momentarily.
* 'You' library tab that is sometimes momentarily loaded.
* When this is loaded, {@link #LIBRARY_YOU} is also present.
*
* This might be a temporary tab used while the user profile photo is loading,
* This might be a temporary tab while the user profile photo is loading,
* but it's exact purpose is not entirely clear.
*/
LIBRARY_PIVOT_UNKNOWN("PIVOT_LIBRARY"),
Expand All @@ -147,7 +147,7 @@ public enum NavigationButton {
* If the user is in the create new video UI, this returns NULL.
*/
@Nullable
public static NavigationButton getActiveNavigationButton() {
public static NavigationButton getSelectedNavigationButton() {
for (NavigationButton button : values()) {
if (button.isSelected()) return button;
}
Expand All @@ -158,7 +158,7 @@ public static NavigationButton getActiveNavigationButton() {
* @return If the currently selected tab is a 'You' or library type.
* Covers all known app states including incognito mode and version spoofing.
*/
public static boolean libraryOrYouTabIsActive() {
public static boolean libraryOrYouTabIsSelected() {
return LIBRARY_YOU.isSelected() || LIBRARY_PIVOT_UNKNOWN.isSelected()
|| LIBRARY_OLD_UI.isSelected() || LIBRARY_INCOGNITO.isSelected()
|| LIBRARY_LOGGED_OUT.isSelected();
Expand Down

0 comments on commit 0a745e7

Please sign in to comment.