mirror of
https://github.com/Burrit0z/kai
synced 2025-07-01 17:06:47 +00:00
layout properly
This commit is contained in:
4
Kai.h
4
Kai.h
@ -33,6 +33,10 @@
|
|||||||
+ (APEPlatter *)sharedInstance;
|
+ (APEPlatter *)sharedInstance;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface APEPlacceholder : UIView
|
||||||
|
+ (APEPlacceholder *)sharedInstance;
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NCNotificationListView : UIView
|
@interface NCNotificationListView : UIView
|
||||||
- (void)fixComplicationsViewFrame;
|
- (void)fixComplicationsViewFrame;
|
||||||
@end
|
@end
|
||||||
|
4
Kai.xm
4
Kai.xm
@ -23,6 +23,8 @@ CSAdjunctListView *list;
|
|||||||
[[KAIBatteryPlatter sharedInstance] removeFromSuperview];
|
[[KAIBatteryPlatter sharedInstance] removeFromSuperview];
|
||||||
[[[cls sharedListViewForKai] stackView] removeArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
[[[cls sharedListViewForKai] stackView] removeArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
||||||
|
|
||||||
|
[[cls sharedListViewForKai] _layoutStackView];
|
||||||
|
|
||||||
return playing;
|
return playing;
|
||||||
} else if(!playing && self.nowPlayingApplication == nil) {
|
} else if(!playing && self.nowPlayingApplication == nil) {
|
||||||
// not playing and the app is nil
|
// not playing and the app is nil
|
||||||
@ -139,6 +141,8 @@ CSAdjunctListView *list;
|
|||||||
[stack removeArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
[stack removeArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
||||||
[stack addArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
[stack addArrangedSubview:[KAIBatteryPlatter sharedInstance]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[self _layoutStackView];
|
||||||
}
|
}
|
||||||
|
|
||||||
%new
|
%new
|
||||||
|
Reference in New Issue
Block a user