Browse Source

async

pull/1/head
Burrit0z 4 years ago
parent
commit
d06323914f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      KAIBattery.mm

+ 2
- 0
KAIBattery.mm View File

@@ -22,6 +22,7 @@ long long batteryPercentage;
long long lastPercentage;

-(void)updateBattery {
dispatch_async(dispatch_get_main_queue(), ^{
if(!self.isUpdating) {
self.isUpdating = YES;
self.number = 0;
@@ -110,6 +111,7 @@ long long lastPercentage;
}
self.isUpdating = NO;
}
});
}

+(KAIBattery *)sharedInstance {

Loading…
Cancel
Save