Browse Source

readd miniplaybackview after relayout

Carola Nitz 10 years ago
parent
commit
df9ab2029a
1 changed files with 4 additions and 1 deletions
  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];