Wallpaper weird behaviour



I tried to set a wallpaper. I used that extension that indeed, downloads way faster the image from firebase. But the weird stuff is the following:

  • if i open the picture, the opened one will never be set as a wallpaper. if i click on next button then any other picture will be set as a wallpaper but the wallpaper set function works only ONCE. if i stay in the same screen, chose another picture to set it, it won’t work the 2nd time. I have to go back to the previous screen, and after that, going back makes the set wallpaper function work again, for ONE TIME. Any help?
    I attached the blocks, thank you