瀏覽代碼

VLCMovieViewController: Perform layout related method on main thread

Run `updateTimeDisplayButton` on the main thread when called by
`UpdateDefaults`.
Soomin Lee 5 年之前
父節點
當前提交
2b979aaff5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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];