diff --git a/KAIBattery.mm b/KAIBattery.mm index c92571a..d19817c 100644 --- a/KAIBattery.mm +++ b/KAIBattery.mm @@ -97,7 +97,7 @@ long long lastPercentage; [self addSubview:label]; [self addSubview:battery]; [self addSubview:glyphView]; - blank.alpha = 0.8; + //blank.alpha = 0.8; } } self.isUpdating = NO; diff --git a/Kai.xm b/Kai.xm index 6607069..b90a948 100644 --- a/Kai.xm +++ b/Kai.xm @@ -13,7 +13,6 @@ @interface CSMainPageView : UIView @property (nonatomic, strong) KAIBattery *battery; --(void)updateForPresentation:(id)arg1; -(void)KaiUpdate; @end @@ -21,6 +20,9 @@ -(void)KaiUpdate; @end +@interface _CSSingleBatteryChargingView : UIView +@end + BOOL setFrame = NO; CSMainPageView *batteryWidget; CGRect original; @@ -134,7 +136,19 @@ CGRect originalBattery; } %end -%hook CSScrollView +%hook _CSSingleBatteryChargingView +-(void)initWithFrame:(CGRect)arg1 { + %orig; + [self removeFromSuperview]; +} -%end \ No newline at end of file +-(CGFloat)desiredVisibilityDuration { + return 0; +} + +-(void)setBatteryVisible:(BOOL)arg1 { + %orig(NO); +} + +%end