From effed136d3c7e02a4238965db8bd77b9711418de Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sat, 28 Dec 2024 18:15:23 -0600 Subject: [PATCH] Delete Sources/NotificationsTabManager.m --- Sources/NotificationsTabManager.m | 45 ------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 Sources/NotificationsTabManager.m diff --git a/Sources/NotificationsTabManager.m b/Sources/NotificationsTabManager.m deleted file mode 100644 index 3235fdba6f..0000000000 --- a/Sources/NotificationsTabManager.m +++ /dev/null @@ -1,45 +0,0 @@ -#import "NotificationsTabManager.h" -#import "uYouPlus.h" -#import -#import -#import -#import -#import -#import -#import -#import - -@implementation NotificationsTabManager - -+ (instancetype)sharedManager { - static NotificationsTabManager *sharedManager = nil; - static dispatch_once_t onceToken; - dispatch_once(&onceToken, ^{ - sharedManager = [[self alloc] init]; - }); - return sharedManager; -} - -- (void)rearrangeNotificationsTabAtIndex:(NSUInteger)index { - @try { - YTBrowseViewController *browseViewController = (YTBrowseViewController *)self.navigationController.topViewController; - YTPivotBarView *pivotBarView = [browseViewController valueForKey:@"pivotBarView"]; - NSMutableArray *itemViews = [pivotBarView.itemViews mutableCopy]; - YTPivotBarItemView *notificationsItem; - for (YTPivotBarItemView *itemView in itemViews) { - if ([itemView.renderer.pivotIdentifier isEqualToString:@"FEnotifications_inbox"]) { - notificationsItem = itemView; - break; - } - } - if (notificationsItem) { - [itemViews removeObject:notificationsItem]; - [itemViews insertObject:notificationsItem atIndex:index]; - [pivotBarView setValue:itemViews forKey:@"itemViews"]; - } - } @catch (NSException *exception) { - NSLog(@"Error rearranging notifications tab: %@", exception.reason); - } -} - -@end