Parcourir la source

bro im shit dev smh

pull/1/head
Burrit0z il y a 4 ans
Parent
révision
b70d126fc7
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +1
    -1
      KAIBattery.mm
  2. +1
    -1
      KAIBatteryCell.mm

+ 1
- 1
KAIBattery.mm Voir le fichier

@@ -70,7 +70,7 @@ long long lastPercentage;
NSLog(@"Kai: Updating cell: %@ for device:%@", cell, device);
} else if(![self.displayingDevices containsObject:deviceName]) {
KAIBatteryCell *newCell = [[KAIBatteryCell alloc] initWithFrame:CGRectMake(0, y, self.frame.size.width, bannerHeight) device:device];
[self.superview addSubview:newCell];
[self addSubview:newCell];
[self.displayingDevices addObject:deviceName];
//y+=bannerHeight + spacing;
NSLog(@"Kai: Added cell: %@ for device:%@", cell, device);

+ 1
- 1
KAIBatteryCell.mm Voir le fichier

@@ -85,7 +85,7 @@ NSMutableArray *deviceInstances;
} else if(bannerAlign==3) { //right
[blank.rightAnchor constraintEqualToAnchor:self.rightAnchor constant:horizontalOffset].active = YES;
}
[blank.topAnchor constraintEqualToAnchor:self.topAnchor constant:self.frame.origin.y].active = YES;
[blank.topAnchor constraintEqualToAnchor:self.topAnchor].active = YES;
[blank.widthAnchor constraintEqualToConstant:((self.frame.size.width) + bannerWidthFactor)].active = YES;
[blank.heightAnchor constraintEqualToConstant:bannerHeight].active = YES;


Chargement…
Annuler
Enregistrer