From: Jay Freeman (saurik) Date: Fri, 22 Mar 2013 07:39:49 +0000 (+0000) Subject: Fix menu button dim/undim logic on iOS 6. X-Git-Tag: v0.9.4007~4 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/1a274bdf9a0391e128385c5747e629f47dd7461a Fix menu button dim/undim logic on iOS 6. --- diff --git a/Tweak.mm b/Tweak.mm index b33c21f..1ab2078 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -154,16 +154,24 @@ MSInstanceMessageHook0(BOOL, SBAwayController, handleMenuButtonTap) { return YES; } -MSInstanceMessageHook0(void, SBAwayController, undimScreen) { +static void Undim_(SBAwayController *self) { if ([self isDimmed]) { menu_ = false; [[cydgets_ objectAtIndex:active_] enableCydget:self]; [[[self awayView] window] makeKeyWindow]; } +} +MSInstanceMessageHook0(void, SBAwayController, undimScreen) { + Undim_(self); MSOldCall(); } +MSInstanceMessageHook1(void, SBAwayController, undimScreen, BOOL, undim) { + Undim_(self); + MSOldCall(undim); +} + static void Deactivate_(SBAwayController *self) { [[cydgets_ objectAtIndex:active_] disableCydget:self]; active_ = 0;