1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-04 14:36:47 +00:00

ah yes, broken af

This commit is contained in:
Burrit0z
2020-05-22 19:25:07 -04:00
parent b015325077
commit 80c9a3ed5b
8 changed files with 202 additions and 49 deletions

View File

@ -6,14 +6,14 @@ NSMutableArray *deviceInstances = [[NSMutableArray alloc] init];
-(instancetype)initWithFrame:(CGRect)arg1 device:(BCBatteryDevice *)device {
self = [super initWithFrame:arg1];
if(self) {
if(self && device!=nil) {
self.device = device;
NSString *deviceName = MSHookIvar<NSString *>(device, "_name");
double batteryPercentage = MSHookIvar<long long>(device, "_percentCharge");
BOOL charging = MSHookIvar<long long>(device, "_charging");
BOOL LPM = MSHookIvar<BOOL>(device, "_batterySaverModeActive");
NSString *deviceName = device.name;
double batteryPercentage = device.percentCharge;
BOOL charging = device.charging;
BOOL LPM = device.batterySaverModeActive;
UIView *blank;
if(bannerStyle==1) {