mirror of
				https://github.com/Burrit0z/kai
				synced 2025-11-04 07:06:20 +00:00 
			
		
		
		
	idk
This commit is contained in:
		@ -117,11 +117,11 @@ long long lastPercentage;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
            int height;
 | 
					            int height;
 | 
				
			||||||
            /*if([self.superview.subviews objectAtIndex:([self.superview.subviews count] - 1)] == self) {
 | 
					            if([self.superview.subviews objectAtIndex:([self.superview.subviews count] - 1)] == self) {
 | 
				
			||||||
                height = (self.number * (bannerHeight + spacing));
 | 
					                height = (self.number * (bannerHeight + spacing));
 | 
				
			||||||
            } else {*/
 | 
					            } else {
 | 
				
			||||||
		        height = (self.number * (bannerHeight + spacing)) - spacing;
 | 
							        height = (self.number * (bannerHeight + spacing)) - spacing;
 | 
				
			||||||
            //}
 | 
					            }
 | 
				
			||||||
			self.heightConstraint.constant = height;
 | 
								self.heightConstraint.constant = height;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			UIStackView *s = (UIStackView *)(self.superview);
 | 
								UIStackView *s = (UIStackView *)(self.superview);
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										7
									
								
								Kai.xm
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								Kai.xm
									
									
									
									
									
								
							@ -61,6 +61,13 @@
 | 
				
			|||||||
		dispatch_async(dispatch_get_main_queue(), ^{
 | 
							dispatch_async(dispatch_get_main_queue(), ^{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		[[KAIBatteryStack sharedInstance] updateBattery];
 | 
							[[KAIBatteryStack sharedInstance] updateBattery];
 | 
				
			||||||
 | 
							if([KAIBatteryStack sharedInstance].number == 0) {
 | 
				
			||||||
 | 
								[[KAIBatteryStack sharedInstance] removeFromSuperview];
 | 
				
			||||||
 | 
								[[self stackView] removeArrangedSubview:[KAIBatteryStack sharedInstance]];
 | 
				
			||||||
 | 
							} else if(![[self stackView].subviews containsObject:[KAIBatteryStack sharedInstance]]) {
 | 
				
			||||||
 | 
								[[self stackView] addSubview:[KAIBatteryStack sharedInstance]];
 | 
				
			||||||
 | 
								[[self stackView] addArrangedSubview:[KAIBatteryStack sharedInstance]];
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		if([KAISelf.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
 | 
							if([KAISelf.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
 | 
				
			||||||
		[KAISelf.superview performSelector:@selector(fixComplicationsViewFrame) withObject:KAISelf.superview afterDelay:0.35];
 | 
							[KAISelf.superview performSelector:@selector(fixComplicationsViewFrame) withObject:KAISelf.superview afterDelay:0.35];
 | 
				
			||||||
		//[KAISelf.superview performSelector:@selector(fixComplicationsViewFrame) withObject:KAISelf.superview afterDelay:0.5];
 | 
							//[KAISelf.superview performSelector:@selector(fixComplicationsViewFrame) withObject:KAISelf.superview afterDelay:0.5];
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user