Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HOOK(SBStatusBarAirPortView, touchesEnded_withEvent_, void, id touches, id event)
- {
- if(![SBAW isLocked])
- {
- switch(int([[touches anyObject] tapCount]))
- {
- case 1:
- [SBAW playLockSound];
- [self performSelector:@selector(showNetInfo) withObject:nil afterDelay:0.3];
- break;
- case 2:
- [SBAW playLockSound];
- [NSObject cancelPreviousPerformRequestsWithTarget:self
- selector:@selector(showNetInfo) object:nil];
- [SB performSelector:@selector(launchPrefsAppWithPath:)
- withObject:@"root=General&path=Network" afterDelay:0.3];
- break;
- default:
- CALL_ORIG(SBStatusBarAirPortView, touchesEnded_withEvent_, touches, event);
- break;
- }
- }
- }
Add Comment
Please, Sign In to add comment