瀏覽代碼

95%

pull/1/head
Burrit0z 4 年之前
父節點
當前提交
6988072fa3
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      KAIBatteryStack.mm

+ 10
- 0
KAIBatteryStack.mm 查看文件

@@ -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…
取消
儲存