Commit 18250c31 authored by Felix Paul Kühne's avatar Felix Paul Kühne

library: hide mini player in editing mode (refs #14654)

(cherry picked from commit 04e9383f)
parent b02d9948
......@@ -450,8 +450,13 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
const CGRect miniPlayerFrameIn = CGRectMake(0., viewRect.size.height-miniPlayerHeight, viewRect.size.width, miniPlayerHeight);
const CGRect miniPlayerFrameOut = CGRectMake(0., viewRect.size.height, viewRect.size.width, miniPlayerHeight);
const BOOL needsShow = showMiniPlayer && !miniPlayerVisible;
const BOOL needsHide = !showMiniPlayer && miniPlayerVisible;
BOOL needsShow = showMiniPlayer && !miniPlayerVisible;
BOOL needsHide = !showMiniPlayer && miniPlayerVisible;
if (self.editing) {
needsHide = YES;
needsShow = NO;
}
void (^completionBlock)(BOOL) = nil;
if (needsShow) {
......@@ -1100,6 +1105,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
{
[super setEditing:editing animated:animated];
[self displayMiniPlaybackViewIfNeeded];
UIBarButtonItem *editButton = self.editButtonItem;
NSString *editImage = editing? @"doneButton": @"button";
NSString *editImageHighlight = editing? @"doneButtonHighlight": @"buttonHighlight";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment