From 6aafd4f65a36f1a2e4456c7049aea6a4f2137af0 Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Thu, 21 May 2020 16:21:48 -0400 Subject: [PATCH] make not gay --- KAIBattery.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KAIBattery.mm b/KAIBattery.mm index 0fdd8e5..6ac9c09 100644 --- a/KAIBattery.mm +++ b/KAIBattery.mm @@ -74,7 +74,7 @@ long long lastPercentage; } [label setTextColor:[UIColor whiteColor]]; label.lineBreakMode = NSLineBreakByWordWrapping; - label.numberOfLines = 0; + label.numberOfLines = 1; [label setText:labelText]; _UIBatteryView *battery = [[_UIBatteryView alloc] init]; @@ -89,7 +89,7 @@ long long lastPercentage; [percentLabel setTextColor:[UIColor whiteColor]]; percentLabel.lineBreakMode = NSLineBreakByWordWrapping; [percentLabel setTextAlignment:NSTextAlignmentRight]; - percentLabel.numberOfLines = 0; + percentLabel.numberOfLines = 1; [percentLabel setText:[NSString stringWithFormat:@"%ld%%", (long)((NSInteger) batteryPercentage)]]; if(charging) battery.chargingState = 1; battery.showsInlineChargingIndicator = YES;