Permalink
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 497 Bytes
#import "PSWProSwitcherIcon.h"
#import "PSWController.h"
#import "PSWPreferences.h"
#import "SpringBoard+OS32.h"
#import <SpringBoard/SpringBoard.h>
%class SBIconModel;
%class SBApplicationIcon;
%hook SBApplicationIcon
- (void)launch
{
[[PSWController sharedController] setActive:NO animated:NO];
%orig;
}
%end
%subclass PSWProSwitcherIcon : SBApplicationIcon
- (void)launch
{
PSWController *vc = [PSWController sharedController];
if (!vc.isAnimating)
vc.active = !vc.active;
}
%end