diff --git a/KAIBattery.mm b/KAIBattery.mm index e367a47..c6d53db 100644 --- a/KAIBattery.mm +++ b/KAIBattery.mm @@ -80,7 +80,7 @@ long long lastPercentage; } else if(!shouldAdd) { dispatch_async(dispatch_get_main_queue(), ^{ - [cell removeFromSuperview]; + [cell removeFromSuperview]; }); } } diff --git a/Kai.xm b/Kai.xm index 55bcf57..68727e9 100644 --- a/Kai.xm +++ b/Kai.xm @@ -81,11 +81,13 @@ isUpdating = YES; //NSLog(@"kai: kai info will update"); + dispatch_async(dispatch_get_main_queue(), ^{ [[KAIBattery sharedInstance] updateBattery]; [self KaiUpdate]; isUpdating = NO; + }); /*isUpdating = YES; [UIView animateWithDuration:0.3 animations:^{