mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
only reset validation flag once we actually went to the background
This commit is contained in:
parent
bc9ee21078
commit
9ddcad6da7
@ -666,7 +666,10 @@ static NSString* const kBITAuthenticatorAuthTokenTypeKey = @"BITAuthenticatorAut
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)applicationWillResignActive:(NSNotification *)note {
|
- (void)applicationWillResignActive:(NSNotification *)note {
|
||||||
if(BITAuthenticatorAppRestrictionEnforcementOnAppActive == self.restrictionEnforcementFrequency) {
|
//only reset if app is really going into the background, e.g not when pulling down
|
||||||
|
//the notification center
|
||||||
|
if(BITAuthenticatorAppRestrictionEnforcementOnAppActive == self.restrictionEnforcementFrequency &&
|
||||||
|
[[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
|
||||||
self.validated = NO;
|
self.validated = NO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user