1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 07:06:48 +00:00

complications stuff

This commit is contained in:
Burrit0z
2020-05-27 08:28:25 -04:00
parent b3297545bf
commit 7c1ef78fdc
2 changed files with 14 additions and 1 deletions

View File

@ -125,7 +125,9 @@ long long lastPercentage;
} }
}]; }];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
}); });
} }
@ -133,6 +135,9 @@ long long lastPercentage;
-(void)addArrangedSubview:(UIView *)view { -(void)addArrangedSubview:(UIView *)view {
[super addArrangedSubview:view]; [super addArrangedSubview:view];
self.number = [self.subviews count]; self.number = [self.subviews count];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
[UIView animateWithDuration:0.3 animations:^{ [UIView animateWithDuration:0.3 animations:^{
@ -173,6 +178,9 @@ long long lastPercentage;
-(void)removeArrangedSubview:(UIView *)view { -(void)removeArrangedSubview:(UIView *)view {
[super removeArrangedSubview:view]; [super removeArrangedSubview:view];
self.number = [self.subviews count]; self.number = [self.subviews count];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
[UIView animateWithDuration:0.3 animations:^{ [UIView animateWithDuration:0.3 animations:^{

5
Kai.h
View File

@ -30,6 +30,11 @@
-(id)sf_udidString; -(id)sf_udidString;
-(id)_currentProduct; -(id)_currentProduct;
@end @end
@interface NCNotificationListView : UIView
-(void)fixComplicationsViewFrame;
@end
BOOL isUpdating = NO; BOOL isUpdating = NO;
//prefs //prefs