Browse Source

working

pull/1/head
Burrit0z 4 years ago
parent
commit
ff670d6b35
2 changed files with 18 additions and 4 deletions
  1. +1
    -1
      KAIBattery.mm
  2. +17
    -3
      Kai.xm

+ 1
- 1
KAIBattery.mm View File

[self addSubview:label]; [self addSubview:label];
[self addSubview:battery]; [self addSubview:battery];
[self addSubview:glyphView]; [self addSubview:glyphView];
blank.alpha = 0.8;
//blank.alpha = 0.8;
} }
} }
self.isUpdating = NO; self.isUpdating = NO;

+ 17
- 3
Kai.xm View File



@interface CSMainPageView : UIView @interface CSMainPageView : UIView
@property (nonatomic, strong) KAIBattery *battery; @property (nonatomic, strong) KAIBattery *battery;
-(void)updateForPresentation:(id)arg1;
-(void)KaiUpdate; -(void)KaiUpdate;
@end @end


-(void)KaiUpdate; -(void)KaiUpdate;
@end @end


@interface _CSSingleBatteryChargingView : UIView
@end

BOOL setFrame = NO; BOOL setFrame = NO;
CSMainPageView *batteryWidget; CSMainPageView *batteryWidget;
CGRect original; CGRect original;
} }
%end %end


%hook CSScrollView
%hook _CSSingleBatteryChargingView


-(void)initWithFrame:(CGRect)arg1 {
%orig;
[self removeFromSuperview];
}


%end
-(CGFloat)desiredVisibilityDuration {
return 0;
}

-(void)setBatteryVisible:(BOOL)arg1 {
%orig(NO);
}

%end

Loading…
Cancel
Save