Guest User

Untitled

a guest
Jul 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. HOOK(SBStatusBarAirPortView, touchesEnded_withEvent_, void, id touches, id event)
  2. {
  3. if(![SBAW isLocked])
  4. {
  5. switch(int([[touches anyObject] tapCount]))
  6. {
  7. case 1:
  8. [SBAW playLockSound];
  9. [self performSelector:@selector(showNetInfo) withObject:nil afterDelay:0.3];
  10. break;
  11. case 2:
  12. [SBAW playLockSound];
  13. [NSObject cancelPreviousPerformRequestsWithTarget:self
  14. selector:@selector(showNetInfo) object:nil];
  15. [SB performSelector:@selector(launchPrefsAppWithPath:)
  16. withObject:@"root=General&path=Network" afterDelay:0.3];
  17. break;
  18. default:
  19. CALL_ORIG(SBStatusBarAirPortView, touchesEnded_withEvent_, touches, event);
  20. break;
  21. }
  22. }
  23.  
  24. }
Add Comment
Please, Sign In to add comment