Commit bb42ad62 authored by Felix Paul Kühne's avatar Felix Paul Kühne

playback: drop accessory HUD display for touch gestures and use the generic one instead

parent bdd4cad1
......@@ -899,20 +899,6 @@
return type;
}
- (void)_displayHUDwithText:(NSString*)text
{
CGSize screenSize = [self _screenSize];
UILabel * label = [[UILabel alloc] initWithFrame:CGRectMake( (screenSize.width/2 - text.length*8.5/2), 72, (text.length * 8.5), 20)];
[label setText:text];
[label setAdjustsFontSizeToFitWidth:YES];
[label setBackgroundColor:[UIColor blackColor]];
[label setTextColor:[UIColor whiteColor]];
[label setAlpha:0.55];
[_rootView addSubview:label];
[UIView animateWithDuration:1 animations:^{ label.alpha = 0.0f;} completion:^(BOOL finished){ [label removeFromSuperview]; }];
}
- (void)panRecognized:(UIPanGestureRecognizer*)panRecognizer
{
CGFloat panDirectionX = [panRecognizer velocityInView:_rootView].x;
......@@ -944,7 +930,7 @@
[[UIScreen mainScreen]setBrightness:(brightness + 0.01)];
NSString *brightnessHUD =[NSString stringWithFormat:@"%@: %@ %%", NSLocalizedString(@"VFILTER_BRIGHTNESS", @""), [[[NSString stringWithFormat:@"%f",(brightness*100)] componentsSeparatedByString:@"."] objectAtIndex:0]];
[self _displayHUDwithText:brightnessHUD];
[self.statusLabel showStatusMessage:brightnessHUD];
}
if (panRecognizer.state == UIGestureRecognizerStateEnded) {
......@@ -978,7 +964,7 @@
if ([_mediaPlayer isPlaying])
[_mediaPlayer play];
[self _displayHUDwithText:hudString];
[self.statusLabel showStatusMessage:hudString];
}
}
......
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