Browse Source

95%

pull/1/head
Burrit0z 4 years ago
parent
commit
6988072fa3
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      KAIBatteryStack.mm

+ 10
- 0
KAIBatteryStack.mm View File

@@ -82,11 +82,21 @@ long long lastPercentage;
}

-(void)refreshForPrefs {
for( UIView *view in self.subviews ) {
@try {
[view removeFromSuperview];
} @catch (NSException *exception) {
//Panik
}
}

BCBatteryDeviceController *bcb = [BCBatteryDeviceController sharedInstance];
NSArray *devices = MSHookIvar<NSArray *>(bcb, "_sortedDevices");
for(BCBatteryDevice *device in devices) {
[device resetKaiCellForNewPrefs];
}

[self updateBattery];
}

+(KAIBatteryStack *)sharedInstance {

Loading…
Cancel
Save