[iOS] Background blur in now playing view uses artwork from next song

This bug is very visible when your artwork is particularly colorful; it is obvious to see the the background blur is actually using the artwork for the next song.

 

I am a tweak developer (Cydia tweaks) and looked into the issue. I've confirmed that this is a bug in your code - it's in OBO bug in SPTCarouselBackgroundBlurController. Here's my code that I inject into the Spotify app at the moment to fix the issue:

 

%hook SPTCarouselBackgroundBlurController
- (void)updateBlurConstituentForRelativePosition:(NSInteger)page toImage:(UIImage *)image withURL:(NSURL *)url {
  NSInteger fixedPage = page + 1;
  %orig(fixedPage, image, url);
}
%end

Clearly showing that your code has an OBO bug which should be easily fixed. I also just watched the Google livestream and the bug is even present there (in the newest Spotify version I presume)!

Comments
Rock Star 24
Rock Star 24

I noticed this too. I will pass this report on. Thanks!

TheWorkAndStuff
Newbie

Hey there, I have the same problem and it bugs me immensely. Did you manage to get this fixed?

Rock Star 24
Rock Star 24

@Davidee @TheWorkAndStuff

 

Version 4.1 was just released today. It includes a fix for this.

TheWorkAndStuff
Newbie
Yeah, it doesn't work for me. What gives?

TheWorkAndStuff
Newbie
@MattSuda Welp, never mind that, I'm just an idiot. Works great, thanks!
Rock Star 24
Rock Star 24

Glad to hear

jean3601
Community Legend
Status changed to: Fixed