Browse Source

VLCMovieViewController: Perform layout related method on main thread

Run `updateTimeDisplayButton` on the main thread when called by
`UpdateDefaults`.
Soomin Lee 5 years ago
parent
commit
2b979aaff5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCMovieViewController.m

+ 1 - 1
Sources/VLCMovieViewController.m

@@ -645,7 +645,7 @@ typedef NS_ENUM(NSInteger, VLCPanType) {
 
     if (!_playbackWillClose) {
         _displayRemainingTime = [[defaults objectForKey:kVLCShowRemainingTime] boolValue];
-        [self updateTimeDisplayButton];
+        [self performSelectorOnMainThread:@selector(updateTimeDisplayButton) withObject:nil waitUntilDone:NO];
     }
 
     _volumeGestureEnabled = [[defaults objectForKey:kVLCSettingVolumeGesture] boolValue];