Explorar o código

readd miniplaybackview after relayout

Carola Nitz %!s(int64=10) %!d(string=hai) anos
pai
achega
df9ab2029a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Sources/VLCPlaylistViewController.m

+ 4 - 1
Sources/VLCPlaylistViewController.m

@@ -468,7 +468,10 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
             }
         };
     }
-
+    //when switching between tableview and collectionview all subviews are removed, make sure to readd it when this happens
+    if (!_miniPlaybackView.superview && miniPlayerVisible) {
+        [self.view addSubview:_miniPlaybackView];
+    }
     // either way update view
     [_miniPlaybackView setupForWork];