Explorar el Código

movie view: fix potential failure to hide the controls

Felix Paul Kühne hace 12 años
padre
commit
011700ff87
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      AspenProject/VLCMovieViewController.m

+ 3 - 1
AspenProject/VLCMovieViewController.m

@@ -176,8 +176,10 @@
 
 - (void)viewWillDisappear:(BOOL)animated
 {
-    if (_idleTimer)
+    if (_idleTimer) {
         [_idleTimer invalidate];
+        _idleTimer = nil;
+    }
     [self.navigationController setNavigationBarHidden:NO animated:YES];
     [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
     [_mediaPlayer pause];