Merge pull request #127 from DanielRiera/patch-1

Xcode se queja "Estos siempre se evaluará como true" no es necesario "&"
This commit is contained in:
Sebastián Katzer
2016-08-15 20:02:21 +02:00
committed by GitHub

View File

@@ -49,7 +49,7 @@ NSString *const kAPPBackgroundEventFailure = @"failure";
{
NSNotificationCenter* listener = [NSNotificationCenter defaultCenter];
if (&UIApplicationDidEnterBackgroundNotification && &UIApplicationWillEnterForegroundNotification) {
if (UIApplicationDidEnterBackgroundNotification && UIApplicationWillEnterForegroundNotification) {
[listener addObserver:self
selector:@selector(keepAwake)