Skip to content

Commit 7a8810c

Browse files
committed
a couple more minor fixes
1 parent 7059410 commit 7a8810c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ALMoviePlayerController/ALMoviePlayerControls.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ - (void)setup {
179179
_playPauseButton = [[ALButton alloc] init];
180180
[_playPauseButton setImage:[UIImage imageNamed:@"moviePause.png"] forState:UIControlStateNormal];
181181
[_playPauseButton setImage:[UIImage imageNamed:@"moviePlay.png"] forState:UIControlStateSelected];
182+
[_playPauseButton setSelected:YES];
182183
[_playPauseButton addTarget:self action:@selector(playPausePressed:) forControlEvents:UIControlEventTouchUpInside];
183184
_playPauseButton.delegate = self;
184185
[_bottomBar addSubview:_playPauseButton];
@@ -599,7 +600,7 @@ - (void)layoutSubviews {
599600
CGFloat barHeight = 50.f;
600601
CGFloat sliderHeight = 34.f; //default height
601602
CGFloat volumeHeight = 20.f;
602-
CGFloat volumeWidth = 120.f;
603+
CGFloat volumeWidth = isIpad() ? 210.f : 120.f;
603604
CGFloat seekWidth = 36.f;
604605
CGFloat seekHeight = 20.f;
605606
CGFloat airplayWidth = 30.f;

0 commit comments

Comments
 (0)