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

long long lastPercentage; long long lastPercentage;


-(void)updateBattery { -(void)updateBattery {
dispatch_async(dispatch_get_main_queue(), ^{
if(!self.isUpdating) { if(!self.isUpdating) {
self.isUpdating = YES; self.isUpdating = YES;
self.number = 0; self.number = 0;
} }
self.isUpdating = NO; self.isUpdating = NO;
} }
});
} }


+(KAIBattery *)sharedInstance { +(KAIBattery *)sharedInstance {

Loading…
Cancel
Save