From 9cebfebeac607e8c8c8bd408ef04d5cc4100daa0 Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Sun, 24 May 2020 18:47:52 -0400 Subject: [PATCH] progress while i play minecraft --- KAIBatteryStack.mm | 2 +- Kai.xm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/KAIBatteryStack.mm b/KAIBatteryStack.mm index 8c0dbc3..1b84c83 100644 --- a/KAIBatteryStack.mm +++ b/KAIBatteryStack.mm @@ -51,7 +51,7 @@ long long lastPercentage; } if(![self.subviews containsObject:cell] && shouldAdd && [devices containsObject:device]) { - //[cell setFrame:CGRectMake(0,0,self.frame.size.width, bannerHeight + spacing)]; + [cell setFrame:CGRectMake(0,0,self.frame.size.width, bannerHeight + spacing)]; [self addSubview:cell]; [self addArrangedSubview:cell]; } else if([self.subviews containsObject:cell] && !shouldAdd){ diff --git a/Kai.xm b/Kai.xm index 216c1bd..f3ee1a5 100644 --- a/Kai.xm +++ b/Kai.xm @@ -53,7 +53,7 @@ [UIView animateWithDuration:0.3 animations:^{ - /*if(!battery.heightConstraint) { + if(!battery.heightConstraint) { battery.heightConstraint.active = NO; battery.heightConstraint = [battery.heightAnchor constraintEqualToConstant:85]; @@ -69,7 +69,7 @@ UIStackView *s = [self stackView]; s.frame = CGRectMake(s.frame.origin.x, s.frame.origin.y, s.frame.size.width, (s.frame.size.height - 1)); //literally does nothing but makes the stack view lay itself out (doesnt adjust frame because translatesAutoreszingMaskIntoConstraints = NO on stack views) - }*/ + } }];