Explorar o código

movie view: fix potential failure to hide the controls

Felix Paul Kühne %!s(int64=12) %!d(string=hai) anos
pai
achega
011700ff87
Modificáronse 1 ficheiros con 3 adicións e 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];