1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 17:16:47 +00:00
This commit is contained in:
Burrit0z
2020-05-24 19:11:29 -04:00
parent 00de4d98ba
commit 6988072fa3

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 {