From 028d4a484637282f5af70f17aef3c3895f7b6c3c Mon Sep 17 00:00:00 2001 From: Burrit0z Date: Fri, 22 May 2020 15:13:16 -0400 Subject: [PATCH] bro just async --- KAIBattery.mm | 2 +- Kai.xm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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:^{