From d0a39db6cf59909d4a06a5ee2e58b076231a7b9b Mon Sep 17 00:00:00 2001 From: Alex Sorokoletov Date: Mon, 8 Sep 2014 01:27:51 -0400 Subject: [PATCH] fix for rolandleth/LTHPasscodeViewController/issues/78 --- LTHPasscodeViewController/LTHPasscodeViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LTHPasscodeViewController/LTHPasscodeViewController.m b/LTHPasscodeViewController/LTHPasscodeViewController.m index 4746bf8..9db0f4b 100644 --- a/LTHPasscodeViewController/LTHPasscodeViewController.m +++ b/LTHPasscodeViewController/LTHPasscodeViewController.m @@ -1286,7 +1286,7 @@ - (void)_applicationWillEnterForeground { - (void)_applicationWillResignActive { - if ([self _doesPasscodeExist]) { + if ([self _doesPasscodeExist] && !([self isCurrentlyOnScreen] && [self displayedAsLockScreen])) { [self _saveTimerStartTime]; } }