rpetrich / ProSwitcher

Palm Pre-style application switcher for iPhone OS. Abandoned.
Other
98 stars 21 forks source link

In-app activation only works if it's the first activation of PS #46

Closed jerryen closed 14 years ago

jerryen commented 14 years ago

PS still activates if you activate it after the first time while in an app but it won't show. I fixed it by changing lines 107-124 in PSWViewController.m to this: CALayer *layer = [snapshotPageView.scrollView layer]; if (animated) { view.alpha = 0.0f; [layer setTransform:CATransform3DMakeScale(2.0f, 2.0f, 1.0f)]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.5f]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(didFinishActivate)]; [layer setTransform:CATransform3DIdentity]; [view setAlpha:1.0f]; if (GetPreference(PSWShowPageControl, BOOL)) [pageControl setAlpha:0.0f]; [UIView commitAnimations]; isAnimating = YES; } else { [layer setTransform:CATransform3DIdentity]; [view setAlpha:1.0f]; if (GetPreference(PSWShowPageControl, BOOL)) [pageControl setAlpha:0.0f]; }

(I'm a github newbie so I don't know how to commit stuff and what not.)

rpetrich commented 14 years ago

Which revision is this against? Head of stable? If in doubt, commit to a fork and then send me a pull request :)

jerryen commented 14 years ago

unstable

grp commented 14 years ago

Pushed your fix to unstable