Commit ece5d83d authored by Carola Nitz's avatar Carola Nitz

MovieViewcontroller: adjust status message to say backward or forward instead being empty

parent 311d9a6b
......@@ -1480,7 +1480,7 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
if (!_seekGestureEnabled)
return;
NSString * hudString = @" ";
NSString *hudString = @" ";
int swipeForwardDuration = (_variableJumpDurationEnabled) ? ((int)(_mediaDuration*0.001*0.05)) : FORWARD_SWIPE_DURATION;
int swipeBackwardDuration = (_variableJumpDurationEnabled) ? ((int)(_mediaDuration*0.001*0.05)) : BACKWARD_SWIPE_DURATION;
......@@ -1498,15 +1498,15 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
[_vpc jumpForward:(timeRemaining - 5)];
hudString = [NSString stringWithFormat:@"⇒ %is",(timeRemaining - 5)];
}
}
else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionLeft) {
} else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionLeft) {
[_vpc jumpBackward:swipeBackwardDuration];
hudString = [NSString stringWithFormat:@"⇐ %is",swipeBackwardDuration];
}else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionUp) {
} else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionUp) {
[self backward:self];
}
else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionDown) {
hudString = NSLocalizedString(@"BWD_BUTTON", "");
} else if (swipeRecognizer.direction == UISwipeGestureRecognizerDirectionDown) {
[self forward:self];
hudString = NSLocalizedString(@"FWD_BUTTON", "");
}
if (swipeRecognizer.state == UIGestureRecognizerStateEnded) {
......
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