From 3a41146b0c4f1b3a7f5ad51f6dd240158f227da7 Mon Sep 17 00:00:00 2001 From: aricloverEXALT <157071384+aricloverEXALT@users.noreply.github.com> Date: Sun, 12 Jan 2025 08:06:25 -0600 Subject: [PATCH] Update uYouPlus.xm --- Sources/uYouPlus.xm | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index a19a48f..255665a 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -87,20 +87,7 @@ static int getNotificationIconStyle() { YTIPivotBarSupportedRenderers *barSupport = [[%c(YTIPivotBarSupportedRenderers) alloc] init]; [barSupport setPivotBarItemRenderer:itemBar]; - NSPredicate *predicate = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) { - if ([evaluatedObject isKindOfClass:[YTIPivotBarSupportedRenderers class]]) { - YTIPivotBarSupportedRenderers *renderer = (YTIPivotBarSupportedRenderers *)evaluatedObject; - return [[renderer.pivotBarItemRenderer pivotIdentifier] isEqualToString:@"FEnotifications_inbox"]; - } - return NO; - }]; - NSArray *filteredArray = [renderer.itemsArray filteredArrayUsingPredicate:predicate]; - if (filteredArray.count > 0) { - [renderer.itemsArray removeObjectsInArray:filteredArray]; - } - NSUInteger insertIndex = MIN(4, renderer.itemsArray.count); - [renderer.itemsArray insertObject:barSupport atIndex:insertIndex]; - + [renderer.itemsArray addObject:barSupport]; } @catch (NSException *exception) { NSLog(@"Error setting renderer: %@", exception.reason); }