浏览代码

95%

pull/1/head
Burrit0z 4 年前
父节点
当前提交
6988072fa3
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      KAIBatteryStack.mm

+ 10
- 0
KAIBatteryStack.mm 查看文件

} }


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

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

[self updateBattery];
} }


+(KAIBatteryStack *)sharedInstance { +(KAIBatteryStack *)sharedInstance {

正在加载...
取消
保存