diff --git a/README.md b/README.md index ad17bf5..f924298 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ Bring the iOS 9 Music app to iOS 10. I had originally planned to release and finish this tweak myself, but was unable to because of stress from school and other things. To benefit the community, I have released it as open-source here, with the hopes that others can bring it to completion. +## Not a developer? + +[Get Melody from my repo](https://repo.applebetas.co/depiction/co.dynastic.ios.tweak.melody/) + ## Contributing **If you plan on contributing, you must read the license carefully.** diff --git a/Tweak.xm b/Tweak.xm index 1c91f1d..ea3a192 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -1278,8 +1278,8 @@ static void handleUnplayableEntityValueContext(MusicEntityValueContext *entityVa if(playButton == nil) { playButton = [[%c(MusicPlayButton) alloc] init]; [playButton showPlayIndicator:YES]; - [playButton addTarget:self action:@selector(_playButtonTapped:) forControlEvents:0x40]; - [playButton setBigHitInsets:UIEdgeInsetsMake(-15, -15, -15, -15)]; + [playButton addTarget:self action:@selector(_playButtonTapped:) forControlEvents:UIControlEventTouchUpInside]; + [playButton setBigHitInsets:UIEdgeInsetsMake(15, 15, 15, 15)]; [self _configurePlayButtonVisualProperties:playButton]; [self addSubview:playButton]; //[playButton _applyPlaybackStatus:_playbackStatus]; @@ -1293,7 +1293,7 @@ static void handleUnplayableEntityValueContext(MusicEntityValueContext *entityVa %new -(void)_playButtonTapped:(id)arg1 { - int action = 0x0;//_MusicPlayButtonActionForPlaybackStatus(self->_playbackStatus); + int action = 0x3;// play song until we figure out: _MusicPlayButtonActionForPlaybackStatus(self->_playbackStatus); if(action != 0x0) [self _handlePlayButtonTappedWithAction:action]; } @@ -1323,7 +1323,7 @@ static void handleUnplayableEntityValueContext(MusicEntityValueContext *entityVa edgeInsets.right += artworkDescriptor.artworkEdgeInsets.right; } CGRect playButtonFrame = UIEdgeInsetsInsetRect([self _artworkView].frame, edgeInsets); - [playButton setFrame:CGRectMake(CGRectGetMaxX(playButtonFrame), CGRectGetMaxY(playButtonFramegi), playButton.frame.size.width, playButton.frame.size.height)]; + [playButton setFrame:CGRectMake(CGRectGetMaxX(playButtonFrame), CGRectGetMaxY(playButtonFrame), playButton.buttonSize.width, playButton.buttonSize.height)]; }]; }