Prechádzať zdrojové kódy

fix crash in Box table implementation on TV

Tobias Conradi 9 rokov pred
rodič
commit
9eb048973e
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      Sources/VLCBoxTableViewController.m

+ 3 - 0
Sources/VLCBoxTableViewController.m

@@ -71,6 +71,8 @@
                       selector:@selector(boxApiTokenDidRefresh)
                           name:BoxOAuth2SessionDidBecomeAuthenticatedNotification
                         object:[BoxSDK sharedSDK].OAuth2Session];
+
+#if TARGET_OS_IOS
     // Handle logout
     [defaultCenter addObserver:self
                       selector:@selector(boxDidGetLoggedOut)
@@ -89,6 +91,7 @@
                       selector:@selector(boxAPIInitiateLogin)
                           name:BoxOAuth2SessionDidReceiveRefreshErrorNotification
                         object:[BoxSDK sharedSDK].OAuth2Session];
+#endif
 }
 
 #if TARGET_OS_IOS