Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "control.h"
- %hook SBVolumeHardwareButtonActions
- NSDate *start = [NSDate date];
- static BOOL active = NO;
- -(void)volumeIncreasePressDown {
- if (active == NO) {
- active = YES;
- } else {
- active = NO;
- }
- }
- -(void)volumeIncreasePressUp {
- if(active == NO) {
- [[%c(SBMediaController) sharedInstance] changeTrack: 1];
- }
- }
- NSTimeInterval timeInterval = [start timeIntervalSinceNow];
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement