Procházet zdrojové kódy

complications stuff

pull/1/head
Burrit0z před 4 roky
rodič
revize
7c1ef78fdc
2 změnil soubory, kde provedl 14 přidání a 1 odebrání
  1. +9
    -1
      KAIBatteryStack.mm
  2. +5
    -0
      Kai.h

+ 9
- 1
KAIBatteryStack.mm Zobrazit soubor

@@ -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 {
[super addArrangedSubview:view];
self.number = [self.subviews count];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}

[UIView animateWithDuration:0.3 animations:^{

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

[UIView animateWithDuration:0.3 animations:^{


+ 5
- 0
Kai.h Zobrazit soubor

@@ -30,6 +30,11 @@
-(id)sf_udidString;
-(id)_currentProduct;
@end

@interface NCNotificationListView : UIView
-(void)fixComplicationsViewFrame;
@end

BOOL isUpdating = NO;

//prefs

Načítá se…
Zrušit
Uložit