diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-01-15 04:28:37 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-01-15 04:28:44 -0800 |
commit | a41140486c4507fb803fdc20272e6a746965afb6 (patch) | |
tree | 4ae454a6d11c69e4c82f919790ad5c00bf72eacc | |
parent | 601b245ceb427671d098229300dae4953870ebf2 (diff) |
On iOS 7, fix dialog pop on unlock (parrotgeek1).
-rw-r--r-- | Tweak.xm | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -205,6 +205,15 @@ static void AlertIfNeeded() { MSAlert(); } +// on iOS 7 (maybe also iOS 6) we should really just hook the unlock mechanism +// XXX: deterine where this works and maybe unify this code + +%hook SBLockScreenManager +- (void) _finishUIUnlockFromSource:(int)source withOptions:(id)options { + %orig; + AlertIfNeeded(); +} %end + // on iOS 4.3 and above we can use this advertisement, which seems to check every time the user unlocks // XXX: verify that this still works on iOS 5.0 |